105
Strategy = Input Validation
Inputs should be decoded and canonicalized to the application's current internal representation
before being validated (CWE-180). Make sure that the application does not decode the same
input twice (CWE-174). Such errors could be used to bypass allowlist validation schemes by
introducing dangerous inputs after they have been checked.
MemberOf Relationships
This MemberOf relationships table shows additional CWE Catgeories and Views that reference this
weakness as a member. This information is often useful in understanding where a weakness fits
within the context of external information sources.
Nature Type ID Name Page
MemberOf 981 SFP Secondary Cluster: Path Traversal 888 2409
MemberOf 1404 Comprehensive Categorization: File Handling 1400 2529
Taxonomy Mappings
Mapped Taxonomy Name Node ID Fit Mapped Node Name
PLOVER \multiple\\internal\backslash
Software Fault Patterns SFP16 Path Traversal
CWE-54: Path Equivalence: 'filedir\' (Trailing Backslash)
Weakness ID : 54
Structure : Simple
Abstraction : Variant
Description
The product accepts path input in the form of trailing backslash ('filedir\') without appropriate
validation, which can lead to ambiguous path resolution and allow an attacker to traverse the file
system to unintended locations or access arbitrary files.
Relationships
The table(s) below shows the weaknesses and high level categories that are related to this
weakness. These relationships are defined as ChildOf, ParentOf, MemberOr and give insight to
similar items that may exist at higher and lower levels of abstraction. In addition, relationships such
as PeerOf and CanAlsoBe are defined to show similar weaknesses that may want to be explored.
Relevant to the view "Research Concepts" (CWE-1000)
Nature Type ID Name Page
ChildOf 162 Improper Neutralization of Trailing Special Elements 417
ChildOf 41 Improper Resolution of Path Equivalence 86
Applicable Platforms
Language : Not Language-Specific (Prevalence = Undetermined)
Common Consequences
Scope Impact Likelihood
Confidentiality
Integrity
Read Files or Directories
Modify Files or Directories
Potential Mitigations
Phase: Implementation
Strategy = Input Validation
CWE Version 4.14
CWE-55: Path Equivalence: '/./' (Single Dot Directory)
CWE-55: Path Equivalence: '/./' (Single Dot Directory)