file-inclusion
Detect local and remote file inclusion vulnerabilities and escalate to code execution
от VigilOSS★ 35 звёзд на GitHub
Установить file-inclusion в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
File Inclusion Testing
When to Activate
- A parameter names a file, template, language or path (
page=,file=,template=,include=,path=,doc=,lang=, image or download paths), content loads by name, or errors reveal filesystem paths.
--technique LFI for local inclusion and traversal; RFI when the server fetches a remote URL.
Manual probes via vigil assess kali exec … -- curl …; depth and encoding sweeps via the typed
vigil assess kali ffuf verb (--probe-kind payload --phase consume-test --timeout 600).
Traversal sequences and encodings (double, overlong UTF-8, null byte, truncation, recursive
stripping, NGINX+Tomcat ..;/, ASP.NET cookieless), interesting files per OS:
agent/references/payloads/directory-traversal-payloads.md. PHP wrappers (php://filter,
php://input, data://, expect://, zip://, phar://), log/environ/session poisoning, RFI
and LFI-to-RCE chains including the no-write filter chain:
agent/references/payloads/file-inclusion-payloads.md.
Method
- Seed:
vigil assess classify-payload "<current value>" --mutations(escalationgives traversal candidates,formatthe backslash and%2Fparser-confusion forms,boundaryabsolute paths;--max-per-intent 7shows more). - Depth sweep and triage: capture one JSONL record per depth and rank with
vigil assess anomaly-score depth_sweep.jsonl --top 5; the depth that read the file diverges on length/words/lines from the default-page population. Confirm the content (root:x:0:0:), not just a different size. A flat ranking means deepen, switch encoding, or this is not a filesystem include. - Read what matters: after
/etc/passwdproves the read, go for application config,.env, credentials and source viaphp://filter/convert.base64-encode— the finding is what the read discloses. - Escalate to code execution with the least invasive path: the filter chain (no write) or
php://input/data://where wrappers are allowed. Log and mail spool poisoning write to shared target state and need operator approval (agent/shared-constraints.md§1); poisoning your own session file changes only your own test data and needs none. - RFI: point the parameter at a minted host
(
agent/references/offensive-tactics/frp-tunneling.md"OOB Procedure (mint→poll→correlate)"). A matched fetch shows the server dereferences URLs, not that it includes them:file_get_contentswithallow_url_fopenfetches without executing. Inclusion is shown by executed content, which needs a served payload from an operator-provisioned listener (agent/shared-constraints.md§12). On Windows, UNC paths (\\$OOB_HOST\share\x) are fetched even withallow_url_includeOff. An emptymatchedcan be egress filtering, not a disabled setting.
What to Record
Parameter and endpoint, traversal depth, the encoding or bypass needed, the files read and what
they disclose (agent/rules/hunting.md §2), and the RCE method with id output if reached.
Severity: agent/references/finding-fp-and-severity-gate.md; format:
agent/references/runtime-guides/web-finding-recording.md.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл file-inclusion?
Detect local and remote file inclusion vulnerabilities and escalate to code execution
Как установить скилл file-inclusion?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл file-inclusion запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…