Detect lightSAML Signature Wrapping Authentication Bypass (CVE-2026-63182) in Google Chronicle
Detects exploitation attempts and vulnerable deployments of the lightSAML PHP SAML library (litesaml/lightsaml) affected by CVE-2026-63182, a signature wrapping (XML Signature Wrapping / XSW) vulnerability. The flaw (CWE-347, Improper Verification of Cryptographic Signature) lets an attacker wrap a validly-signed SAML assertion around a forged, attacker-controlled assertion so that lightSAML validates the signature on the legitimate element while consuming the attacker's unsigned assertion. This yields full SAML SSO authentication bypass / identity impersonation. Affected: >=5.0.0,<5.0.1 and >=4.0.0,<4.7.1; fixed in 4.7.1 and 5.0.1. Detection focuses on anomalous SAML Response structure (multiple Assertion/Signature elements, mismatched signed vs consumed assertion IDs), high-privilege logons immediately following SAML SSO, and inventory of vulnerable library versions.
Based on GHSA-w553-pwx6-3mg9, lightSAML Signature wrapping bypass
MITRE ATT&CK
- Tactic
- Initial Access Credential Access
YARA-L Detection Query
// df00tech DF00-1a15482112 · https://df00tech.com/detections/CVE-2026-63182 · licence: https://df00tech.com/detections/licence
rule lightsaml_xsw_cve_2026_63182 {
meta:
author = "argus"
description = "SAML signature wrapping bypass attempts against lightSAML (CVE-2026-63182)"
severity = "HIGH"
events:
$e.metadata.event_type = "NETWORK_HTTP"
$e.network.http.method = "POST"
re.regex($e.target.url, `/(acs|saml|sso|consume)`) nocase
$e.network.http.parsed_user_agent.user_agent != ""
$ip = $e.principal.ip
match:
$ip over 5m
condition:
#e >= 3
} Detects repeated POSTs to SAML ACS/SSO endpoints from the same principal IP within a short window, consistent with XSW payload iteration against a lightSAML service provider.
Data Sources
Required Tables
False Positives & Tuning
- High-volume legitimate SSO from a shared egress IP
- SAML availability monitoring
- Authorized red-team activity
Other platforms for CVE-2026-63182
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.
- Test 1 Enumerate installed lightSAML version (vulnerable inventory)
Expected signal: Process execution of composer/grep reading composer.lock; file read access to the project directory.
- Test 2 Simulate XSW SAMLResponse with duplicate Assertion
Expected signal: POST to /acs with a SAMLResponse parameter whose decoded body contains two <saml:Assertion> elements.
- Test 3 Simulate unsigned-assertion wrapping attempt
Expected signal: POST to /acs with a decoded SAMLResponse containing a Signature not bound to the Assertion element.
References (9)
- https://github.com/litesaml/lightsaml/security/advisories/GHSA-w553-pwx6-3mg9
- https://nvd.nist.gov/vuln/detail/CVE-2026-63182
- https://github.com/litesaml/lightsaml/pull/113
- https://github.com/litesaml/lightsaml/pull/122
- https://github.com/litesaml/lightsaml/commit/230e62d1325f2cbcaac814b78409775f7a8806a2
- https://github.com/litesaml/lightsaml/commit/3af82bf2f3865e6aafeeb1a97c97b383b8bb7b00
- https://github.com/litesaml/lightsaml/releases/tag/4.7.1
- https://github.com/litesaml/lightsaml/releases/tag/5.0.1
- https://github.com/advisories/GHSA-w553-pwx6-3mg9
Response Playbook
Triage
- Identify the application using lightSAML and determine its installed version via `composer show litesaml/lightsaml` or inspecting composer.lock; confirm whether it is >=5.0.0,<5.0.1 or >=4.0.0,<4.7.1 (vulnerable).
- Retrieve the raw SAMLResponse from application/web logs for the flagged request, base64-decode it, and inspect for multiple <saml:Assertion> or <ds:Signature> elements, or an Assertion whose ID differs from the signed element's Reference URI.
- Determine which identity the application granted the session to and compare it against the subject of the cryptographically-signed assertion element; a mismatch confirms a successful wrapping bypass.
- Review subsequent authenticated actions for the impersonated identity, focusing on privileged or administrative operations.
Containment
- Immediately upgrade lightSAML to 4.7.1 or 5.0.1 (or later) which enforce that the signed element is the one consumed.
- Invalidate all active SSO sessions for the affected application and force re-authentication; revoke any tokens/cookies issued since the earliest suspicious SAMLResponse.
- If upgrade cannot be applied immediately, place the SP behind a WAF/reverse-proxy rule that rejects SAMLResponses containing more than one Assertion or Signature element and temporarily restrict ACS access to the IdP source range.
Evidence Collection
- Preserve the full raw (base64 and decoded) SAMLResponse payloads, web server access logs, and application SAML processing logs for the affected time window.
- Capture the composer.lock / installed lightSAML version and the SP's SAML configuration (expected signing certificate, ACS URL, clock settings) for the investigation record.
- Export authentication and authorization audit logs showing the sessions and actions tied to the granted (impersonated) identity.
Escalation Criteria
- !Escalate to incident response if a signed-vs-consumed assertion mismatch is confirmed, indicating a successful authentication bypass and identity impersonation.
- !Escalate to the application/business owner if the impersonated identity performed privileged, financial, or data-exfiltration actions.
- !Escalate for broader hunt if multiple source IPs or multiple SP applications sharing the lightSAML dependency show the same anomalous SAMLResponse structures.
Investigation Guide
Forensic Artifacts
- >
Raw base64 SAMLResponse payloads in web/application logs containing multiple Assertion or Signature elements - >
Mismatch between the ID referenced by the ds:Signature Reference URI and the Assertion ID actually consumed by the SP - >
Application session store entries binding a session to an identity not present in the signed assertion - >
lightSAML version string in composer.lock indicating an affected release
Tuning Guidance
Baseline the normal number of Assertion and Signature elements for each federated IdP, some vendors legitimately sign both the Response and the Assertion (two Signatures) or wrap an EncryptedAssertion. Allowlist known IdP egress IPs and SSO monitoring agents to reduce volume-based false positives, and prioritize alerts where the signed element ID does not match the consumed assertion ID, which is the definitive XSW indicator.
Hunting Queries
Hunt for SAMLResponse payloads with anomalous Assertion/Signature element counts and high-volume ACS POST bursts across the environment.
// df00tech DF00-1a15482112 · https://df00tech.com/detections/CVE-2026-63182 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csUriStem has_any ("/acs","/saml","/sso","/consume") and csMethod == "POST" | where csUriQuery has "SAMLResponse" or csUriStem has "acs" | summarize count() by cIP, bin(TimeGenerated, 1h) | where count_ > 10 ``` df00tech DF00-1a15482112 · https://df00tech.com/detections/CVE-2026-63182 · licence: https://df00tech.com/detections/licence ```
index=web (uri_path="*/acs*" OR uri_path="*/saml*") method=POST | rex field=form_data "SAMLResponse=(?<b>[^&]+)" | eval x=base64decode(urldecode(b)) | eval ac=mvcount(split(x,"<saml:Assertion"))-1, sc=mvcount(split(x,"<ds:Signature"))-1 | where ac>1 OR sc>1 | table _time src_ip ac sc Atomic Red Team Tests
Checks whether the lightSAML library present on a host is within the CVE-2026-63182 affected ranges.
Command
composer show litesaml/lightsaml 2>/dev/null | grep -i versions; grep -A2 'litesaml/lightsaml' composer.lock 2>/dev/null | grep version Cleanup
echo 'no cleanup required (read-only inventory)' Expected Telemetry
Process execution of composer/grep reading composer.lock; file read access to the project directory.
Expected Detection
Not a detection event itself; feeds vulnerable-version inventory used to scope the detection.
Posts a crafted SAMLResponse containing two Assertion elements (one signed wrapper, one unsigned forged) to the ACS endpoint in a lab to trigger structural detection.
Command
B64=$(printf '<samlp:Response><saml:Assertion ID="signed"><ds:Signature/></saml:Assertion><saml:Assertion ID="forged"><saml:Subject>[email protected]</saml:Subject></saml:Assertion></samlp:Response>' | base64 -w0); curl -sk -X POST "https://sp.lab.test/acs" --data-urlencode "SAMLResponse=${B64}" Cleanup
echo 'no cleanup required (no persistent state created on attacker host)' Expected Telemetry
POST to /acs with a SAMLResponse parameter whose decoded body contains two <saml:Assertion> elements.
Expected Detection
SPL/Chronicle/CQL rules flag assertion_count > 1 in the decoded SAMLResponse.
Posts a SAMLResponse where the single Assertion has no corresponding Signature, simulating a wrapping payload that relies on a signature elsewhere in the document.
Command
B64=$(printf '<samlp:Response><ds:Signature>wrapper</ds:Signature><saml:Assertion ID="forged"><saml:Subject>[email protected]</saml:Subject></saml:Assertion></samlp:Response>' | base64 -w0); curl -sk -X POST "https://sp.lab.test/acs" --data-urlencode "SAMLResponse=${B64}" Cleanup
echo 'no cleanup required' Expected Telemetry
POST to /acs with a decoded SAMLResponse containing a Signature not bound to the Assertion element.
Expected Detection
SPL rule flags assertion_count >= 1 with signature_count == 0 on the Assertion, matching the wrapping heuristic.