Skip to content
Info disclosure Write-up Beginner

How I Got on a US Government Hall of Fame in 5 Minutes.

A US government subdomain had directory listing enabled, exposing a compiled Oracle Reports file. The author downloaded it and extracted SQL query strings revealing database schema and table names, which could aid further attacks.

medium.com

Published on medium.com

You’d think a government domain would be locked up tighter than a bank vault. Instead, I found a public directory listing that screamed: “Hey hacker, come take a look!”

Devansh Patel, 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 web server was misconfigured to allow directory listing, and sensitive compiled report files were stored in a publicly accessible directory.

Impact

An attacker could learn database schema, table names, and columns, potentially chaining this with other vulnerabilities for remote code execution, though the text only speculates about such chaining.

What the attacker needed

Internet access; knowledge of Google dorks

The fix

The directory listing should be disabled and compiled report files should not be stored in publicly accessible locations.

How it was found

  1. Found a government subdomain with directory listing enabled via Google dorks.
  2. Located a compiled Oracle Reports file in the listing.
  3. Downloaded the file and ran the strings command to extract SQL queries.

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.

Directory listing is a web server setting that shows all files in a folder instead of a normal web page. Here it exposed a compiled report file that contained database queries, giving away internal structure that should have been private.

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.