CWE entry / Path Traversal

CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Within this archive, CWE-22 is used when external input changes a file or directory path and special path elements let the final path resolve outside the directory the application meant to restrict.

Archive connections

Connected case files

01 record
CASE-017 WEBVERSE
Primary weakness

BookBomb

Path Traversal / Local File Read

A normal book download, a missing-file control, and a known public CSS comparison showed that the anonymous download handler accepted ../ path traversal and read local files outside its book directory.