Skip to content
Info disclosure Write-up Beginner

Exposure Protocol: Information Disclosure in the Wild [Part 1]

A product endpoint accepted a string where an integer was expected and returned a full Java stack trace that disclosed the Apache Struts version. An attacker could use that version to look up known vulnerabilities and plan further attacks.

medium.com

Published on medium.com

Welcome to the first installment of Exposure Protocol — a technical bug bounty series that digs deep into the art of extracting sensitive intel through seemingly harmless leaks. From verbose errors to hidden secrets in source files, this series explores how whispers in web traffic can scream out loud to the trained…

Aditya Bhatt, on medium.com

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 did not handle type-conversion errors gracefully and returned the raw exception stack trace to the user.

Impact

The disclosed framework version could let an attacker map the software to known remote code execution flaws and plan further exploitation.

What the attacker needed

Access to the product endpoint; ability to send a modified request

The fix

The application should catch exceptions, log them server-side, and return a generic error page to users.

How it was found

  1. Open a product page and capture the request.
  2. Send the product request to Repeater.
  3. Observe the normal response.
  4. Replace the numeric productId value with a string.
  5. Read the Java stack trace and note the Apache Struts version.
  6. Submit the version in the lab.

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 web server sometimes shows a detailed error page when it receives unexpected input. This page can reveal the software name and version, which helps an attacker find known bugs for that exact version. Here, sending text instead of a number made the server reveal it was running Apache Struts.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.