Skip to content
Access control Write-up Intermediate

IIS5.1 Directory Authentication Bypass by using “:$I30:$Index_Allocation”

IIS 5.1 checks only the directory name when deciding whether authentication is required, so appending an NTFS alternate data stream suffix to a protected folder name lets a request reach files inside it without logging in. An attacker could therefore read or run files in a password-protected directory.

soroush.me

Published on soroush.me

Download this advisory from: https://soroush.me/downloadable/IIS5.1AuthenticationBypass.pdf or: http://0me.me/demo/IIS/IIS5.1AuthenticationBypass.pdf

The author, on soroush.me

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 server matched the requested path against the protected directory name before normalising the NTFS alternate data stream suffix, so the access check ran on a name that did not match the protected folder.

Impact

All IIS authentication methods on the affected directory could be bypassed, allowing access to protected files; the technique is limited to IIS 5.1 because later versions reject the colon character.

What the attacker needed

IIS 5.1 server; A protected directory on an NTFS partition; No credentials needed

The fix

The text does not describe a fix, but later IIS versions avoid the issue by rejecting the colon character in the URL before the query string.

How it was found

  1. Identify a folder that requires authentication and contains a file such as an ASP page.
  2. Request the file using the folder name with the alternate data stream suffix appended, instead of the plain folder name.
  3. Observe that the file is served without any authentication prompt.

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.

Some web servers protect a folder by asking for a password before showing anything inside it. This report shows that an old Microsoft web server, IIS 5.1, only looked at the folder name in the address and ignored extra characters added after it. By adding those characters, a visitor could reach files in the protected folder without ever entering the password.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.