Skip to content
Info disclosure Write-up Intermediate

Tilde Games: Exploiting 8.3 Shortnames on IIS Servers

IIS servers with 8.3 short-name generation enabled allow attackers to enumerate partial file and directory names via tilde requests, revealing hidden paths. The author used this to find a CAB archive, download it, and extract a custom DLL containing hardcoded internal IP addresses and API keys.

infosecwriteups.com

Published on infosecwriteups.com

Before diving into the vulnerability, it’s important to understand 8.3 filenames (also known as short names or SFNs). In the MS-DOS era, filenames followed a strict format: 8 characters for the name and 3 for the extension, like secret~1.txt or admin~1.aspx.

Sachin Sharma, on infosecwriteups.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 IIS server had 8.3 short-name generation enabled, so requests for tilde-style names returned different responses that revealed existing files.

Impact

The exposed DLL contained hardcoded internal IP addresses and API keys, which could allow an attacker to access internal systems or services.

What the attacker needed

IIS server with 8.3 short names enabled; No authentication required

How it was found

  1. Request the index page and note the 403 Forbidden response.
  2. Request a clearly non-existent file such as /nonexist and confirm a 404 Not Found response.
  3. Request a tilde-style path like /ASPNET~1 and observe that the error body or structure changes.
  4. Use the IIS ShortName Scanner Burp extension or shortscan to automate detection and enumeration.
  5. Search GitHub for the discovered short path to find related source code or artifacts.
  6. Download the CAB file with wget or curl, extract it with cabextract, and analyse the DLLs with dotPeek or dnSpy.

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.

Windows can give files a short nickname like 'secret~1.txt' for old programs. If a web server on IIS is set up to accept these nicknames, an attacker can guess them to learn that hidden files exist. The author used this to find a downloadable archive and then pulled secrets out of a file inside it.

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.