# SAML2: Incomplete fix of CVE-2026-49283: unsigned embedded Response bypasses HTTP-Artifact signature verification (no embedded-Issuer binding)

Incomplete fix in simplesamlphp/saml2 HTTPArtifact::receive() returns an unsigned embedded SAML Response unverified, letting a trusted IdP impersonate users of another IdP.

- Payout: Research
- Severity: high
- Program: SimpleSAMLphp saml2
- Found by: Pig-Tail
- Disclosed: 2026-11-17
- CVE: CVE-2026-110782
- Write-up quality: 8/10
- Original: https://github.com/advisories/GHSA-r7hw-jx6r-756g
- Library page: https://bugbountylibrary.com/r/ghsa%3AGHSA-r7hw-jx6r-756g
- Tags: area:oss domain:oss impact:ato impact:privesc kind:research platform:ghsa sev:high tech:saml technique:incomplete-fix technique:source-review vuln:access-control vuln:auth-bypass vuln:signature-replay

**Target:** SAML2 HTTP-Artifact binding (HTTPArtifact::receive) in simplesamlphp/saml2 library
**Root cause:** The #414 refactor gated embedded-Response verification on isSigned() and returns early when unsigned, instead of the outer ArtifactResponse's mandatory throw; no check binds the embedded Response's Issuer to the artifact issuer.
**Steps:**
1. Attacker (controlling trusted IdP-B) sends `SAMLart` with sourceId = sha1(IdP-B entityID) to the SP artifact endpoint.
2. SP resolves the artifact against IdP-B's ArtifactResolutionService (attacker endpoint).
3. IdP-B returns a validly-signed outer `ArtifactResponse` (passes `verifyArtifactResponseSignature` vs IdP-B metadata) wrapping an unsigned `<samlp:Response Issuer=IdP-A>` with an assertion for `admin@IdP-A`.
4. `receive()` hits `if (!$samlResponse->isSigned()) { return $samlResponse; }` and returns the forged Response without calling `verifyMessageSignature()`.
5. SP processes the forged Response as if authenticated by the binding.
**How found:** Reporter re-read the fix for CVE-2026-110782 and noticed the outer ArtifactResponse check throws when unsigned while the embedded Response check returns early when unsigned — an asymmetry; also noticed verifyMessageSignature never compares the embedded Issuer to the artifact issuer. Confirmed via reflection-based PHPUnit PoC against the real shipped private methods.
**Exploitation:** Requires SP using HTTP-Artifact binding in a multi-IdP federation where the attacker operates one trusted IdP with valid metadata and a real signing key. Attacker returns a signed outer ArtifactResponse wrapping an unsigned embedded Response claiming another IdP's Issuer, achieving cross-IdP authentication bypass / account impersonation.
**Insight:** When auditing a fix for a cross-tenant/cross-issuer auth bug, check whether the fix binds the inner message's Issuer to the outer authenticated identity — signature verification alone against the wrong key source still permits confusion. Also compare mandatory-vs-optional guards on outer vs embedded messages; an early `return` on unsigned is a classic incomplete-fix tell.

## Proof of concept (copied exactly from the original report)

**Vulnerable receive() short-circuit code**

```
if (!$samlResponse->isSigned()) {
    return $samlResponse;                         // ← unsigned embedded Response returned UNVERIFIED
}
return $this->verifyMessageSignature($samlResponse, $idpMetadata);   // only runs when signed
```

