File upload
File upload
d
such as exe , php , ... and block them
mitigation
.*\.(php|php1|php2|php3|php4|php5|php6|
^
php7|phtml|exe)$/i /i => capital and small
Scenario 2 (Apache-Linux)
using the .pht extension. => apache understand HT file stores HTML page that includes a
P
bypass validation it as php and execute it normally PHP script.
Scenario 2 (IIS-Windows)
IIS <= 7.5 have Both *.asa and *.cer mapped
bypass using .cer & .asa extensions to asp.dll, thus executing ASP code