Back to Labs
Weakness (CWE)

CWE-67

Improper Handling of Windows Device Names

About

The product constructs pathnames from user input, but it does not handle or incorrectly handles a pathname containing a Windows device name such as AUX or CON. This typically leads to denial of service or an information exposure when the application attempts to process the pathname as a regular file.

Not properly handling virtual filenames (e.g. AUX, CON, PRN, COM1, LPT1) can result in different types of vulnerabilities. In some cases an attacker can request a device via injection of a virtual filename in a URL, which may cause an error that leads to a denial of service or an error page that reveals sensitive information. A product that allows device names to bypass filtering runs the risk of an attacker injecting malicious code in a file with the name of a device.

Common consequences

  • Availability, Confidentiality, Other → DoS: Crash, Exit, or Restart, Read Application Data, Other

Mitigations

  • Implementation: Be familiar with the device names in the operating system where your system is deployed. Check input for these device names.

CVEs with this weakness

Frequently asked questions

What is CWE-67?

The product constructs pathnames from user input, but it does not handle or incorrectly handles a pathname containing a Windows device name such as AUX or CON. This typically leads to denial of service or an information exposure when the application attempts to process the pathname as a regular file. Not properly handling virtual filenames (e.g.

How likely is CWE-67 to be exploited?

MITRE rates the likelihood of exploit for CWE-67 as high.

Which platforms does CWE-67 affect?

CWE-67 has been observed on: Windows.

How many CVEs does Rainforest track for CWE-67?

Rainforest Labs currently tracks 1 published CVEs mapped to CWE-67. They are listed on this page.

Empower Your Security Strategy with Rainforest

Discover vulnerabilities early, prioritize critical threats, and protect what truly matters. Rainforest streamlines your security operations, saving you time and reducing costs, so you can focus on what drives your business forward.