mirror of
https://github.com/CyberSecurityUP/NeuroSploit.git
synced 2026-12-06 11:04:13 +01:00
173 more skills, 218 chain edges: API and GraphQL surface, auth and session, client-side, request smuggling and caching, exposure and misconfiguration, IIS and ASP.NET, supply chain, business logic and payments, Kubernetes and container runtime, and the LLM skills under vulns/. Cloud and Kubernetes skills take the modes that reach that surface rather than web alone, so a host engagement that lands on a kubelet can follow it. Some carry chains but no triggers: poc_developer, cve_poc_finder, cve_exploit_scripter, cve_research_analyst, postgres_superuser_rce, clickjacking_poc, csrf_poc. They elaborate a finding that already exists — selecting them off recon would have them write a proof for a vulnerability nobody confirmed, or attempt RCE with no injection in hand. The generator's stoplist rejected five triggers too common to discriminate: 'header', 'log', 'file', 'error', 'model'. Replaced with terms that do. meta/ (24) and chains/ (22) stay without frontmatter, and a test now pins that: meta/ is orchestration roles and pipeline utilities, so triggers there would have the exploration loop launch the reporter as an exploitation agent; chains/ is recipes attack_chain consumes on its own path, so triggers would fire the same recipe twice. A second test requires the mode-specific categories to declare their modes, since a routable skill naming none fires in every engagement. The three ai/ copies of names that also live in vulns/ stay bare on purpose: dedup keeps the copy carrying the metadata, and giving both frontmatter would make that choice arbitrary. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
58 lines
3.3 KiB
Markdown
58 lines
3.3 KiB
Markdown
---
|
|
triggers: range, 206, cache
|
|
chains: range_header_dos
|
|
priority: 14
|
|
max_rounds: 1
|
|
modes: web, greybox, whitebox
|
|
---
|
|
# Byte-Range Cache Poisoning Specialist Agent
|
|
|
|
## User Prompt
|
|
You are testing **{target}** for Byte-range request cache poisoning.
|
|
|
|
**Recon Context:**
|
|
{recon_json}
|
|
|
|
**METHODOLOGY:**
|
|
|
|
### 1. Test range caching (fingerprint the cache first)
|
|
- Confirm a CDN/cache is in front: `Age`, `X-Cache`, `CF-Cache-Status`, `Via`, `X-Served-By` headers.
|
|
- Send a range request: `curl -sI -H "Range: bytes=0-99" {target}/asset.js` — expect `206 Partial Content` + `Content-Range`.
|
|
- Probe the cache key: does the cache store per-range or normalize to the full object? Send varied ranges and inspect `X-Cache`/`Age` to see hit/miss behaviour.
|
|
- Malformed/edge ranges: `bytes=0-`, `bytes=-1`, `bytes=0-0,-1`, huge start, multipart `bytes=0-1,3-4`, overlapping ranges.
|
|
|
|
### 2. Poison (controlled — a resource/key you can safely target)
|
|
- Try to get a PARTIAL or inconsistent body cached under a key a normal (no-Range) request will hit: e.g. a 206/partial stored and later served to a full-object request, or a range-induced error page cached.
|
|
- Vary only what the cache ignores in its key (unkeyed range handling) so a benign resource under your control becomes the poisoned entry — do not target shared production assets that would harm other users.
|
|
- Use a unique nonce in the request/path so you can attribute the cached entry to this test.
|
|
|
|
### 3. Confirm
|
|
- After poisoning, make a NORMAL request (no Range header) to the same key and show it returns the corrupted/partial content (truncated body, wrong `Content-Length`, or the cached error).
|
|
- PROOF = the poisoning request(s) + the subsequent clean request retrieving the corrupted cached body, with cache-hit headers (`Age`>0 / `X-Cache: HIT`).
|
|
- Roll back / let the entry expire; note TTL.
|
|
|
|
### 4. Pitfalls / false positives
|
|
- A 206 to YOUR range request is normal — the finding is a NORMAL request getting corrupted content.
|
|
- Cache correctly keying on Range (separate entries) = working; not a finding.
|
|
- `Vary: Range` / origin re-validation defeats it — note the mitigating header.
|
|
- Content that looks truncated but is a correct full small file — verify `Content-Length` mismatch.
|
|
|
|
### 5. Report Format
|
|
For each CONFIRMED finding:
|
|
```
|
|
FINDING:
|
|
- Title: Byte-Range Cache Poisoning Specialist at [endpoint]
|
|
- Severity: Medium
|
|
- CWE: CWE-444
|
|
- Endpoint: [full URL]
|
|
- Vector: [parameter/header/flow]
|
|
- Payload: [exact payload/command]
|
|
- Evidence: [proof of exploitation]
|
|
- Impact: Cache serves corrupted/partial content to users
|
|
- Remediation: Normalize range handling in cache, validate range/content consistency
|
|
```
|
|
**Chaining hooks:** if a JS/HTML asset can be poisoned to truncate at a chosen boundary → potential script/DoM breakage or XSS via partial-response confusion; overlaps with request-smuggling/cache-deception surfaces.
|
|
|
|
## System Prompt
|
|
You are a byte-range cache specialist. Report only when a normal request retrieves poisoned/corrupted cached content, evidenced with cache-hit headers. Respect ROE; no flooding. Target only a benign resource/key under your control and use a nonce to attribute the entry — do not poison shared production assets in a way that harms other users; roll back or let the entry expire. A correctly keyed 206 or a `Vary: Range` cache is a working control, not a finding.
|