Authentication Bypass The advisory has been revoked - it doesn't affect any version of package simplesamlphp/saml2  (opens in a new tab)


Threat Intelligence

EPSS
0.24% (64th percentile)

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 IDSNYK-PHP-SIMPLESAMLPHPSAML2-72118
  • published8 Apr 2018
  • disclosed1 Mar 2018
  • creditUnknown

Introduced: 1 Mar 2018

CVE-2018-7711  (opens in a new tab)
CWE-347  (opens in a new tab)

How to fix?

Upgrade simplesamlphp/saml2 to version 3.1.4, 2.3.8, 1.10.6 or 1.15.4.

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.