Sulu Observable Response Discrepancy on Admin Login
Impact
It allows over the Admin Login form to detect which user (username, email) exists and which one do not exist.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| From 2.5.0 before 2.5.10Ecosystem versions | 2.5.10 |
Version evidence: OSV · GHSA-wmwf-49vv-p3mr
View original version evidence (10 explicit versions)
Original source description
Impact
It allows over the Admin Login form to detect which user (username, email) exists and which one do not exist.
Impacted by this issue are Sulu installation >= 2.5.0 and <2.5.10 using the newer Symfony Security System which is default since Symfony 6.0 but can be enabled in Symfony 5.4. Sulu Installation not using the old Symfony 5.4 security System and previous version are not impacted by this Security issue.
Patches
The problem has been patched in version 2.5.10.
Workarounds
Create a custom AuthenticationFailureHandler which does not return the $exception->getMessage(); instead the $exception->getMessageKey();
References
Currently no references.
References
- Security advisory github.com/sulu/sulu/security/advisories/GHSA-wmwf-49vv-p3mr
- Security advisory nvd.nist.gov/vuln/detail/CVE-2023-39343
- Patch github.com/sulu/sulu/commit/5f6c98ba030b2005793e2dc647cc938937ea889b
- Security advisory github.com/FriendsOfPHP/security-advisories/blob/master/sulu/sulu/CVE-2023-39343.yaml
- Source reference github.com/sulu/sulu
- Release notes github.com/sulu/sulu/releases/tag/2.5.10