How a Simple GET Request Led to a $500 CSRF Bounty
A state-changing action to disconnect a linked social media account was handled via a GET request without CSRF protection. An attacker could make a logged-in user visit a malicious page that silently triggers the disconnect.
medium.com
Published on medium.com
I used to think CSRF vulnerabilities required complex payloads and advanced techniques. That changed when I discovered a real-world issue where a single GET request was enough to earn a $500 bounty.
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 the application used a GET request for a state-changing action and did not verify that the request was intentionally made by the user, so the browser's automatic cookie inclusion was enough to authorise it.
Impact
A logged-in user could have their linked social media account disconnected without their consent, though the text does not claim any further damage.
What the attacker needed
Victim is logged in; victim visits attacker-controlled page
The fix
The disconnect action should require a POST request with a CSRF token and user confirmation, rather than being triggered by a GET request.
How it was found
- The attacker creates a malicious page that loads the disconnect endpoint as an image.
- A logged-in user visits the malicious page.
- The browser sends the GET request with the user's session cookies.
- The account is disconnected without confirmation.
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.
When you log into a website, your browser stores a cookie that proves who you are. If a website lets a simple link or image load perform an important action, another site can make your browser send that request with your cookie attached, and the action happens without you knowing. This is called cross-site request forgery (CSRF).
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.