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/code-review-phpWeb e bug bounty

code-review-php

⁨Security review of PHP code — dangerous sinks and framework pitfalls (Laravel/Symfony/WordPress). Load when reviewing a PHP codebase/PR, on .php source in scope, or "review this PHP". Signals: composer.json, index.php, Laravel/Symfony/WP, unserialize, include/require with variables, mysqli/PDO.⁩

v2026.10.14-ee0e0c53 installazioni+3 in 7 giorni27 StelleMITsincronizzato 23 ore fa

Installa

Non hai ancora la CLI di NotHoly? Installala prima.

$ curl -fsSL https://notholy.com/install.sh | sh
$ notholy skills install noorqureshi/code-review-php

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

FirmaFirmato, ed25519
XpRY5vnB7r…d97VGNDg==La CLI controlla lo SHA-256 e la firma prima di scrivere qualsiasi file.
Pacchettocb48dc3e…65a1c3f3
cb48dc3e9a20…8d7b65a1c3f31 file · ⁦1.7 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/code-review/code-review-php@ee0e0c5

Questa voce non è ancora scritta in italiano, quindi è mostrata in un'altra lingua: English.

When it applies

Reviewing PHP source (a repo, a PR, or a leaked webroot). PHP's defaults and dynamic features make several classes easy to introduce, so a grep-then-trace pass finds most of them fast.

Why it works

Many PHP sinks execute or include whatever string they're given, and loose typing turns comparison and casting into logic bugs. Tracing each sink back to a request source ($_GET/$_POST/$_REQUEST/ $_COOKIE/$_SERVER, php://input) tells you which are actually reachable.

Sinks & patterns (grep, then trace to user input)

  • Code exec: eval, assert, preg_replace with /e, create_function, call_user_func(_array).
  • Command exec: system, exec, shell_exec, passthru, proc_open, popen, backticks.
  • File include (LFI/RFI): include/require(_once) with a variable; allow_url_include.
  • SQLi: string-interpolated queries into mysqli_query/PDO::query (vs prepared statements).
  • Deserialization: unserialize() on input (POP chains); phar:// via file functions.
  • File / path: file_get_contents, fopen, readfile, move_uploaded_file with user paths.
  • Other: extract() on input (variable overwrite), parse_str, SSRF via curl/file_get_contents.

Framework specifics

  • Laravel: DB::raw/whereRaw, Blade {!! !!} (unescaped), mass assignment ($guarded=[]), unserialize in queues, Storage path traversal.
  • Symfony: unsafe deserialization, Twig |raw, expression-language injection.
  • WordPress: unsanitised $wpdb->query, missing nonce/cap checks, unsafe add_query_arg, unauthenticated AJAX/REST callbacks.

Method

  1. rg the sinks above; for each, trace the argument back to a request source.
  2. Note type-juggling auth checks (== vs ===, strcmp returning 0/null) and loose casts.
  3. Check upload handlers (extension/content-type allowlist, exec in upload dir).
  4. Confirm exploitability with the matching runtime skill (web-command-injection, web-deserialization, web-lfi-path-traversal, web-sqli).

Gotchas

  • A sink is only a bug if input reaches it — don't report unreachable eval.
  • WordPress plugins: unauthenticated wp_ajax_nopriv_* and REST endpoints are the high-value paths.
  • == type juggling ("0e123"=="0e456") still breaks weak hash/token comparisons.

References

OWASP PHP security; RIPS/progpilot sink catalogue; PHP unserialize POP-chain research (PHentication).

File di questa versione

Permessi

PermessoDichiaratoTrovato dalla scansione
Legge fileNoNo
Scrive fileNoNo
Esegue comandi shellNoNo
Usa la reteSìSì
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 2026ee0e0c5cb48dc3eFirmata–

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