Web Hack List

Other nomination

Code Execution Through Filenames in Uploads

Uploading a file whose NAME is a shell command turns a sloppy reader into code execution. RSnake creates a file called "|ls -al"; Perl's two-argument open treats the leading pipe as a command, so the script runs the filename instead of reading it. He pairs it with his arbitrary image-name generator to reach the upload path.

In the archive

Tags

This page is the archive's own catalogue record. The research is the work of its author, first published at the original source. Preserved copies are kept so the citation survives its host.