hallo und guten Morgen,
habe festgestellt dass in einer relativ frisch installierten WP folgende Inhalte /(unterordner in wp-contents/uploads/ vorhanden sind:
Ist das eher ungewöhnlich!?
gibt es denn so etwas wie Arbitrary file upload vulnerability in WordPress ....
bei einer kursorischen Suche im Netz hab ich folgendes gefunden;
https://www.pluginvulnerabilities.com/2018/01/29/arb…ordpress-forms/
Zitat
The function that handles that, process_submition(), will save submitted files to the directory for the current year/month in the directory /wp-content/uploads/ with the following code:Code$upload_dir = wp_upload_dir(); move_uploaded_file( $_FILES[$key]['tmp_name'], $upload_dir['path'] . '/' . $_FILES[$key]['name'] ); :
The code does try to restrict .php files from being uploaded with the following codeCodeif ( $_FILES[$key]['type'] == 'application/octet-stream' or $_FILES[$key]['type'] == 'application/x-httpd-php' ) wp_die( "Error: For security reasons you can't upload application files!" );:That code isn’t effective because the “type” value it checks is user specified, so a .php file could be uploaded with the type specified as something else and it will pass that check.