Skip to content
Crypto Write-up Advanced

RC4 Is Still Considered Harmful

Windows Kerberos accepted a weak private RC4-MD4 encryption type that reused the same keystream and lacked integrity protection, letting an attacker recover a user's session key. By interposing on traffic, or without interception when pre-authentication was disabled, an attacker could authenticate as the victim.

James Forshaw Follow

Published on googleprojectzero.blogspot.com

I've been spending a lot of time researching Windows authentication implementations, specifically Kerberos. In June 2022 I found an interesting issue number 2310 with the handling of RC4 encryption that allowed you to authenticate as another user if you could either interpose on the Kerberos network traffic to and…

James Forshaw (@tiraniddo), on googleprojectzero.blogspot.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 KDC accepted an insecure private RC4-MD4 encryption type whose keystream is reused across messages and which has no integrity hash, enabling keystream recovery.

Impact

An attacker able to interpose on Kerberos traffic, or targeting a user with pre-authentication disabled, could authenticate as that user; the no-interception variant requires the uncommon disabled-pre-authentication setting.

What the attacker needed

Ability to interpose on Kerberos traffic; or pre-authentication disabled on target; domain-joined Windows environment

The fix

The weak RC4-MD4 encryption type should be rejected by the KDC and clients, and RC4 disabled where possible.

How it was found

  1. Interpose on the client-to-KDC connection and modify the AS-REQ etype field to only offer RC4-MD4.
  2. Return a pre-authentication error listing only RC4-MD4 so the client builds its timestamp with the weak algorithm.
  3. Capture the client's encrypted timestamp and the AS-REP to recover the keystream via known plaintext.
  4. Brute force the final key byte locally using a captured service ticket request.
  5. Use the recovered session key with the user's TGT to make requests as that user.

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.

Kerberos is the login system Windows uses to prove who you are. It can encrypt data with several algorithms, and one old, weak option (RC4-MD4) was still accepted. Because that option reuses the same scrambling pattern and has no tamper check, an attacker who can watch or alter the login traffic can work out the secret key and log in as the victim.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

More by James Forshaw

View all

1 more disclosed report, best first.

More from Microsoft (Windows)

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.