Improper Handling of Apple HFS+ Alternate Data Stream Path |
Weakness ID: 72 (Weakness Variant) | Status: Incomplete |
Description Summary
Extended Description
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.
Example 1
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.
Reference | Description |
---|---|
CVE-2004-1084 |
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: - Resource fork: file/..namedfork/rsrc, file/rsrc (deprecated), xattr:com.apple.ResourceFork - Data fork: file/..namedfork/data (only versions prior to Mac OS X v10.5) Additionally, on filesystems that lack native support for multiple streams, the resource fork and file metadata may be stored in a file with "._" prepended to the name. Forks can also be accessed through non-portable APIs. Forks inherit the file system access controls of the file they belong to. Programs need to control access to these paths, if the processing of a file system object is dependent on the structure of its path. |
Nature | Type | ID | Name | View(s) this relationship pertains to |
---|---|---|---|---|
ChildOf | Weakness Base | 66 | Improper Handling of File Names that Identify Virtual Resources | Development Concepts (primary)699 Research Concepts (primary)1000 |
ChildOf | Category | 70 | Mac Virtual File Problems | Resource-specific Weaknesses (primary)631 Development Concepts699 |
This and similar problems exist because the same resource can have multiple identifiers that dictate which behavior can be performed on the resource. |
Mapped Taxonomy Name | Node ID | Fit | Mapped Node Name |
---|---|---|---|
PLOVER | Apple HFS+ alternate data stream |
Apple Inc.. <http://docs.info.apple.com/article.html?artnum=300422>. |
Submissions | ||||
---|---|---|---|---|
Submission Date | Submitter | Organization | Source | |
PLOVER | Externally Mined | |||
Modifications | ||||
Modification Date | Modifier | Organization | Source | |
2008-07-01 | Eric Dalci | Cigital | External | |
updated Time of Introduction | ||||
2008-09-08 | CWE Content Team | MITRE | Internal | |
updated Relationships, Other Notes, Taxonomy Mappings | ||||
2008-11-05 | David Remahl | Apple | External | |
clarified description, provided background details, and added demonstrative example | ||||
2008-11-24 | CWE Content Team | MITRE | Internal | |
updated Applicable Platforms, Background Details, Demonstrative Examples, Description, Name, References | ||||
2009-05-27 | CWE Content Team | MITRE | Internal | |
updated Name | ||||
2009-10-29 | CWE Content Team | MITRE | Internal | |
updated Other Notes, Theoretical Notes | ||||
Previous Entry Names | ||||
Change Date | Previous Entry Name | |||
2008-11-24 | Apple HFS+ Alternate Data Stream | |||
2009-05-27 | Failure to Handle Apple HFS+ Alternate Data Stream Path | |||