CVE-2021-42278 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
- CVSS: 7.5 (high)
- EPSS: 73.30% chance of exploitation in the next 30 days
- CISA KEV: Known exploited, listed 2022-04-11, used in ransomware
- Published: 2021-11-10
What LogPulse has for it
- Detection rule: Yes, published
- Agent check (vulnerable version): No
- Mitigation: Yes, see below
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
- List every domain controller (Get-ADDomainController -Filter * | Select Name,OperatingSystem).
- 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.
- Check that the update is present on each DC: Get-HotFix, or winver build is from November 2021 or later.
- 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.
- 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.
- 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.