hunt-lfi

Detect, validate, and exploit LFI, RFI, and path traversal vulnerabilities.

1.1k|191|Updated Jun 24, 2026
One-click install
npx skills add https://github.com/uphiago/recon-skills --skill hunt-lfi-uphiago
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hunt-lfi
Source: https://github.com/uphiago/recon-skills/tree/main/redteam/hunt-lfi
Command: npx skills add https://github.com/uphiago/recon-skills --skill hunt-lfi-uphiago

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manual testing for local file inclusion (LFI), remote file inclusion (RFI), and path traversal vulnerabilities is time-consuming, error-prone, and often misses high-impact exploitation paths like PHP filter-chain RCE that require no file uploads. This Skill eliminates false positives with strict validation rules and provides an end-to-end workflow to find, confirm, and exploit these flaws across common web stacks.

Core Features & Use Cases

  • Cross-stack coverage: Tests LFI/RFI/path traversal on PHP, Java, Node.js, Windows/IIS, and Python/Flask environments, with stack-specific payloads and target files.
  • Modern exploitation techniques: Includes the high-impact PHP filter-chain RCE method (no upload or writable file required), log poisoning, phar:// deserialization, and RFI exploitation for legacy configurations.
  • False-positive discipline: Provides clear rules for confirming blind LFI via out-of-band callbacks and timing differentials, plus a comprehensive bypass table for common input filters and WAF rules.
  • Use case: When testing a PHP web application with a ?file= URL parameter, use this Skill to systematically test for path traversal, confirm blind vulnerabilities via Burp Collaborator callbacks, and escalate a simple file-read primitive to full remote code execution via the iconv-based filter chain.

Quick Start

Use the hunt-lfi skill to test the ?file= parameter on your target web application for local file inclusion vulnerabilities, confirm any blind findings with out-of-band callbacks, and escalate to remote code execution if the target supports PHP filter wrappers.

Frequently Asked Questions about hunt-lfi

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I exploit LFI to get remote code execution using PHP filter chains?

You can exploit LFI to achieve remote code execution using PHP filter chains by applying iconv-based filter sequences that require no file uploads or writable directories. This technique manipulates PHP wrappers to convert a simple file-read primitive into full RCE.

How do I confirm blind path traversal vulnerabilities without visible output?

Confirm blind path traversal vulnerabilities using out-of-band callbacks and timing differentials. By injecting payloads that trigger external interactions, you validate blind inclusion flaws with strict, false-positive-free confirmation rules.

Can I test for RFI and path traversal across different web application stacks like Java and Node.js?

Yes, you can test for RFI and path traversal across PHP, Java, Node.js, Windows/IIS, and Python/Flask environments. The process applies stack-specific payloads and target files to accurately detect reflected and blind inclusion flaws across these platforms.

What is the best way to bypass WAF rules when testing for local file inclusion?

The best way to bypass WAF rules during local file inclusion testing is to apply a comprehensive bypass table for common input filters. This approach maps specific WAF restrictions to effective alternative payloads, ensuring successful exploitation during penetration testing.

When should I use log poisoning for LFI exploitation?

You should use log poisoning for LFI exploitation when you need to escalate a local file inclusion vulnerability but lack writable file paths or PHP filter support. It injects malicious code into server logs and includes those logs to trigger execution.