Read the docs
TI-2024-38700 Aliases GHSA-9wrw-p9rm-r782

onelogin/php-saml Improper signature validation on LogoutRequest/LogoutResponse.

Priority LOW 38Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

In order to verify Signatures on Logoutrequests and LogoutResponses we use the verifySignature of the class XMLSecurityKey from the xmlseclibs library. That method end up calling openssl_verify() depending on the signature algorithm used. The openssl_verify() function returns 1 when the signature was successfully verified, 0 if it failed to verify with the given key, and -1 in case an error occurs. PHP allows translating numerical values to boolean implicitly, with the following correspondences: - 0 equals false. - Non-zero equals true. This means that an implicit conversion to boolean of the values returned by openssl_verify() will convert an error state, signaled by the value -1, to a successful verification of the signature (represented by the boolean true). The LogoutRequest/LogoutResponse signature validator was performing an implicit conversion to boolean of the values returned by the verify() method, which subsequently will return the same output as openssl_verify() under most circumstances. This means an error during signature verification is treated as a successful verification by the method. Since the signature validation of SAMLResponses were not affected, the impact of this security vulnerability is lower, but an update of the php-saml toolkit is recommended.

Why it matters now

Fix Fixed onelogin/php-saml (Packagist): 2.10.4

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—onelogin/php-saml (Packagist)before 2.10.42.10.4Patch availableGHSA-9wrw-p9rm-r782
  • onelogin/php-saml (Packagist) Vendor— Affected before 2.10.4 Fixed in 2.10.4 Patch available GHSA-9wrw-p9rm-r782

Remediation

  • Fix · GHSA-9wrw-p9rm-r782 onelogin/php-saml (Packagist) Fixed in 2.10.4 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-9wrw-p9rm-r782

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences