CWE-72: Improper Handling of Apple HFS+ Alternate Data Stream Path
Weakness ID: 72
The software does not properly handle special paths that may identify the data or resource fork of a file on the HFS+ file system.
If the software chooses actions to take based on the file name, then if an attacker provides the data or resource fork, the software may take unexpected actions. Further, if the software intends to restrict access to a file, then an attacker might still be able to bypass intended access restrictions by requesting the data or resource fork for that file.
Time of Introduction
Architecture and Design
Technical Impact: Read files or
directories; Modify files or
A web server that interprets FILE.cgi as processing instructions
could disclose the source code for FILE.cgi by requesting
FILE.cgi/..namedfork/data. This might occur because the web server invokes
the default handler which may return the contents of the file.
Server allows remote attackers to read files and
resource fork content via HTTP requests to certain special file names
related to multiple data streams in HFS+.
The Apple HFS+ file system permits files to have multiple data input
streams, accessible through special paths. The Mac OS X operating system
provides a way to access the different data input streams through special
paths and as an extended attribute: