When a QR Code Became the Starting Point: Discovering Exposed Healthcare Application Resources
The application exposed directory listings that revealed internal ASP.NET application files and endpoints, including patient information, reports, and administrative dashboards. An attacker could use this information to access sensitive data and functionality without proper authorization.
Published on medium.com
A real-world application security assessment involving directory listing, sensitive data exposure, report access, and administrative functionality
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, directory browsing was enabled on the server, and sensitive endpoints lacked proper server-side authorization checks.
Impact
An attacker could access sensitive patient information, reports, and administrative functionality, potentially leading to privacy violations and data exposure.
What the attacker needed
QR code from a diagnostic report; No authentication required
The fix
The application should disable directory browsing, block access to source files, and enforce server-side authorization for all sensitive endpoints.
How it was found
- Scan the QR code on a diagnostic report to access the verification URL.
- Observe that the server returns a directory listing instead of an access-denied response.
- Browse the directory listing to discover ASP.NET application files and endpoints.
- Access patient-related information, reports, and administrative dashboards through the exposed endpoints.
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 directory listing is when a web server shows a list of files in a folder instead of a proper web page. Here, the server revealed many internal files and pages, including ones with patient data and admin tools. This made it easier for someone to find and access sensitive parts of the application that should have been protected.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.