Skip to content
OAuth / SSO Write-up Intermediate

How we escalated a DOM XSS to a sophisticated 1-click Account Takeover for $8,000 — Part 1 | by The Frog Sec

The report describes an investigation into an OAuth login flow where the redirect_uri parameter was restricted to a specific domain but allowed arbitrary paths, and the oauth_callback endpoint used a JavaScript-based redirect via the 'next' parameter. The authors identify a potential DOM XSS sink but do not demonstrate exploitation in this part; the full account takeover is deferred to part 2.

Benasin Follow

Published on thefrogsec.github.io

Bounty$8,000total stated by author View original

Today Frog Sec Team will dive into a fascinating case study where we escalated a seemingly simple DOM XSS into a sophisticated 1-click Account Takeover.

Benasin (@Benasin3), LongTheShrimp (@LongShrimp0812), on thefrogsec.github.io

The full write-up lives on its author's site

It belongs to its author, 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

Impact

The text does not demonstrate a full exploit in this part; it only identifies a potential DOM XSS sink that could be escalated to account takeover in part 2.

What the attacker needed

Victim clicks a link; attacker can craft a URL

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.

This is part one of a two-part write-up about a login system that uses OAuth, a common way to sign in with another service. The researchers found that the login page only allowed redirects to a specific partner site but let them change the path after the domain, and that a later redirect was done by JavaScript rather than a server response. They suspect this could lead to a script injection bug, but the actual exploitation is in part two.

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.

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.