๐Ÿ—ƒ๏ธfile upload vulnerability

File Upload Vulnerability Cheat Sheet

Methodology

Useful Extensions

PHP: .php, .php2, .php3, .php4, .php5, .php6, .php7, .phps, .phps, .pht, .phtm, .phtml, .pgif, .shtml, .htaccess, .phar, .inc, .hphp, .ctp, .module

Working in PHPv8: .php, .php4, .php5, .phtml, .module, .inc, .hphp, .ctp

ASP: .asp, .aspx, .config, .ashx, .asmx, .aspq, .axd, .cshtm, .cshtml, .rem, .soap, .vbhtm, .vbhtml, .asa, .cer, .shtml

Jsp: .jsp, .jspx, .jsw, .jsv, .jspf, .wss, .do, .action

Coldfusion: .cfm, .cfml, .cfc, .dbm

Flash: .swf

Perl: .pl, .cgi

Erlang Yaws Web Server: .yaws

Bypass File Extension Checks

Bypass Content-Type, Magic Number

Content Type Worldlist

Bypass Magic Number

Tools

Upload Bypass

From File upload to other vulnerabilities

Magic Header Bytes

References

HackTricks Book

Last updated

Was this helpful?