Skip to content
Back to skills

Web Ssrf

BSecurity

Server-Side Request Forgery — forcing the server to make attacker-controlled requests. Detection (in-band and blind/OAST), cloud metadata theft (AWS/GCP/Azure/Alibaba), internal service access, filter/allowlist bypass via DNS rebinding, redirects, encoding and alternate schemes, and escalation to RCE. Use for any feature that fetches a URL.

  • 16 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added November 17, 2026
securitygophpshellsqldockerawsgcpazureapisecurity

Works with

  • cli
  • api

Security analysis

B75/100
  • criticalAccesses sensitive system or user directories

Pro shows the line behind each finding and how to fix it

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill web-ssrf --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Web Ssrf?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Web Ssrf
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-web-ssrf/badge)](https://www.skillsdirectory.com/skills/anandjogawade-web-ssrf)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: web-ssrf
description: Server-Side Request Forgery — forcing the server to make attacker-controlled requests. Detection (in-band and blind/OAST), cloud metadata theft (AWS/GCP/Azure/Alibaba), internal service access, filter/allowlist bypass via DNS rebinding, redirects, encoding and alternate schemes, and escalation to RCE. Use for any feature that fetches a URL.
---

# Server-Side Request Forgery (SSRF)

Any feature where the server fetches a resource is a candidate: URL preview/unfurl, webhooks, PDF/HTML-to-image renderers, file imports "from URL", image proxies, SSO/OIDC fetchers, XML/`SYSTEM` (→ `web-xxe`), and integrations. Find the fetcher, point it inward, bypass defenses, and escalate.

## Trigger phrases

`ssrf, server-side request forgery, metadata, 169.254.169.254, internal request, url fetch, webhook, blind ssrf, dns rebinding`

## 1. Find the fetcher
Any parameter taking a URL/host/path, or JSON fields like `url`, `uri`, `callback`, `webhook`, `image`, `src`, `dest`, `feed`, `endpoint`, `proxy`, `redirect`, `fileUrl`. Also indirect: XML entities, PDF generators that fetch remote assets, and SVG/`<image>` rendering.

## 2. Confirm
- **In-band:** point at an attacker HTTP server and watch for the hit; or request an internal URL and observe differential responses (length/status/latency).
- **Blind/OAST:** use a unique DNS/HTTP callback host (Burp Collaborator / interactsh). A DNS lookup alone confirms SSRF even when the response is hidden. Always try OAST before concluding negative.

## 3. Reach internal targets
- Localhost & internal ranges: `http://127.0.0.1`, `http://localhost`, `http://[::1]`, `http://127.1`, `http://0.0.0.0`, internal `10./172.16./192.168.` hosts, service ports (`:6379` Redis, `:9200` ES, `:2375` Docker, `:8080` admin, `:3306`, `:5432`).
- Enumerate internal services and paths; chain to unauth admin panels, Redis/Memcached command injection via `gopher://`, Docker API RCE.

## 4. Cloud metadata (high impact — always test)
- **AWS IMDSv1:** `http://169.254.169.254/latest/meta-data/iam/security-credentials/<role>` → steal temporary keys. For **IMDSv2**, grab the token first (`PUT /latest/api/token` with TTL header) if the SSRF allows method/headers.
- **GCP:** `http://metadata.google.internal/computeMetadata/v1/` with header `Metadata-Flavor: Google` → service-account tokens.
- **Azure:** `http://169.254.169.254/metadata/instance?api-version=...` with `Metadata: true`.
- **Alibaba/DO/Oracle:** respective `169.254.169.254` paths.
- Exfiltrate credentials, then pivot with cloud CLI (→ `cloud-pentest`).

## 5. Bypass filters & allowlists
When the app blocks internal hosts (see `${CLAUDE_PLUGIN_ROOT}/payloads/ssrf.md` → Bypass):
- **Alternate IP encodings:** decimal `2130706433`, octal `0177.0.0.1`, hex `0x7f000001`, mixed, IPv6 `[::ffff:127.0.0.1]`, `[::]`, zero-padding.
- **DNS tricks:** attacker domain resolving to `127.0.0.1` (`*.nip.io`, `*.sslip.io`), `localtest.me`; **DNS rebinding** (TTL 0, flip from public to internal between validation and fetch) to beat allowlist-then-fetch checks.
- **Redirect bypass:** allowlisted URL that 301/302s to an internal target; test `Location` following.
- **Scheme/parser confusion:** `http://allowed@127.0.0.1`, `http://127.0.0.1#@allowed`, `http://allowed.attacker.com`, embedded credentials, `file://`, `gopher://`, `dict://`, `ftp://`, `ldap://`.
- **Case/encoding:** URL-encode, double-encode, uppercase host, trailing dots.

## 6. Alternate schemes for escalation
- `file:///etc/passwd`, `file:///proc/self/environ` — local file read.
- `gopher://` — craft raw TCP to Redis/Memcached/SMTP/FastCGI/MySQL → often RCE (e.g., Redis `CONFIG SET` webshell, FastCGI to PHP-FPM).
- `dict://` — service banner grab / simple interactions.

## 7. Escalate (don't stop at a callback)
SSRF → cloud cred theft → account/infra takeover; → internal admin/actuator (`/actuator/env`, `/console`) → RCE; → read local files/secrets; → port-scan internal network (timing/response oracle); → chain with deserialization or gopher for RCE.

## Evidence
Capture the request, proof of internal access (metadata response, internal banner, OAST callback log), and the bypass chain. See `${CLAUDE_PLUGIN_ROOT}/payloads/ssrf.md`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.