Test IIS for shortname enumeration

Information disclosureDiscovery

Written with a model's help from “IIS Shortname Enumeration in the Big ‘26” by Kyle Griffin on Black Lantern Security. Read the writeup before relying on it.

IIS servers may be vulnerable to shortname enumeration, which can reveal the first six characters of file or directory names. This can be used to discover hidden directories or files. To test for this vulnerability, send a request to the server with a shortname, such as MICROS~1.TXT, and check the response. If the server responds differently to valid and invalid shortnames, it may be vulnerable. You can use this information to inform further testing, such as using a wordlist scanning tool to find the actual directory or file name. For example, if you discover a shortname ZZZXX_~1, you could use a tool like ffuf to scan for zzzxx_FUZZ. This technique can be particularly useful for finding hidden directories or files that would not be discovered through traditional fuzzing or directory brute forcing.

Follow #iis or #shortname-enumeration for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.

Comments

No comments yet.