The Day I Found a Public Laravel Log Viewer — And Why It Could Have Exposed an Entire Hospital…
A Laravel log viewer was publicly accessible without authentication on a production API, exposing production logs. An attacker could read internal file paths, stack traces, and potentially environment variables or session tokens, though no patient data was observed.
Published on medium.com
Bug bounty hunting isn’t always about breaking into systems or crafting clever payloads. Sometimes, it’s about discovering something sitting in plain sight — quietly leaking more information than any attacker should ever see.
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 Laravel log viewer package was left enabled and publicly reachable in production without authentication or IP restrictions.
Impact
An attacker could read production logs that may reveal internal paths, stack traces, environment variables, session tokens, or sensitive user data, aiding further attacks; the author notes no patient data was visible during testing.
What the attacker needed
None
The fix
The log viewer should be disabled in production, protected by authentication or IP whitelisting, and logs should be sanitised of secrets and personal data.
How it was found
- Enumerate API endpoints under the hospital's disclosure programme.
- Notice a log-viewer URL on the production API host.
- Open the URL without authentication and see production logs.
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 log viewer is a web page that shows error and activity logs from an application. If anyone can open it without logging in, they can read internal details like file paths and error messages that help them plan further attacks. Here, the page was left open on a hospital's production system.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.