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-phpScrive in ~/.notholy/skills dopo aver controllato la firma e lo SHA-256.
FirmaFirmato, ed25519
Pacchettocb48dc3e…65a1c3f3
cb48dc3e9a20…8d7b65a1c3f31 file · 1.7 KBScansioneBassonessuna segnalazione
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.
In questa pagina
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_replacewith/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_filewith user paths. - Other:
extract()on input (variable overwrite),parse_str, SSRF viacurl/file_get_contents.
Framework specifics
- Laravel:
DB::raw/whereRaw, Blade{!! !!}(unescaped), mass assignment ($guarded=[]),unserializein queues,Storagepath traversal. - Symfony: unsafe deserialization, Twig
|raw, expression-language injection. - WordPress: unsanitised
$wpdb->query, missing nonce/cap checks, unsafeadd_query_arg, unauthenticated AJAX/REST callbacks.
Method
rgthe sinks above; for each, trace the argument back to a request source.- Note type-juggling auth checks (
==vs===,strcmpreturning0/null) and loose casts. - Check upload handlers (extension/content-type allowlist, exec in upload dir).
- 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
- SKILL.md3.0 KB
Permessi
| Permesso | Dichiarato | Trovato dalla scansione |
|---|---|---|
| Legge file | No | No |
| Scrive file | No | No |
| Esegue comandi shell | No | No |
| Usa la rete | Sì | Sì |
| Usa i connettori | No | No |
| Controlla un browser | No | No |
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.
| Versione | Pubblicata | Commit | SHA-256 | Firma | Cambio di permessi |
|---|---|---|---|---|---|
| v2026.10.14-ee0e0c5 | 13 nov 2026 | ee0e0c5 | cb48dc3e | Firmata | – |
Altro da NoorQureshi
Tutto da questo editoreAltro in Web e bug bounty
Vai alla categoria- 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
Chiedi tutto quello che il tuo perimetro consente.
Crea un account, aggiungi crediti e fai la prima domanda in chat o nel terminale.
- 1/3
Crea l'account
Privato o azienda. Puoi passare ad azienda in seguito senza perdere saldo o chiavi.
PrivatoAzienda - 2/3
Aggiungi crediti
Con carta. Paghi a token, senza abbonamento.
$5.00ricarica minima - 3/3
Chiedi
In chat, oppure installa la CLI ed esegui notholy login nel terminale.
$ notholy login