My First Bug Bounty: How I Earned $1,000
Admin routes listed in robots.txt returned 403 to GET requests but 200 to POST requests, allowing access to protected areas. An attacker could reach admin functionality without authorisation by changing the HTTP method.
medium.com
Published on medium.com
Bug bounty hunting had been on my radar for a while. After reading dozens of write-ups and diving into HackerOne’s documentation, I finally decided to go hands-on.
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 access-control check was applied only to GET requests, leaving other HTTP methods such as POST unprotected.
Impact
An attacker could access protected admin areas without authorisation, though the report does not show whether further actions were possible.
What the attacker needed
None
The fix
The access-control check should apply to all HTTP methods, not just GET.
How it was found
- Review robots.txt and notice the disallowed /admin/ path.
- Intercept a GET request to /admin/ in Burp Suite and observe a 403 Forbidden response.
- Change the request method from GET to POST and forward it.
- Observe a 200 OK response, indicating access was granted.
- Repeat the method change on other admin routes such as /admin/users and confirm they also return 200.
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.
Some websites hide admin pages but still list them in a file called robots.txt, which tells search engines what not to crawl. The server blocked normal GET requests to those pages but forgot to block POST requests, so simply changing the request type opened the door. This is an access-control mistake, not a password bypass.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.