Secure File Uploads in WordPress: Type Validation, Size Limits, and Stor ...
Secure file uploads in a WordPress plugin An upload form is the shortest way from the internet to the server’s disk. If a plugin accepts a file because its name ends with .pdf or because the browser said Content-Type: application/pdf, an attacker uploads shell.php with a fake type and calls it in the browser. WordPress…