Authentication Bypass Affecting simplesamlphp/saml2 package, versions <1.10.6 >=2.0, <2.3.8 >=3.0, <3.1.4
Snyk CVSS
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-PHP-SIMPLESAMLPHPSAML2-72102
- published 8 Mar 2018
- disclosed 1 Mar 2018
- credit Cure53, John Maguire, Adam Goodman
Introduced: 1 Mar 2018
CVE-2018-7711 Open this link in a new tabHow to fix?
Upgrade simplesamlphp/saml2
to version 3.1.4, 2.3.8, 1.10.6 or higher.
Overview
simplesamlphp/saml2 is an application written in native PHP that deals with authentication.
Affected versions of this package are vulnerable to Authentication Bypass. An incorrect check of return values in the signature validation utilities allows an attacker to get invalid signatures accepted as valid by forcing an error during validation.
Details
Security Assertion Markup Language (SAML) is an XML-based markup language for security assertions regarding authentication and permissions, most commonly used for single sign-on (SSO) services.
Some XML DOM traversal and canonicalization APIs may be inconsistent in handling of comments within XML nodes. Incorrect use of these APIs by some SAML libraries results in incorrect parsing of the inner text of XML nodes such that any inner text after the comment is lost prior to cryptographically signing the SAML message. Text after the comment therefore has no impact on the signature on the SAML message.
A remote attacker can modify SAML content for a SAML service provider without invalidating the cryptographic signature, which may allow attackers to bypass primary authentication for the affected SAML service provider.