Logs Don’t Lie: How I Read Their Logs and Wrote My Own Access Rules
A publicly accessible logging dashboard exposed sensitive data including valid authentication tokens. An attacker could use these tokens to access admin endpoints, export user data, and escalate their own account to admin.
Free link 🎈
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 logging dashboard lacked authentication and logged sensitive data such as authorization tokens and personal information.
Impact
An attacker could access sensitive user data and escalate privileges to admin, potentially leading to full account takeover.
What the attacker needed
Publicly accessible logging dashboard; Logs contain valid tokens
The fix
The logging dashboard should require authentication, tokens should be masked or scrubbed from logs, and exposed tokens should be rotated.
How it was found
- Found a subdomain during reconnaissance that hosted a logging dashboard.
- Visited the subdomain and saw a public logging dashboard with no authentication.
- Observed that logs contained full API requests and responses, authorization tokens, and personal data.
- Extracted internal endpoints from the logs.
- Used an exposed Bearer token to access an admin endpoint and download a CSV of user data.
- Used an exposed admin token to send a request to the roles endpoint and upgrade an account to admin.
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 logging dashboard is a web page that shows records of what happens on a system. Here it was open to anyone without a password, and those records included secret keys (tokens) that prove who you are. With those keys, someone could pretend to be an administrator and take over the system.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.