Let’s steal some tokens!
The blog post describes three chained vulnerabilities: a CSRF token leaked via Google Analytics, a chain of minor bugs leading to Facebook access token theft, and a hidden input XSS used for account takeover. An attacker could steal sensitive tokens and potentially take over accounts.
Published on seekurity.com
In this blog post I will be talking about my experience with minor bugs chained together to steal sensitive tokens.
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
Root cause
Likely multiple issues: CSRF token exposed in URL, insufficient validation of redirect_uri, and XSS in hidden input field.
Impact
An attacker could steal users' Facebook access tokens and use them to access the user's Facebook account.
What the attacker needed
Attacker has a Shopify store; attacker has a kitcrm.com account; victim visits a crafted page
The fix
Shopify fixed the issue by setting the Facebook OAuth application's redirect_uri to the exact callback endpoint and removing the domain from the whitelist.
How it was found
- Attacker registers a Shopify store and a kitcrm.com account.
- Attacker sets priority product image URL to a malicious server.
- Attacker tricks victim into visiting a crafted page that logs them into attacker's store and kitcrm.com.
- Victim is redirected to Facebook OAuth, then back to kitcrm.com with a code in the URL.
- The malicious image request sends the code to the attacker's server via the Referer header.
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 post explains how small security mistakes can be combined to steal secret codes that websites use to identify users. For example, a token might be leaked in a web address, and an attacker can trick a victim into revealing it. The author shows three different ways this happened.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.