The compared file must be known in advance, non-sensitive, and outside the handler's normal file area.
Known-File Content Comparison
Request one harmless known file through its normal route and through the suspected file handler, then compare the returned content.
That the handler can return the known file through the tested path input instead of only reflecting a filename or status.
It does not show which other files exist or what the application process can read.
Related classifications
Related entries
Associated CWEs
Associated patterns
Archive connections
01 recordConnected case files
Connected evidence
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.