wp-contents/uploads/ - Inhalte in diesem Ordner ?

  • hallo und guten Morgen,


    habe festgestellt dass in einer relativ frisch installierten WP folgende Inhalte /(unterordner in wp-contents/uploads/ vorhanden sind:


    Code
    wp-contents/uploads/
    
    
    /2016/
    /2017/
    /2018/
    /2019/


    Ist das eher ungewöhnlich!?


    gibt es denn so etwas wie Arbitrary file upload vulnerability in WordPress ....

    Code
    curl http://example.com/wp-content/uploads/2019/04/script.php.gif ...


    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 code

    Code
    if ( $_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.

    • Anzeige

    Hallo!

    Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.

    • ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
    • ✔️ Deutsche Server & DSGVO-konform
    • ✔️ Persönlicher Support (kein 0815-Ticket-System)

    Mehr erfahren

  • hy,

    sind in den ordner nur bilder enthalten dann ist alles gut.
    Viele Themes wurden vor jahren erstellt, und daher kann der Import der Daten des Themes in ältere ordner stattfinden

  • hi Henk,,

    vielen Dank für die schnelle Antwort. Freue mich von dir zu hoeren. Ja da sind Bilder drinne.
    Hab mich halt gewundert dass da die Ordnersystematik mehrerer Jahre drinne ist.

    Code
    wp-contents/uploads/
    
    
    /2016/
    /2017/
    /2018/
    /2019/

    Danke nochmals -

    Viele Grüße
    lin ;)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!