CWE
Home > CWE List > CWE- Individual Dictionary Definition (1.1)  
Search by ID:

CWE-57: Path Equivalence: 'fakedir/../realdir/filename'

Individual Definition in a New Window
Path Equivalence: 'fakedir/../realdir/filename'
Status: Incomplete
Weakness ID: 57 (Weakness Variant)
Description
Summary

The software contains protection mechanisms to restrict access to 'realdir/filename', but it constructs pathnames using external input in the form of 'fakedir/../realdir/filename' that are not handled by those mechanisms. This allows attackers to perform unauthorized actions against the targeted file.

Potential Mitigations

see the vulnerability category "Path Equivalence"

Observed Examples
ReferenceDescription
application check access for restricted URL before canonicalization
 
CGI source disclosure using "dirname/../cgi-bin"
Theoretical Notes

This is a manipulation that uses an injection for one consequence (containment violation using relative path) to achieve a different consequence (equivalence by alternate name).

Relationships
NatureTypeIDNameView(s) this relationship pertains toView(s)
ChildOfWeakness BaseWeakness BaseWeakness Base41Failure to Resolve Path Equivalence
Development Concepts (primary)699
Research Concepts (primary)1000
Taxonomy Mappings
Mapped Taxonomy NameMapped Node Name
PLOVERdirname/fakechild/../realchild/filename
Applicable Platforms
Languages
All
Time of Introduction
* Implementation
Content History
Submissions
PLOVER. (Externally Mined)
Modifications
Eric Dalci. Cigital. 2008-07-01. (External)
updated Time_of_Introduction
CWE Content Team. MITRE. 2008-09-08. (Internal)
updated Relationships, Other_Notes, Taxonomy_Mappings
CWE Content Team. MITRE. 2008-10-14. (Internal)
updated Description, Name, Observed_Examples, Other_Notes, Theoretical_Notes
Previous Entry Names
* Path Issue - dirname/fakechild/../realchild/filename (changed 2008-04-11)
* Path Equivalence: 'dirname/fakechild/../realchild/filename' (changed 2008-10-14)
Page Last Updated: November 24, 2008