Vulnerability DatabaseGHSA-fjr2-r2mp-484p

GHSA-fjr2-r2mp-484p
PHP vulnerability analysis and mitigation

Overview

A critical signature validation bypass vulnerability was discovered in SimpleSAMLphp versions up to 1.14.16, identified as CVE-2017-18122. The vulnerability was discovered on October 22, 2017, and publicly disclosed on October 25, 2017. This security flaw affects the SimpleSAML_XML_Validator class, which is responsible for verifying XML digital signatures in SAML 1 messages (SimpleSAMLphp Advisory).

Technical details

The vulnerability stems from a lax comparison in the isNodeValidated() method of the SimpleSAML_XML_Validator class. The method uses PHP's in_array() function without strict type checking to verify if DOM nodes are in the validNodes array. Due to PHP's default loose type comparison behavior, the presence of any DOM node in the list causes the function to return true for any DOM node being checked, effectively bypassing the signature validation process (GitHub Advisory).

Impact

The vulnerability allows attackers to impersonate any user from any SAML 1 Identity Provider trusted by a SimpleSAMLphp Service Provider. The only prerequisite is having access to a valid assertion previously sent to the affected Service Provider. The impact is particularly severe for SimpleSAMLphp installations with metadata deployed for SAML 1 Identity Providers, typically listed in the metadata/shib13-idp-remote.php file (SimpleSAMLphp Advisory).

Exploitability

An attacker can exploit this vulnerability by generating a SAML 1 authentication response containing two assertions: a tampered assertion with custom attributes and a legitimate signed assertion from a trusted Identity Provider. If the legitimate assertion is valid, the system merges attributes from both assertions, using the entityID from the tampered assertion. If the legitimate assertion is expired, only the tampered assertion's attributes are used (GitHub Advisory).

Mitigation and workarounds

The recommended mitigation is to upgrade to SimpleSAMLphp version 1.14.17 or later. For cases where immediate upgrade isn't possible, a patch is available that modifies the in_array() function call in the SimpleSAML_XML_Validator class to use strict comparisons by adding a third parameter 'true' (SimpleSAMLphp Advisory).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-47156CRITICAL9.3
  • PHP logoPHP
  • mantisbt/mantisbt
NoYesSep 09, 2026
CVE-2026-85400HIGH7.5
  • PHP logoPHP
  • cpe:2.3:a:typo3:typo3
NoYesSep 08, 2026
CVE-2026-53637MEDIUM6.5
  • PHP logoPHP
  • sylius/sylius
NoYesSep 08, 2026
CVE-2026-53639MEDIUM6.3
  • PHP logoPHP
  • sylius/sylius
NoYesSep 08, 2026
CVE-2026-53638MEDIUM4.3
  • PHP logoPHP
  • sylius/sylius
NoYesSep 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management