Skip to content
Access control Write-up Advanced

**Use ‘noPac’ (CVE 2021–42278 / CVE 2021–42287) when you don’t know the exploited user’s cleartext password**

The noPac exploit (CVE-2021-42278 and CVE-2021-42287) allows a regular domain user to impersonate a domain administrator, but it requires the cleartext password of the exploited user. The article shows two methods to obtain or set a known cleartext password: brute-forcing the netNTLMv2 hash or dumping and changing the NTLM hash via Mimikatz.

Nol White Hat Follow

Published on systemweakness.com

This exploit consists of a combination of two different vulnerabilities, CVE-2021–42287 and CVE-2021–42278.

Nol White Hat, on systemweakness.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 combination of two flaws: users can rename computer accounts to omit the trailing '$' (CVE-2021-42278), and the Kerberos ticket-granting service can be confused by renaming a computer account to a domain controller's name and back (CVE-2021-42287), allowing impersonation of a domain administrator.

Impact

An attacker with a valid domain user account and its cleartext password could impersonate a domain administrator and gain full control of the domain controller.

What the attacker needed

Valid domain user account; cleartext password of that user; network access to domain controller; for method 2: local admin rights

The fix

The vulnerabilities should be fixed by applying Microsoft's security updates for CVE-2021-42278 and CVE-2021-42287; the article also recommends limiting local administrator users, enabling Credential Guard, and using update monitoring.

How it was found

  1. Start an SMB server on the attacker machine to capture the netNTLMv2 hash.
  2. On the compromised Windows machine, create a network mapping to the attacker's SMB share.
  3. Crack the captured netNTLMv2 hash using hashcat and a wordlist.
  4. Synchronise the attacker machine's clock with the domain controller.
  5. Execute the noPac exploit with the cracked cleartext password to obtain a domain administrator ticket.
  6. Use the ticket with psexec to get an interactive shell on the domain controller.

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.

Active Directory is a system that manages users and computers in a Windows network. The noPac exploit lets a normal user trick the system into giving them administrator rights, but it needs the user's actual password, not just a scrambled version (hash). This article explains two ways to get that password: by capturing and cracking it, or by changing it using a tool called Mimikatz.

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.

More by Nol White Hat

View all

8 more disclosed reports, best first.

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.