CWE-69 — Improper Handling of Windows ::DATA Alternate Data Stream
CWE-69: Improper Handling of Windows ::DATA Alternate Data Stream
MITRE CWE weakness
| Kind | Weakness |
| Abstraction | Variant |
| Status | Incomplete |
| Likelihood of exploit | — |
Description
The product does not properly prevent access to, or detect usage of, alternate data streams (ADS).
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.
Common consequences
- Access Control, Non-Repudiation, Other: Bypass Protection Mechanism, Hide Activities, Other
Mitigations
Implementation — Ensure that the source code correctly parses the filename to read or write to the correct stream.
References
- CWE page: https://cwe.mitre.org/data/definitions/69.html
- CWE list: https://cwe.mitre.org/data/index.html