Umbra Wiki weakness weakness/CWE-42
Back to wiki

CWE-42 — Path Equivalence: 'filename.' (Trailing Dot)

provenance: imported · CWE: CWE-42

CWE-42: Path Equivalence: 'filename.' (Trailing Dot)

MITRE CWE weakness

Kind Weakness
Abstraction Variant
Status Incomplete
Likelihood of exploit

Description

The product accepts path input in the form of trailing dot ('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.

Common consequences

  • Access Control: Bypass Protection Mechanism

Mitigations

(none listed)

References

  • CWE page: https://cwe.mitre.org/data/definitions/42.html
  • CWE list: https://cwe.mitre.org/data/index.html