An Exposed Log File, Live Admin Sessions and 50,000 Records
Production log files were publicly downloadable without authentication and contained session tokens and record IDs. Replaying a leaked staff session token against the data API returned full personal data for over 50,000 records, even though the session validation and keepalive endpoints rejected the same token.
cryptocat.me
Published on cryptocat.me
I found this while doing content discovery on a bug bounty scope with dozens of hosts. They ran similar web forms behind a shared admin panel. /forms/<APP>/logs/ returned 403, so I tried a few filenames inside it.
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 data API endpoints did not validate session validity or expiry, and production logs containing session tokens were stored in a publicly accessible web directory.
Impact
An attacker could read full names, dates of birth, passport numbers, other government reference numbers, email addresses and phone numbers for over 50,000 records; file downloads and write operations were not demonstrated because they required a separate key or were not tested.
What the attacker needed
No authentication needed to download logs; logs contain valid session tokens; API accepts leaked tokens
The fix
The logs should be moved outside the web root, credentials removed from future log entries, exposed tokens revoked, and data endpoints should check session validity and expiry on every request; the report states the fix was confirmed on retest.
How it was found
- Discover the logs directory and try filenames following the date pattern.
- Download log files for recent dates without authentication.
- Extract session tokens and record IDs from stored procedure calls in the logs.
- Send a request to the data API using the leaked session ID and token.
- Observe that the API returns full personal data despite the session validation endpoint rejecting the token.
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 session token is like a temporary password that keeps you logged in. The website was writing these tokens into log files that anyone could download, and the data API accepted them even after the normal login check said they were invalid. This let someone read sensitive personal information about many people.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.