Описание
Authentication granted to all firewalls instead of just one
Description
When an application defines multiple firewalls, the authenticated token delivered by one of the firewalls is available to all other firewalls. This can be abused when the application defines different providers for different parts of an application. In such a situation, a user authenticated on one part of the application is considered authenticated on the whole application.
Resolution
We now ensure that the authenticated token is only available for the firewall that generates it.
The patch for this issue is available here for branch 5.3.
Credits
I would like to thank Bogdan, gndk, Paweł Warchoł, Warxcell, and Adrien Lamotte for reporting the issue and Wouter J for fixing the issue.
Ссылки
- https://github.com/symfony/symfony/security/advisories/GHSA-rfcf-m67m-jcrq
- https://nvd.nist.gov/vuln/detail/CVE-2021-32693
- https://github.com/symfony/security-http/commit/6bf4c31219773a558b019ee12e54572174ff8129
- https://github.com/symfony/symfony/commit/3084764ad82f29dbb025df19978b9cbc3ab34728
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-http/CVE-2021-32693.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2021-32693.yaml
- https://symfony.com/blog/cve-2021-32693-authentication-granted-to-all-firewalls-instead-of-just-one
- https://symfony.com/cve-2021-32693
Пакеты
symfony/security-http
>= 5.3.0, < 5.3.2
5.3.2
symfony/symfony
>= 5.3.0, < 5.3.2
5.3.2
Связанные уязвимости
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. A vulnerability related to firewall authentication is in Symfony starting with version 5.3.0 and prior to 5.3.2. When an application defines multiple firewalls, the token authenticated by one of the firewalls was available for all other firewalls. This could be abused when the application defines different providers for each part of the application, in such a situation, a user authenticated on a part of the application could be considered authenticated on the rest of the application. Starting in version 5.3.2, a patch ensures that the authenticated token is only available for the firewall that generates it.
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. A vulnerability related to firewall authentication is in Symfony starting with version 5.3.0 and prior to 5.3.2. When an application defines multiple firewalls, the token authenticated by one of the firewalls was available for all other firewalls. This could be abused when the application defines different providers for each part of the application, in such a situation, a user authenticated on a part of the application could be considered authenticated on the rest of the application. Starting in version 5.3.2, a patch ensures that the authenticated token is only available for the firewall that generates it.
Symfony is a PHP framework for web and console applications and a set ...
Уязвимость программной платформы для разработки и управления веб-приложениями Symfony, связанная с ошибками при обработке аутентифицированных токенов, позволяющая нарушителю повысить свои привилегии