Collected research
Code Execution Through Filenames in Uploads
ha.ckers.org web application security lab - Archive » 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.
Record
- Document
- ha.ckers.org web application security lab - Archive » Code Execution Through Filenames in Uploads
- Published by
- ha.ckers.org
- Topic
- Other
In the archive
Tags
This page is the archive's own catalogue record. The research is the work of ha.ckers.org, first published at the original source. Preserved copies are kept so the citation survives its host; this one was last captured on .