IIS Short File Name Disclosure is back! Is your server vulnerable?
Microsoft IIS generates 8.3 short file names by default, and the server returns a different error message when a short name exists. An attacker can use this difference to discover hidden file and folder names on the server.
soroush.me
Published on soroush.me
After a few years of finding IIS Short File Name Disclosure vulnerability/feature, I discovered a new method that can work on the latest versions of IIS!
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 IIS keeps generating 8.3 short file names by default and its error responses differ depending on whether a matching short name exists, which leaks the existence of files and folders.
Impact
An attacker could learn the names of files and folders that are otherwise hidden, which may help them find sensitive resources; the author treats this as a low risk issue.
What the attacker needed
Network access to the IIS server; 8.3 short names enabled (default)
How it was found
- Send an OPTIONS request instead of a GET request to the server.
- Compare the error message returned to see whether a short file name exists.
- Use the scanner with any valid headers and cookies the server needs.
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.
Old Windows systems give every file a second, shortened name so it fits an old naming limit. IIS still creates these short names and answers requests in a slightly different way when one exists. By comparing the answers, someone can work out the real names of files and folders that are not meant to be visible.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.