-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Replace Role to RoleInterface for RoleSecurityIdentity #1748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Apparently, doing so would cause a security vulnerability (according to comment on af70ac8 which was later reverted in d80ee41). |
This cannot be done because of security problems. See af70ac8 |
Was the security issue related to this ever resolved? Either RoleSecurityIdentity should use RoleInterface in a safe manner, or the documentation should be updated to warn that the UserInterface implementation should return only strings from getRoles(), so as to avoid further confusion for users. |
With all due respect @schmittjoh and @fabpot can we reopen this issue? If there are security issues you can not provide details for I understand. But please let us know. If that's not the case, a unintentional kind of FUD must not be enough to stop process, even if it came from a respected core developer. Can we move on? |
+1 @mevers47 :/ |
The documentation seems to assume the implementation present in commit symfony/symfony#1673, which reverted soon after due to a potential, but undisclosed security hole (citation @schmittjoh in symfony/symfony@af70ac8). This incorrect documentation has likely been the source of many of the following issues: * symfony/symfony#1538 - [ACL RoleSecurityIdentity] check if instance of Role * symfony/symfony#1748 - Replace Role to RoleInterface for RoleSecurityIdentity * symfony/symfony#4309 - Issue related to custom group (role) and ACL/ACE * symfony/symfony#5026 - potential bug in Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity * symfony/symfony#5076 - [Acl] altered the behaviour of RoleSecurityIdentity * symfony/symfony#5171 - Fix/role security identity * symfony/symfony#5303 - [Security] Check for RoleInterface instead of Role object in RoleSecurityIdentity * symfony/symfony#5909 - Allow Custom Roles to implement the RoleInterface * symfony/symfony#6012 - Securityidentity fix
Class
Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity
should be able to be created from every object implementingRoleInterface
.The text was updated successfully, but these errors were encountered: