Let's Dance in the Cache Destabilizing Hash Table on Microsoft IIS!
The report describes three vulnerabilities in Microsoft IIS: a hash-flooding denial of service, a cache poisoning attack via HTTP parameter pollution, and an authentication bypass due to a copy-paste error in the token cache key comparison. An attacker could make IIS unresponsive, poison cached responses, or reuse another user's token with a random password.
blog.orange.tw
Published on blog.orange.tw
Hi, this is my fifth time speaking at Black Hat USA and DEFCON. You can get the slide copy and video there:
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 a copy-paste error in the key-comparing function of the token cache, where the password comparison was replaced by a second username comparison.
Impact
An attacker could reuse another user's logged-in token with random passwords, but the hash collision probability is only 1/2^32 per attempt, though attempts are unlimited and the success rate can be increased by at least 13%.
What the attacker needed
Basic Authentication enabled on IIS; victim has an active cached token; attacker can send login attempts
The fix
Microsoft fixed everything at July's Patch Tuesday.
How it was found
- Create a testing account and configure Basic Authentication on IIS.
- From the attacker's terminal, send a login attempt with a random password whose hash collides with the cached token's hash.
- The attacker logs in as the user with the random password.
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 report covers three bugs in Microsoft's web server, IIS. One bug lets an attacker crash the server by sending many requests, another lets them trick the server into caching the wrong page, and the third lets them log in as another user without knowing the password. The third bug happens because the code that checks passwords accidentally compares the username twice.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.