I found an IDOR exposing 250k patient records in a telehealth startup
MEDVi assigned each patient intake form a sequential, unauthenticated URL, so anyone could view another person's name, contact details, weight and medication order by changing the number in the link. An attacker could enumerate these URLs to access the health information of up to 250,000 customers.
medium.com
Published on medium.com
I’m not a security researcher. I’m not a hacker.
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 application used sequential, guessable identifiers in URLs and relied on the URL itself as the only access control, with no authentication or authorisation check.
Impact
Anyone who could guess a URL could view patients' names, contact details, weights and medication orders, potentially exposing the protected health information of up to 250,000 customers; the author could not confirm whether the underlying architecture was fixed or only their own record was removed.
What the attacker needed
No account needed; Know or guess a sequential URL
The fix
The company should have required authentication and authorisation checks before displaying any patient page, and replaced sequential identifiers with non-guessable ones; the author reports that their specific URL stopped working but could not confirm a full fix.
How it was found
- Receive a text message containing a link to a personal approval page.
- Open the link and see that no login or verification is required.
- Change the number at the end of the URL to another value.
- View another person's full name, email, phone number, weight and goal weight.
- Change the number again to view a different person's order 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.
A web page that shows private information should check that you are allowed to see it. Here, the only thing protecting each patient's page was a web address ending in a guessable number, so changing that number showed someone else's details. This kind of mistake is called an insecure direct object reference, or IDOR.
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.