“Juicy 404s”: How Broken Pages Spilled Secrets and Gave Me Admin Access
The article describes how verbose 404 error pages can leak stack traces, file paths, and hidden API endpoints. In one real-world example, an HR SaaS platform exposed an admin password reset endpoint that did not require authentication, allowing an attacker to change any user's password.
systemweakness.com
Published on systemweakness.com
While the crowd was scanning for 200 OK, I was dumpster diving in the 404 Not Found pile.
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 application was running in debug mode or had verbose error handling enabled, which caused internal details to be exposed in 404 responses.
Impact
An attacker could change the password of every user on the platform, leading to account takeover.
What the attacker needed
No authentication required; Target uses verbose error messages
The fix
The article does not state whether the issue was fixed, but it recommends setting production mode, using custom generic 404 handlers, and stripping stack traces from API errors.
How it was found
- Fuzz the /api/admin/ path to find hidden endpoints.
- Observe a 404 response that contains a stack trace revealing an endpoint and a missing parameter.
- Fuzz user IDs on the discovered endpoint.
- Change passwords for all users without authentication.
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.
When a web server cannot find a page, it normally returns a simple '404 Not Found' message. However, some servers accidentally include detailed error information, such as the names of internal files or the exact code that failed. This article explains how attackers can use those detailed error messages to discover hidden parts of a website and sometimes take over accounts.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.