VDB
Sign up
HIGH8.1

GHSA-g888-g2pp-82hf

SimpleSAMLphp saml2 incorrect signature validation

Quick fix

GHSA-g888-g2pp-82hf — simplesamlphp/saml2: upgrade to the fixed version with the command below.

composer require simplesamlphp/saml2:^1.10.6

Details

HTTPRedirect.php in the saml2 library in SimpleSAMLphp before 1.15.4 has an incorrect check of return values in the signature validation utilities, allowing an attacker to get invalid signatures accepted as valid by forcing an error during validation. This occurs because of a dependency on PHP functionality that interprets a -1 error code as a true boolean value.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/simplesamlphp/saml2
Introduced in: 0Fixed in: 1.10.6
Fixcomposer require simplesamlphp/saml2:^1.10.6
Packagist/simplesamlphp/saml2
Introduced in: 2.0Fixed in: 2.3.8
Fixcomposer require simplesamlphp/saml2:^2.3.8
Packagist/simplesamlphp/saml2
Introduced in: 3.0Fixed in: 3.1.4
Fixcomposer require simplesamlphp/saml2:^3.1.4

References