Skip to content
IDOR Write-up Intermediate

How I Found an IDOR That Exposed Cancer Patient Identities on a Government Healthcare Portal

An IDOR in an Odoo-based oncology portal allowed any self-registered user to call the name_get method on several models and retrieve patient full names, appointment records, and internal medical messages. The attacker could enumerate the identities of thousands of cancer patients without any relationship to them.

ABO3JRAM Follow

Published on medium.com

How I Found an IDOR That Exposed Cancer Patient Identities on a Government Healthcare Portal

ABO3JRAM, on 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 display_name compute function used .sudo() to bypass access control rules, and the name_get method exposed that computed name to any authenticated user.

Impact

The vulnerability exposed the full names of approximately 2,800 medical finding records, 3,000 appointment records, and 48,900 internal medical messages, affecting thousands of cancer patients and constituting a GDPR Article 9 violation.

What the attacker needed

A self-registered portal account; valid-format national ID number

How it was found

  1. Self-register a portal account using a valid-format national ID number.
  2. Log in and confirm that the UI only shows your own data.
  3. Call the read method on a medical finding record belonging to another patient and observe an access error.
  4. Call the name_get method on the same model with a list of record IDs and receive patient names.
  5. Repeat name_get on other models such as appointments, users, and mail messages to retrieve more data.

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.

An IDOR (Insecure Direct Object Reference) is when a program lets you access data by simply changing an identifier, like a record number, without checking if you are allowed to see it. Here, the portal's normal screens were locked down, but a behind-the-scenes function that returns display names did not check permissions, so anyone with an account could ask for any patient's name and get it.

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.

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.