Weakness · High

CWE-69: Improper Handling of Windows ::DATA Alternate Data Stream

What it is

The product does not properly prevent access to, or detect usage of, alternate data streams (ADS).

MITRE CWE 4.19.1

Severity (our rating)
High
Likelihood of exploit
Not rated by MITRE
Introduced during
Implementation
Exploited in the wild
No CVE in CISA's catalog

In more detail

An attacker can use an ADS to hide information about a file (e.g. size, the name of the process) from a system or file browser tools such as Windows Explorer and 'dir' at the command line utility. Alternately, the attacker might be able to bypass intended access restrictions for the associated data fork.

What an attacker can do

  • Bypass Protection Mechanism (Access Control, Non-Repudiation, Other)
  • Hide Activities (Access Control, Non-Repudiation, Other)
  • Other (Access Control, Non-Repudiation, Other)

How to prevent it

Implementation

  • Ensure that the source code correctly parses the filename to read or write to the correct stream.

How to find it

  • Automated Analysis. Software tools are capable of finding ADSs on your system.

CWE-69 on MITRE's CWE site

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.