CVE-2018-5387: Wizkunde SAMLBase SAML Bypass
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.45552%
CWE
Published
5/13/2022
Updated
10/5/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
gogentooss/samlbase | composer | < 1.2.7 | 1.2.7 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper handling of XML comments during text extraction and canonicalization. SAML implementations must consistently process all text nodes when extracting values like NameID. The patch commit (482cdf8c) likely modified these text extraction functions to properly concatenate all text content while ignoring comments, as indicated by the CWE-347 classification and Duo's analysis of XML API pitfalls. The functions handling XML node text extraction (SAML2_Utils::getNodeText) and assertion processing (SAML2_Assertion::processValidatedElement) would be the primary locations where improper text handling would enable signature validation bypass.