Mass IDOR + Race Condition: Sequential Tokens Unlock Millions of
A guest-access feature used short, low-entropy tokens that could be enumerated to reveal patient first names without authorisation. A race condition in the date-of-birth verification allowed bypassing the attempt limit, enabling brute force and access to sensitive doctor-patient messages.
Published on medium.com
As a bug bounty hunter, I’ve chased my fair share of vulnerabilities from subtle misconfigurations to complex logic flaws. But discoveries involving healthcare always hit differently.
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 system used short, low-entropy tokens for guest access and failed to enforce authorisation checks, combined with a non-atomic rate limit on verification attempts.
Impact
An attacker could enumerate patient identities at scale and brute-force verification to access sensitive doctor-patient messages and appointment data, potentially collecting thousands of records.
What the attacker needed
A valid guest token (e.g., from VirusTotal); Ability to send parallel requests; No authentication required
The fix
The platform should use high-entropy tokens, avoid exposing PII before verification, and implement atomic rate limiting.
How it was found
- Find a valid guest token (e.g., via VirusTotal).
- Change one character in the token to get another patient's first name.
- Try simple numeric tokens like '1234' to confirm many valid tokens exist.
- Send multiple parallel POST requests (30+) to bypass the 19-attempt limit.
- Brute-force the date of birth to access the full message.
- Repeat on a second endpoint that requires only the first three letters of the last name.
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 website gave each patient a short, guessable link (like a password made of only a few characters). Because the links were so simple, an attacker could try many combinations quickly and see other patients' first names. Then, a check that was supposed to stop repeated guesses could be tricked by sending many requests at the same time, letting the attacker guess the correct date of birth and read private medical messages.
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.