Skip to content
IDOR Write-up Intermediate

Story of a strange IDOR without ID

A normal user could access and modify a patient's medical records despite the admin blocking that user, by replaying a sequence of API requests with their own session and identifiers. The attacker could read the patient's review history and mark medication processes as done without permission.

Arman Follow

Published on m7arm4n.medium.com

Hello folks, It’s me again m7arm4n :) I want to tell the story of a strange IDOR today. So let’s get into it…

M7arm4n, on m7arm4n.medium.com

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 API endpoints relied on client-supplied identifiers and session state without verifying that the logged-in user had permission to access the specified patient record.

Impact

The attacker could read a patient's review history and mark medication processes as done, even after the admin blocked their account from accessing that patient.

What the attacker needed

A normal user account; admin-created patient record; captured request structure from admin

How it was found

  1. As admin, create a patient and set privacy restrictions for the normal user.
  2. As admin, open the patient's review history and add a prescription to capture the API request structure.
  3. Log in as the normal user and capture the request to /API/PrivacyOverrideApi/CheckIsRestrictedUser/ to find the cookie, patientId, userId, and RxID values.
  4. Send the sequence of requests with the attacker's cookie and the target patient's identifiers.
  5. From the response to the GetPatientReviewHistory request, copy the RxID value.
  6. Use the RxID in subsequent requests to retrieve the patient's review history and mark medication as done.

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.

This is a broken access control bug: the website checked who you are but not whether you are allowed to see a particular patient's data. A normal user could follow a series of web requests, swap in their own login cookie and patient details, and still view or change records that the admin had explicitly blocked them from.

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.

More by Arman

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

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.