Unintended Consequences: How a ‘Cancel’ Button Gave Me Full A
The appointment cancellation and document endpoints trusted a client-supplied user_id instead of the logged-in session, so changing that value let the tester act on other users' appointments and documents. The author claims this led to account takeover, cross-tenant file access and admin operations, though the text gives no concrete proof of the takeover or admin steps.
Published on systemweakness.com
In today’s hyper-agile world, developers often prioritize functionality and speed over security. But what if I told you that something as innocent as a “Cancel” button led me to full access in a production application?
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 used client-supplied user_id and appointment_id values for authorization instead of deriving the user from the session and checking ownership.
Impact
The tester could cancel and view other users' appointments and read their documents, and claims account takeover and admin operations, but the text does not show those steps or any defence that limited the exploit.
What the attacker needed
An authenticated account; ability to enumerate other users' IDs
The fix
The server should derive the user from the session, enforce ownership and role checks on every endpoint, and centralise and log access control; the text does not say whether this was fixed.
How it was found
- Observe the cancel appointment request includes appointment_id and user_id.
- Enumerate other users' IDs from insecure API responses.
- Change user_id in the cancel request to another user's ID and cancel their appointment.
- Try modifying appointment metadata with PATCH/PUT and replay requests with changed IDs.
- Request a document path built from another user's ID and appointment ID to read 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.
The app let the browser say which user an action was for, and the server believed it. By swapping in someone else's user number, the tester could cancel their appointments and open their documents. This is called an insecure direct object reference: the server should check who is logged in rather than trusting an ID sent by the client.
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.