<< All versions

Skill v1.0.2

currentAutomated scan100/100
ghostonbutterbread/bug-bounty-harness/lfi

~2 modified

──Details
PublishedNovember 28, 2026 at 01:08 PM
Content Hashsha256:a3da4cf694166105...
Git SHAbbc90c2e91a6
Bump Typepatch
Compare with v1.0.1
──Files
Files (1 file, 2.0 KB)
SKILL.md2.0 KBactive
SKILL.md · 49 lines · 2.0 KB

name: lfi description: "Use when testing Local File Inclusion, file path traversal, file read sinks, path normalization bypasses, wrappers, null bytes, log poisoning, or proc/environment disclosure." metadata: version: "1.0.2"


LFI — Local File Inclusion Bypass

What It Does

Tests LFI bypass techniques: path traversal, null bytes, wrappers, log poisoning.

Load general-security-testing-policy, live-testing-policy, and injection-testing-policy before live testing. For file/path sinks, absence of an immediate file read or response delta is not a stop reason by itself; use the policy to reason about path normalization, extension allowlists, wrappers, encoding, parser differences, and stack-specific proof ladders.

Invocation

/lfi <target> [--param <param_name>] [--program <program>]

Harness Location

Uses /bypass harness: agents/bypass_harness.py

Example

/lfi https://target.com/download?file=test.pdf
/lfi https://target.com/view?path=/etc/passwd --param path

Techniques

  • Path traversal: ../../etc/passwd, %2e%2e%2f
  • Unverified parser-differential candidate: repeat /.&./ before a file path

when an observed path filter blocks ordinary traversal. A source-reported example shows a 200 with passwd-like output versus a 400 for a different conventional request, but the route and transformation are unknown. .&. is not normally a parent-directory component; do not assume Apache, PHP, or a filesystem interprets it as ... Compare the exact request and parsed value with a benign owned-file control and ordinary traversal, preserving literal versus percent-encoded & (which can delimit query parameters). Trace each normalization/consumer boundary; a status delta alone is not proof of a file read or bypass.

  • Null bytes: %00, %2500
  • Wrappers: php://filter/, data://, expect://
  • Log files: /var/log/apache2/access.log
  • Proc: /proc/self/environ, /proc/[pid]/fd/*
← v1.0.1All versions