Firewall configured with unanimous strategy was not actually unanimous in Symfony
Description
Description
On Symfony before 4.4.0, when aFirewall
checks an access control rule (using the unanimous strategy), it iterates over all rule attributes and grant access only ifall calls to theaccessDecisionManager
decide to grant access.
As of Symfony 4.4.0, a bug was introduced that prevents the check of attributes as soon asaccessDecisionManager
decide to grant access on one attribute.
Resolution
TheaccessDecisionManager
is now called with all attributes at once, allowing the unanimous strategy being applied on each attribute.
The patch for this issue is availablehere for the 4.4 branch.
Credits
I would like to thank Antonio J. García Lagar for reporting & Robin Chalas for fixing the issue.
References
- GHSA-g4m9-5hpf-hx72
- symfony/symfony@c935e4a
- https://nvd.nist.gov/vuln/detail/CVE-2020-5275
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/C36JLPHUPKDFAX6D5WYFC4ALO2K7RDUQ/
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-http/CVE-2020-5275.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security/CVE-2020-5275.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2020-5275.yaml
- https://symfony.com/cve-2020-5275
ReviewedMar 30, 2020
Published to the GitHub Advisory DatabaseMar 30, 2020
Last updatedFeb 5, 2024
Severity
High / 10
CVSS v3 base metrics
Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
Required
Scope
Changed
Confidentiality
High
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N
EPSS score
(51st percentile)
Weaknesses
CVE ID
CVE-2020-5275
GHSA ID
GHSA-g4m9-5hpf-hx72
Source code
No known source code
LoadingChecking history
Uh oh!
There was an error while loading.Please reload this page.
See something to contribute?Suggest improvements for this vulnerability.