Workflow Bypass Leading to Unauthorized Access to Sensitive Records (IDOR / Broken Object-Level…
The backend trusted a client-supplied numeric record ID without checking ownership, allowing an attacker to access other users' prescription PDFs and sensitive personal data. The attacker could also trigger the platform to send those documents to an arbitrary phone number.
While testing a multi-step prescription/order workflow on a healthcare-adjacent platform, I found that intercepting and manipulating requests at a specific step allowed me to bypass a client-side validation error, trigger backend state changes out of sequence, and ultimately access other users’ records by manipulating…
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 trusted a client-supplied record ID without verifying that the requesting user owned that record, and workflow steps were enforced only in the frontend.
Impact
An attacker could systematically enumerate sequential IDs to harvest other users' sensitive records, including personal contact information and health-adjacent data, and redirect that data to phone numbers they controlled.
What the attacker needed
A normal user account; ability to intercept HTTP requests; knowledge of a valid record ID pattern
The fix
The backend should enforce object-level authorization on every record fetch and treat workflow steps as server-side state, with unpredictable identifiers as defence in depth.
How it was found
- Walk through the multi-step order/prescription flow as a normal user.
- Hit a backend validation error at one step and intercept the request in Burp.
- Freeze the flow and observe the sequence of backend calls, including a GET request with a numeric recordId.
- Change the recordId to a nearby sequential number belonging to another user and replay the request.
- Observe the app redirect to a PDF rendering view for the other user's record.
- Use the workflow to send the document to an arbitrary phone number.
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.
When you view a record, the app asks the server for it using an ID number. The server should check that the record belongs to you before returning it. Here it did not, so changing the number let anyone read other people's private documents.
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.