Skip to content
OAuth / SSO Write-up Intermediate

Slack SAML authentocation bypass

Slack's SAML implementation did not validate the AudienceRestriction element of SAML assertions, so an assertion issued for a different service provider was accepted. An attacker could present an old, expired assertion signed for another service and be logged into Slack as the subject named in that assertion.

ll Follow

Published on blog.intothesymmetry.com

Bounty$3,000 View original

The original lives on blog.intothesymmetry.com

We do not hold its text, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely Slack's SAML service provider did not verify that the assertion's AudienceRestriction matched Slack, allowing assertions intended for other service providers to be replayed.

Impact

An attacker could log in to Slack as the user named in an assertion meant for another service, including an expired one, bypassing authentication.

What the attacker needed

A SAML assertion issued for another service; access to Slack's SAML endpoint

The fix

Slack resolved the issue, though the text does not describe the code change.

How it was found

  1. Obtain a SAML assertion that was issued for a different service provider and signed for a subject other than the attacker.
  2. Present that assertion to Slack's SAML endpoint.
  3. Observe that Slack accepts the assertion and logs the attacker in as the subject named in it.

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 write-up has not been written yet. The Original tab links to the source.

SAML is a way for a company to let users log in through a separate identity provider. Each login ticket (assertion) says which service it is meant for, so one service should not accept a ticket issued for another. Slack failed to check that label, so a ticket meant for a different site was accepted and the attacker was logged in as whoever the ticket named.

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 by ll

View all

6 more disclosed reports, best first.

More from Slack

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.