Information Disclosure in Error Messages — A New Series Begins
A product page parameter expected a number but accepted text, causing the application to return a verbose stack trace that disclosed the framework name and exact version. An attacker could use that version information to look up known exploits for the outdated software.
Published on medium.com
If you followed the authentication series — welcome back. If this is your first time here, glad you found me.
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 verbose error reporting was left enabled in production, so a malformed request caused a stack trace to be shown to the user.
Impact
The disclosed framework version could allow an attacker to search for and use known exploits against that specific version, potentially leading to remote code execution.
What the attacker needed
None
The fix
The application should display a generic error message to users and log the detailed crash information only on the server.
How it was found
- Open a product page and note the productId parameter in the URL.
- Send the request to a tool that allows editing and resending it.
- Change the productId value from a number to text.
- Observe the verbose error page containing a stack trace.
- Read the stack trace to find the framework name and version.
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 website sometimes shows detailed error messages when it receives unexpected input. These messages can reveal what software the site runs and which version, which helps an attacker find known weaknesses. The fix is to show a generic error page and keep the details in private logs.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.