A CSRF Story I Encountered on My Bug Bounty Journey
A request to add a blog post to a private list lacked a CSRF token, so an attacker could make a logged-in victim add any post to their private list by visiting a crafted page. The impact was limited to that action.
Throughout my bug bounty journey, I have encountered many different vulnerabilities, but it was the first time I found a CSRF vulnerability. Although its impact was not very significant, this vulnerability gave me the opportunity to test and understand the CSRF concept through a real example.
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
An attacker could add any blog post to a logged-in victim's private list, but the text says the impact was not very significant.
What the attacker needed
Victim is logged in; victim visits attacker's page
How it was found
- Find the request that adds a shared blog post to a private list.
- Notice that the request contains no CSRF token.
- Create a simple CSRF proof-of-concept page that sends that request.
- Get a logged-in victim to visit the page; the post is added to their private list.
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.
CSRF (Cross-Site Request Forgery) is when a malicious website makes a logged-in user's browser send a request to another site without the user's knowledge. Here, the feature that adds a post to a private list did not check for a secret token, so any other site could trigger that action. The result was that an attacker could add a post to the victim's private list, but nothing more serious.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.