How I Helped Secure Millions of Users’ Medical Reports — Bug Bounty!
Medical report URLs were accessible without authentication, and after a phone-number check was added, the last four digits were shown and no OTP or rate limiting was enforced, so an attacker could brute-force the remaining digits to view other patients' reports.
Published on kumarmohank889.medium.com
Hello all, The target is an India-based company with numerous outlets across the country. They have a bug bounty program and so I began by conducting subdomain recon and proceeded to initiate my analysis.
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 missing authentication on report URLs, and the replacement phone-number check lacked OTP verification, rate limiting and CAPTCHA while disclosing the last four digits.
Impact
An attacker could view other patients' medical reports, and the second bypass succeeded because no OTP, rate limiting or CAPTCHA was in place.
What the attacker needed
Knowledge of a report URL; last four digits of the phone number shown; no OTP required; no rate limiting or CAPTCHA
How it was found
- Find report URLs through subdomain recon and the Wayback Machine.
- Visit a report URL and see the medical report without authentication.
- After the fix, visit a report URL and see a prompt for the phone number with the last four digits shown.
- Obtain a personal report link to confirm no OTP is required.
- Brute-force the remaining six digits using Burp Intruder, reducing the space by knowing Indian numbers start with 6–9.
- Gain access to patients' sensitive reports.
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 website was giving out private medical reports to anyone who had the link, with no login needed. The company then added a check asking for a phone number, but it showed the last four digits and let someone keep guessing the rest without any limit, so the reports were still exposed.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.