Monday, July 26, 2021

Windows Elevation of Privilege Vulnerability


Overview

An elevation of privilege vulnerability exists because of overly permissive Access Control Lists (ACLs) on multiple system files, including the Security Accounts Manager (SAM) database. An attacker who successfully exploited this vulnerability could run arbitrary code with SYSTEM privileges. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights.

Test for Vulnerability

To check if your Windows 10 or Windows 11 installation is affected, you can open a command prompt and enter the following command:
icacls c:\windows\system32\config\sam
If the output displays the following permission, your Windows installation is affected by the vulnerability.
BUILTIN\Users:(I)(RX)

Workaround

Restrict access to the contents of %windir%\system32\config

Windows PowerShell (Run as administrator):

icacls $env:windir\system32\config\*.* /inheritance:e

How can I delete Volume Shadow Copies?

To delete all shadow copies of the system drive, run the following command:

 vssadmin delete shadows /for=%systemdrive% /Quiet

To confirm that all shadow copies were deleted, you may run this command again: 

 vssadmin list shadows /for=%systemdrive%

If there are no shadow copies on your system drive, you will receive output that says:

vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool
(C) Copyright 2001-2013 Microsoft Corp.
No items found that satisfy the query.

Create a Restore Point
Since all restore points have been erased, you may wish to create a new restore point after you have fixed the vulnerability.

Attributions

3 comments:

  1. The article explains the Windows Elevation of Privilege vulnerability caused by overly permissive Access Control Lists (ACLs) on critical system files such as the Security Accounts Manager (SAM) database. It provides a clear overview of how attackers can exploit the vulnerability to gain SYSTEM-level privileges, along with practical guidance for testing affected systems, applying the recommended workaround, removing vulnerable Volume Shadow Copies, and creating new restore points after remediation. These step-by-step instructions help administrators strengthen Windows security and reduce the risk of privilege escalation attacks.

    Protecting operating systems from privilege escalation vulnerabilities requires a strong understanding of access control mechanisms, system permissions, and secure configuration practices. Regular vulnerability assessments, permission auditing, and timely remediation are essential for safeguarding enterprise environments against unauthorized access and system compromise. Students and professionals interested in strengthening their expertise in operating system and infrastructure security can explore Information Security Projects for Final Year, which provide practical exposure to secure system administration, access control, and threat mitigation techniques.

    ReplyDelete
  2. Modern cybersecurity strategies combine vulnerability management, endpoint protection, security monitoring, and incident response to defend critical infrastructure from evolving threats. Developing practical knowledge of security assessment, privilege management, and defensive technologies enables professionals to build resilient systems capable of resisting sophisticated attacks. Those looking to expand their implementation skills can further explore Cyber Security Projects for Final Year Students, featuring hands-on projects covering vulnerability analysis, secure system design, and cyber defense methodologies.

    Readers interested in exploring additional security implementation concepts and modern defensive techniques can also refer to Cybersecurity Projects for Final Year Students, which presents practical project ideas focused on information security, vulnerability management, and enterprise cyber defense.

    ReplyDelete