Stealing xoxs-tokens using weak postMessage / call-popup redirect to current team domain
A weak postMessage implementation and a call-popup redirect flaw allowed an attacker's malicious site to steal XOXS tokens. The attacker could obtain these tokens by luring a victim to a malicious page.
Originally disclosed on HackerOne
- Triaged in 2 hours
- Fixed in 4 days
- Paid in 4 days
- Disclosed after 11 days
Summary by the program
@fransrosen discovered a vulnerability which would allow an attacker running a malicious site to steal XOXS tokens. We resolved the postMessage and call-popup redirect issues, and performed a thorough investigation to confirm that this had never been exploited. Thanks @fransrosen for an interesting finding!
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
Likely the postMessage handler did not properly check the origin of messages, and the call-popup redirect allowed sending the token to an attacker-controlled domain.
Impact
An attacker could steal XOXS tokens; the text gives no further exploitation details.
What the attacker needed
Victim visits malicious site
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.
This report describes a flaw where a bad website could steal a secret login token, letting an attacker act as you.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.