Skip to content
Info disclosure Write-up Beginner

Discovering the Vulnerabilities

An ASP.NET debugging page (Trace.axd) was publicly accessible and exposed sensitive request data including social security numbers, usernames, email addresses, plaintext passwords, session tokens, and CSRF tokens. Separately, a parameter on a page was vulnerable to SQL injection, which the author confirmed but did not exploit further.

Aaron Esau Follow

Published on aaronesau.com

U.S. Department of Defense - Info Disclosure and SQLi Writeup

Aaron Esau (@arinerron), on aaronesau.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 ASP.NET trace debugging feature was manually enabled in production, and a parameter was not properly sanitised before being used in a database query.

Impact

The trace page exposed sensitive personal and authentication data, and the SQL injection could have allowed further database access, though the author did not attempt remote code execution.

What the attacker needed

A free account; access to the /nrotc path

The fix

The trace feature should be disabled in production, and the SQL injection should be fixed by using parameterised queries.

How it was found

  1. Perform an unauthenticated web path scan on the /nrotc subdirectory and find Trace.axd returning a redirect to login.
  2. Log in with test credentials and visit /nrotc/Trace.axd, which returns HTTP 200 and shows an Application Trace page.
  3. Review previous HTTP requests in the trace to see exposed sensitive data.
  4. Use the debugger to map the application and find a page accessible with low privileges.
  5. Replay a POST request to that page with your own session token and modify parameters to test for SQL injection and XSS.
  6. Observe that one parameter is vulnerable to SQL injection.

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 debugging feature meant for developers was left switched on in a live website, so anyone could open it and see private information from other users' requests. Separately, a form field on another page was not properly checked, allowing an attacker to insert database commands. The author found both while testing a Navy scholarship application.

What is Info disclosure?

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

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

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.