CVE-2021-42287 in microsoft windows server 2004

LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.

What the vulnerability is

Active Directory Domain Services Elevation of Privilege Vulnerability

Affected software: microsoft windows server 2004, microsoft windows server 2008, microsoft windows server 2012, microsoft windows server 2016, microsoft windows server 2019, microsoft windows server 2022, microsoft windows server 20h2

Scores

What LogPulse has for it

How to mitigate it

Install the November 2021 AD update against noPac (CVE-2021-42278, CVE-2021-42287)

Patch or upgrade. The November 2021 (or later) cumulative updates on domain controllers block sAMAccountName spoofing (KB5008102) and add the requestor to the Kerberos PAC (KB5008380), which stops a domain user from becoming domain admin through noPac.

Applies to: Active Directory domain controllers on Windows Server 2008 to 2022 without the November 2021 security update

  1. List every domain controller (Get-ADDomainController -Filter * | Select Name,OperatingSystem).
  2. Install the November 9, 2021 security update or any later cumulative update on every domain controller (Windows Update, WSUS or your patch tool), and reboot each DC.
  3. Check that the update is present on each DC: Get-HotFix, or winver build is from November 2021 or later.
  4. Make sure PAC enforcement is active: since the July 12, 2022 update it is always enforced; remove any PacRequestorEnforcement value set to 0 or 1 under HKLM\System\CurrentControlSet\Services\Kdc.
  5. Set ms-DS-MachineAccountQuota on the domain to 0 (ADSI Edit, the domain object) so normal users cannot create computer accounts, the first step of the attack.
  6. Review the System log on each DC for Directory-Services-SAM events 16990 and 16991 and Kerberos-Key-Distribution-Center events 35 to 38, which show blocked or suspicious attempts.

Sources:

Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.

We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.

Start free with LogPulse