Weakness · Medium

CWE-782: Exposed IOCTL with Insufficient Access Control

What it is

The product implements an IOCTL with functionality that should be restricted, but it does not properly enforce access control for the IOCTL.

1 exploited in the wildMITRE CWE 4.19.1

Severity (our rating)
Medium
Likelihood of exploit
Not rated by MITRE
Introduced during
Architecture and Design, Implementation
Exploited in the wild
1 known exploited CVE

In more detail

When an IOCTL contains privileged functionality and is exposed unnecessarily, attackers may be able to access this functionality by invoking the IOCTL. Even if the functionality is benign, if the programmer has assumed that the IOCTL would only be accessed by a trusted process, there may be little or no validation of the incoming data, exposing weaknesses that would never be reachable if the attacker cannot call the IOCTL directly. The implementations of IOCTLs will differ between operating system types and versions, so the methods of attack and prevention may vary widely.

What an attacker can do

  • Varies by Context (Integrity, Availability, Confidentiality)

How to prevent it

Architecture and Design

  • In Windows environments, use proper access control for the associated device or device namespace. See References.

CWE-782 on MITRE's CWE site

Exploited in the wild: 1 CVE

Vulnerabilities caused by CWE-782 that attackers have used, from CISA's Known Exploited Vulnerabilities catalog, newest first.

All known exploited vulnerabilities

H2 Security

Found it in your code?

We review where it appears, fix it with your team, and check it was not already used against you.

Talk to our team

T Academy

Stop writing it in the first place

Learn to build software and systems without weaknesses like this one, with practice on real hosts in your browser, every objective checked on the machine.

Start free

Source: MITRE Common Weakness Enumeration, CWE version 4.19.1. CWE is a trademark of The MITRE Corporation.