Skip to content
Access control Write-up Intermediate

Microsoft SAM File Readability CVE-2021-36934: What You Need to Know

The SAM file and other registry hives on Windows 10 and 11 were readable by all local users, and if a volume shadow copy existed, a non-privileged user could extract password hashes and other secrets. An attacker with a foothold could escalate privileges or achieve remote code execution as SYSTEM.

rapid7.com

Published on rapid7.com

On Monday, July 19, 2021, community security researchers began reporting that the Security Account Manager (SAM) file on Windows 10 and 11 systems was READ-enabled for all local users. The SAM file is used to store sensitive security information, such as hashed user and admin passwords.

Rapid7, on rapid7.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 a permissions change starting with Windows 10 build 1809 gave the BUILTIN\Users group read and execute access to files in the system32\config directory, and shadow copies preserved that access.

Impact

A non-privileged local user could extract password hashes, DPAPI keys, and machine account credentials, enabling privilege escalation and potentially remote code execution as SYSTEM on other machines.

What the attacker needed

Local user account on affected Windows; volume shadow copy exists

The fix

Microsoft released a patch on August 10, 2021, but users must also manually delete all shadow copies of system files to fully mitigate the vulnerability.

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.

Windows stores password hashes and other secrets in files like the SAM database. A mistake in file permissions meant any logged-in user could read these files, and backup copies (shadow copies) made it worse. An attacker who already had a low-level account could steal the hashes and use them to take full control of the machine.

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.

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.