Skip to content
Access control Advisory Advanced CVE-2018-0902

CNG Security Feature Bypass Vulnerability (CVE-2018-0902)

The CNG kernel-mode driver failed to properly validate and enforce impersonation levels. An attacker who convinces a user to run a crafted application could gain access to information beyond the local user's access level.

Matt Nelson Follow

Originally disclosed on Microsoft

High 5.3 View original

Description

A security feature bypass vulnerability exists in the Cryptography Next Generation (CNG) kernel-mode driver (cng.sys) when it fails to properly validate and enforce impersonation levels. An attacker could exploit this vulnerability by convincing a user to run a specially crafted application that is designed to cause CNG to improperly validate impersonation levels, potentially allowing the attacker to gain access to information beyond the access level of the local user. The security update addresses the vulnerability by correcting how the kernel-mode driver validates and enforces impersonation levels.

Microsoft Windows

Microsoft Windows

The original report as published on the Microsoft Security Response Center, by Matt Nelson ( @enigma0x3 ) of SpecterOps and James Forshaw of Google Project Zero. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the kernel-mode driver did not correctly validate and enforce impersonation levels when handling requests.

Impact

An attacker could potentially gain access to information beyond the access level of the local user, but only if the user is convinced to run a crafted application.

What the attacker needed

Victim runs a crafted application

The fix

It was fixed by correcting how the kernel-mode driver validates and enforces impersonation levels.

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 report has not been written yet. The Original tab links to the source.

Windows has a component that handles encryption tasks, and it is supposed to check how much trust a program has before letting it read protected data. Here it did not check properly, so a malicious program could read information it should not be allowed to see. The attacker still needs the user to run their program first.

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 from Microsoft

View all

The newest disclosed reports for this program.

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.