How I Earned a $300 Bug Bounty by Finding an Authorization Bypass
A voucher API decided whether a user was allowed to see a voucher by reading a client-supplied query parameter, and leaving that parameter empty skipped the check. An attacker could then read voucher details such as title, amount, expiry and redemption instructions that were meant only for eligible users.
Authorization vulnerabilities are often overlooked because they don’t always involve complex exploits. Sometimes, a single client-controlled parameter is enough to expose sensitive information.
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
The backend made its authorization decision using a client-controlled query parameter, and an empty value caused the validation to be skipped rather than denied.
Impact
An attacker could enumerate voucher details and gather promotional information without passing the eligibility checks, though the text states this did not allow voucher redemption.
What the attacker needed
Access to the voucher API; a known voucher and membership identifier
The fix
Authorization should be enforced on the server using the authenticated user's own record, never a value supplied by the client.
How it was found
- Send a request to the voucher endpoint with the user mode parameter set to a normal value and observe the access-denied response.
- Change only the user mode parameter so that it is empty, leaving the voucher and membership identifiers the same.
- Observe that the request now returns a success response containing the full voucher details.
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 web APIs take extra instructions from the person making the request, such as a value saying which kind of user they are. Here the server believed that value instead of checking the account itself. By sending the value blank, the requester made the permission check do nothing, so the server handed back voucher information it should have kept private.
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.