Prevent user enumeration using Guard or the new Authenticator-based Security
symfony
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| symfony/security Packagist |
|
|
| symfony/security-guard Packagist |
symfony
| Product | Affected | Fixed in |
|---|---|---|
| symfony/security Packagist |
|
|
| symfony/security-guard Packagist |
≥ 2.8.0 · < 3.4.48≥ 4.0.0 · < 4.4.23≥ 5.0.0 · < 5.2.8
|
| symfony/security-core Packagist |
|
|
| lexik/jwt-authentication-bundle Packagist |
|
|
| symfony/maker-bundle Packagist |
|
|
| symfony/security-http Packagist |
|
|
| symfony/symfony Packagist |
|
|
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. The ability to enumerate users was possible without relevant permissions due to different handling depending on whether the user existed or not when attempting to use the switch users functionality. We now ensure that 403s are returned whether the user exists or not if a user cannot switch to a user or if the user does not exist. The patch for this issue is available for branch 3.4.
From the CVE record · GitHub_M
Symfony's switch-user functionality responds differently depending on whether a user exists. Someone without permission to switch users can use those differences to enumerate users when attempting to switch users.
Teams running affected versions of symfony/security, symfony/security-guard, symfony/security-core, symfony/security-http, symfony/symfony, lexik/jwt-authentication-bundle, or symfony/maker-bundle should check their installed packages.