How a Simple Break Turned a Duplicate Into a P1 Bounty via Request Method Manipulation
A profile update endpoint that expected PUT also answered GET requests, returning another user's personal details. An attacker could change the HTTP method to read other users' email, phone number and account data.
cybersecuritywriteups.com
Published on cybersecuritywriteups.com
Hello hackers! In this write-up, I’ll share a recent hunting experience on one of my old targets — a platform that had already accepted 800+ vulnerabilities.
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 endpoint applied its authorization check only to the expected PUT method, so a GET to the same URL skipped the check and returned another user's data.
Impact
The endpoint could disclose other users' player ID, name, account creation date, email and phone number.
What the attacker needed
An authenticated account; ability to intercept and edit requests
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.
Web servers use different request methods for different actions: PUT usually means 'update this record', GET means 'show me this record'. Here the server only checked who you were for the update action, but still answered a 'show me' request and handed back someone else's private details. So simply swapping the method let the attacker read data they should never see.
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.