Skip to content
Account takeover Write-up Advanced

Affected Versions

Domain-joined Windows workstations allow network selection from the lock screen, enabling an attacker with physical access to force the device to connect to a rogue access point and capture an MSCHAPv2 challenge response hash for the computer account. This hash can be cracked to recover the computer account's NTLM hash, which can then be used to forge Kerberos silver tickets to impersonate privileged users, bypass BitLocker full disk encryption, and elevate privileges to local administrator.

shenaniganslabs.io

Published on shenaniganslabs.io

By default, domain joined Windows workstations allow access to the network selection UI from the lock screen.

Matthew Johnson, on shenaniganslabs.io

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 lock screen allows network selection, and Windows uses MSCHAPv2 for computer authentication, which exposes a crackable challenge response hash.

Impact

An attacker with physical access could bypass BitLocker full disk encryption and gain unrestricted access to the file system, and could elevate privileges to local administrator on the device.

What the attacker needed

Physical access to a locked device; device has WiFi capabilities; device is domain-joined; attacker can set up a rogue access point

The fix

The issue was fixed in the April 2021 security update, and as a hardening measure, the network selection UI from the lock screen can be disabled via Group Policy or registry.

How it was found

  1. Create a rogue access point that supports PEAP with MSCHAPv2 as the inner authentication method.
  2. From the lock screen, force the laptop to connect to the rogue access point, ignoring any certificate error.
  3. Capture the MSCHAPv2 challenge response hash for the computer account.
  4. Submit the captured hash to crack.sh to recover the NTLM hash of the computer account.
  5. Obtain the domain SID (e.g., via whoami /all as a domain user, or by leaking it through a rogue network).
  6. Forge a Kerberos silver ticket for the CIFS service using the NTLM hash and domain SID, then use it to access the file system or execute commands as SYSTEM.

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.

When a Windows computer is locked, it still shows a list of available Wi-Fi networks. An attacker can set up a fake Wi-Fi network with the same name as a trusted one, and trick the computer into connecting to it. The computer then sends a special code (a hash) that the attacker can use to break into the computer, even if the disk is encrypted.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.