Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
Partially revert "fix voting on multiple roles behavior description" due to CVE-2020-5275#13457
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
dbrumann left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
👍 I like it. Thanks.
Uh oh!
There was an error while loading.Please reload this page.
javiereguiluz commentedJun 10, 2020
This is security-related, so we'd like to merge this as soon as possible.@wouterj could you please check these proposed changes? Thanks! |
xabbuh commentedJun 10, 2020
What if we simply do not show the use of multiple attributes here, but use an expression which checks if the user is granted at least one of them to avoid the ambiguity here? |
ajgarlag commentedJun 10, 2020
The main problem for me is that in YAML and PHP configuration formats, the key is called Maybe we could add an advice to use an expressión and avoid further problems. |
javiereguiluz commentedOct 11, 2021
After#15503 is merged, we'll need to check if this is still relevant and if we need to fix it. Thanks! |
ajgarlag commentedOct 14, 2021
@javiereguiluz#15503 is merged and I think this is still relevant. I've rebased the PR. |
wouterj commentedDec 24, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Hi@ajgarlag! I'm sorry for the long wait here. I honestly wasn't sure what to do with these changes, as I do see your point about "roles" (and also being able to pass an array of attributes to this setting). For now, I've decided to follow@xabbuh's suggestion. The reason is that an array of roles does not have a strict OR or AND relation, nor does this depend on the strategy. For full information:
This is exactly the reason why we removed voting on more than one attribute at the same time. Unfortunately, it's the worst change I've ever contributed to Symfony (implementation wise), which means we still have the "roles" setting and ability to use an array of roles in Anyway, in case you're still reading this message: Thanks for remaining active in this PR! If you have any questions, feel free to comment :) |
This partially reverts commit4b76554.
Seesymfony/symfony@c935e4a