Authentication Bypass Vulnerability in Symfony Ldap Component
Summary
CVE-2018-11407: An issue was discovered in the Ldap component in Symfony 2.8.x before 2.8.37, 3.3.x before 3.3.17, 3.4.x before 3.4.7, and 4.0.x before 4.0.7. Affects symfony across 3 version ranges.
< 3.4.12+dfsg-1
>= 5615b92cd452cd54f1433a3f53de87c096a1107f, < e5150a094b08887356b2b90805538836208d4569
>= a8d5dd00894f8b5e3edb897f4504c51ddc442370, < 779963cae79262cc38d7bb2ad7f15f21ee80a16d
Fixed in 3.4.12+dfsg-1. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Symfony is a robust PHP framework widely used for building web applications. It provides a set of reusable PHP components and a web application framework that helps developers create scalable and maintainable applications. The Ldap component of Symfony facilitates interaction with LDAP (Lightweight Directory Access Protocol) servers, allowing for user authentication and directory services. However, certain versions of this component are vulnerable to an authentication bypass issue, which can compromise application security.
Vulnerability Detail
An issue was discovered in the Ldap component of Symfony versions 2.8.x before 2.8.37, 3.3.x before 3.3.17, 3.4.x before 3.4.7, and 4.0.x before 4.0.7. This vulnerability allows remote attackers to bypass authentication by logging in with a 'null' password and a valid username, triggering an unauthenticated bind. This flaw exists due to an incomplete fix for a previous vulnerability (CVE-2016-2403), potentially allowing unauthorized access to sensitive information and user accounts.
How To Fix
Minimum fixed version
3.4.12+dfsg-1
This is the first release that contains the fix.
sudo apt-get install --only-upgrade symfony
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
If immediate upgrading is not feasible, consider implementing additional authentication checks in your application to prevent unauthenticated binds. This could involve enforcing stricter password policies or implementing multi-factor authentication (MFA) as a temporary measure until the upgrade can be completed.
Conclusion
The authentication bypass vulnerability in the Symfony Ldap component poses a significant risk to applications using affected versions. It is crucial for developers to upgrade to secure versions promptly and consider implementing additional security measures as a temporary solution. Monitoring tools like Vulert can assist in identifying vulnerabilities in real-time.
See every vulnerability recorded for symfony →
FAQ
The vulnerability affects Symfony versions 2.8.x before 2.8.37, 3.3.x before 3.3.17, 3.4.x before 3.4.7, and 4.0.x before 4.0.7.
The CVSS score of this vulnerability is 9.8, indicating a critical level of severity.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. You can check your application against this vulnerability using the Vulert playground without any signup.
Exploitation of this vulnerability could allow attackers to gain unauthorized access to user accounts and sensitive data, leading to data breaches and compromised application integrity.
Yes, implementing additional authentication checks, such as enforcing stronger password policies or using multi-factor authentication, can help mitigate the risk until the vulnerability is patched.
Related vulnerabilities
Recent vulnerabilities recorded for symfony.