GitHub Advisory Database
GHSA-rpj7-hr7h-w6p9
CoreWCF: SamlSerializer skips SignatureValue verification when SAML signing token is not an X.509 certificate
Details
Impact
When a service is configured to validate SAML tokens using a method other than X.509 certificate signing, the final signature verification is skipped.
Preconditions
The service is configured to authenticate using SAML tokens and an out of band token resolver (commonly the IssuerTokenResolver of IssuedTokenServiceCredential) holds a non-X.509 SecurityToken whose key identifier the attacker can reference in the assertion’s <KeyInfo> - for example a BinarySecretSecurityToken representing the symmetric proof key issued by a WS-Trust symmetric-key holder-of-key STS.
Patches
Fixed in CoreWCF v1.8.1 and v1.9.1
Workarounds
None
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| NuGet | CoreWCF.Primitives | All versions before 1.8.1 (fixed in 1.8.1) |
| NuGet | CoreWCF.Primitives | From 1.9.0 before 1.9.1 (fixed in 1.9.1) |