Skip to content
Info disclosure Write-up Beginner

H@cking Hospital For Mass PII Leak

A doctor search API returned the full personal data of every doctor when the doctor parameter was left empty, instead of only matching results. An attacker could retrieve phone numbers, emails, addresses and social media profiles for the hospital's staff in bulk.

medium.com

Published on medium.com

hiyya I am Raunak Gupta, a Security Researcher and Bug Bounty Hunter for fun and profit.

Raunak Gupta Aka B1scuit, 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 backend treated an empty search parameter as 'match everything' and returned the full dataset without any authorisation or result limit.

Impact

The response exposed personal data of the hospital's 5000+ staff, including phone numbers, emails, addresses and social media profiles, to anyone who sent the request.

What the attacker needed

No account needed; proxy to inspect the search request

How it was found

  1. Open the doctor search on the hospital portal with an intercepting proxy running.
  2. Search for a random keyword and inspect the API request that the page sends.
  3. Note the request has two parameters, one of them named doctor.
  4. Remove the value of the doctor parameter and resend the request.
  5. Observe that the response now contains the personal data of all doctors.

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 hospital website had a search box that asked the server for matching doctors. When the search term was left blank, the server did not say 'no results' but instead sent back the records of every doctor in its database. That means anyone could pull the private contact details of thousands of staff members just by sending an empty search.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.