CWE-48 · Słabość
Path Equivalence: 'file name' (Internal Whitespace)
- Abstrakcja
- Wariant
- Status
- Niekompletny
- Dodano
- 19 lipca 2006
- Ostatnia zmiana
- 11 grudnia 2025
Opis
The product accepts path input in the form of internal space ('file(SPACE)name') 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.
Skutki
Confidentiality, Integrity
Read Files or Directories; Modify Files or Directories
Przykłady podatności
- CVE-2000-0293 Filenames with spaces allow arbitrary file deletion when the product does not properly quote them; some overlap with path traversal.
- CVE-2001-1567 "+" characters in query string converted to spaces before sensitive file/extension (internal space), leading to bypass of access restrictions to the file.
Słabość nadrzędna
Kiedy powstaje
- Implementation
Dotyczy
Not Language-Specific
Uwagi
This weakness is likely to overlap quoting problems, e.g. the "Program Files" unquoted search path (CWE-428). It also could be an equivalence issue if filtering removes all extraneous spaces.
Whitespace can be a factor in other weaknesses not directly related to equivalence. It can also be used to spoof icons or hide files with dangerous names (see icon manipulation and visual truncation in CWE-451).
Wpis z katalogu CWE 4.20.