Skip to content
OAuth / SSO Disclosed report Advanced CVE-2026-58066

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.

0jayden Follow

Originally disclosed on HackerOne

Critical 9.8 View original
  • 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.

The original report as published on HackerOne, by 0jayden. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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.

More from Rocket.Chat

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

OAuth and single sign-on flaws

The lesson behind this report.

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.