Finding Hidden Files and Folders on IIS using BigQuery
The author describes a technique to discover hidden files and folders on IIS servers by combining IIS shortname scanner with Google BigQuery queries against GitHub's public dataset to guess full names from 8.3 short names. This led to finding a zip file containing application source code and secrets, resulting in a $3000 bounty.
blog.assetnote.io
Published on blog.assetnote.io
I recently made a video on how to find hidden files and folders on IIS through the use of IIS Shortname Scanner.
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 IIS server was misconfigured to allow short-name (8.3) enumeration, and sensitive files were left in the web root.
Impact
An attacker could discover and download sensitive files, such as source code archives containing secrets, leading to further compromise.
What the attacker needed
IIS server with short-name enumeration enabled; Sensitive files in web root; Access to BigQuery (free tier)
How it was found
- Run IIS Shortname Scanner against the target to obtain short names of files and folders.
- Use BigQuery to query the GitHub dataset for file paths matching the short name pattern.
- Review the query results to identify the full file or folder name.
- Access the discovered file (e.g., a zip) to obtain sensitive information.
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.
This is a write-up about a method to find hidden files on web servers running Microsoft's IIS. The author uses a tool that reveals shortened versions of file names (like 'SITEBA~1.ZIP') and then searches a huge public database of code to guess the full name (like 'sitebase.zip'). Finding such files can expose sensitive information.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.