How I Found 3 Bugs in a Single Day
The blog subdomain allowed deleting comments by changing the comment identifier without checking the authorization token, so an attacker could delete other users' comments. The same subdomain also lacked rate limits on OTP verification and comment posting, though these were closed as not applicable or informative.
In this write-up, I will share my journey of discovering my first high-severity bug and making it to the Hall of Fame (HOF). I’ll take you through the entire process, from selecting a target to reporting an IDOR vulnerability.
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 server trusted the comment identifier supplied by the client and did not verify that the authenticated user owned that comment.
Impact
An attacker could delete other users' comments without authorization; the report was triaged as high severity.
What the attacker needed
A free account; victim has posted a comment
How it was found
- Create an account and post a comment on a blog post.
- Intercept the delete comment request and note the commentId parameter.
- Post a comment from a different account and copy its commentId from the comment link.
- Replace the commentId in the delete request with the other user's commentId and forward it.
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.
A comment identifier is a unique code for each comment. The site did not check that the person deleting a comment was the one who wrote it, so anyone could delete anyone else's comment by swapping the code. This is called an IDOR, or insecure direct object reference.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.