Yeah, this is the one of the big problems with PHP, and Apache mod_php specifically. You can implement various mitigations (drop an .htaccess
into the uploads directory that turns off any script execution?) but the fact that you have to is kinda ridiculous. Pretty much all other web development environments are not based around just running scripts from the same directories where static files are. Heck, Apacheβs CGI implementation was better, it only ran code from the /cgi-bin/
subdirectory!
Hi!
You are viewing the archive of unrelenting.technology.
This website is no longer updated, my current one is val.packett.cool.
Check it out instead :)