Checklist
The upload security checklist
Systematic verification checklist for authorized penetration testing.
Use this checklist during file upload security assessments. A systematic pass catches the station you would otherwise skip under time pressure. Click any item to mark it complete. Your progress is stored in local browser storage.
- Client-side validation verified and bypassed via intercepting proxy
- Server-side extension ladder tested with alternative runtime extensions
- Case variations and double extensions sent to target endpoint
- Null byte characters and trailing dot or space characters tested
- Apache .htaccess and IIS web.config configuration upload attempted
- Content-Type request header manipulated in web proxy
- Magic byte polyglot constructed and tested against image validators
- Raw SVG upload tested for stored script execution on target origin
- SVG XML external entity injection tested against server thumbnailers
- Zip archive traversal tested for Zip Slip arbitrary file writes
- Nested archive compression tested for security scanner evasion
- Office OOXML documents tested for internal XML external entities
- Server-side processing libraries fingerprinted and matched to CVE records
- PHP phar stream wrapper execution tested against file system operations
- Filename parameters tested for directory traversal and script injection
- Spreadsheet export features tested for CSV formula execution
- File serving headers audited for missing nosniff and CSP directives
- Direct object references tested on user file paths and download endpoints
- Asynchronous storage race window tested using concurrent requests
- Minimal proof of execution documented using id or whoami output
- All test files and uploaded artifacts deleted from the target system
The security philosophy of file uploads
Section titled “The security philosophy of file uploads”Standard security doctrine assumes that files represent passive data. File upload attacks prove that files act as executable code. A file travels through backend systems until an active interpreter parses its content.
The browser executes JavaScript inside an SVG image. The web server executes PHP code inside a polyglot image. The PHP stream wrapper executes object chains inside a phar archive. The ImageMagick delegate executes command shells during image conversion. The spreadsheet program executes dynamic data exchange formulas upon export opening.
Each station assumes that a previous component completed validation. Because each system holds a different belief about file formats, security failures occur. Audit every station along the entire journey of the file.
Next, Defense lists the controls that close each gap this checklist finds.
Related checklists
Section titled “Related checklists”- Pair upload testing with content discovery and the per-hunt checklist.
- Format your proof of concept with the upload reporting guide and general report template.
Open local graph around this page
File UploadFor authorized testing only.