Authentication Bypass via XML Signature Wrapping in SAML SSO
The SAML SSO implementation verified XML signatures but did not bind the validated signature to the response or assertion elements. An attacker could submit a wrapped document with forged identity attributes alongside any valid signature from the trusted IdP certificate, allowing login as an arbitrary user.
- Fixed in 12 days
- Disclosed after 31 days
Summary by the program
Rocket.Chat's SAML SSO verified XML signatures but did not bind the validated signature to samlp:Response / saml:Assertion. An attacker could submit a wrapped document carrying forged identity attributes alongside any valid signature made by the trusted IdP certificate, and log in as an arbitrary user.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The application validated an XML signature but did not ensure it covered the specific response or assertion elements used for authentication, enabling XML Signature Wrapping.
Impact
An attacker could log in as an arbitrary user by wrapping a forged assertion with a valid signature.
What the attacker needed
A valid SAML signature from the trusted IdP; ability to submit a crafted SAML response
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
SAML is a way for a company's login system to tell another app who you are. The app checks a digital signature to trust that message, but here it checked the signature without making sure it belonged to the part of the message containing your identity. An attacker could reuse a real signature from the login provider and attach fake identity details, then log in as anyone.
What is OAuth / SSO?
Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.