Skip to content
Back to skills

Api Ssrf

ASecurity

SSRF via API URL fields and webhooks (OWASP API7) — abuse url/callback/webhook/image_url params and fetch-from-URL features to reach loopback, internal ranges, and cloud metadata. Tier 1. Use when an API accepts a URL/hostname it will fetch. Cross-references ssrf and api-webhooks.

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

Works with

  • api
  • mcp

Security analysis

A100/100

Scanned November 17, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Api Ssrf?

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

Security grade badge for Api Ssrf
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-api-ssrf/badge)](https://www.skillsdirectory.com/skills/anandjogawade-api-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: api-ssrf
description: SSRF via API URL fields and webhooks (OWASP API7) — abuse url/callback/webhook/image_url params and fetch-from-URL features to reach loopback, internal ranges, and cloud metadata. Tier 1. Use when an API accepts a URL/hostname it will fetch. Cross-references ssrf and api-webhooks.
---

# API7 — SSRF via APIs

APIs introduce SSRF through URL-valued fields the server fetches. Turn that into internal access or cloud credential theft. Payloads: `${CLAUDE_PLUGIN_ROOT}/payloads/ssrf.md`.

## Trigger phrases
`api ssrf, api7, server side request forgery, url parameter, webhook ssrf, fetch url, image_url, cloud metadata, imds`

## Method
1. **Find URL sinks** — params like `url=`, `callback=`, `webhook=`, `image_url=`, `redirect=`, `fetch=`, `source=`, plus PDF/screenshot/thumbnail generators, document/feed importers, "import from URL", webhook registration (`api-webhooks`), XXE (`api-soap-wsdl`), SSO/`jku`/OIDC discovery.
2. **Core probes:**
   ```
   http://127.0.0.1/admin        http://localhost/
   http://169.254.169.254/latest/meta-data/                          # AWS IMDSv1
   http://169.254.169.254/latest/meta-data/iam/security-credentials/ # AWS creds
   http://metadata.google.internal/computeMetadata/v1/   (Metadata-Flavor: Google)
   http://169.254.169.254/metadata/instance?api-version=2021-02-01    (Metadata: true) # Azure
   http://192.168.0.1/  http://10.0.0.1/                              # internal ranges
   ```
3. **Response vs. blind** — if the fetched body is reflected, read internal content directly. If not, go **blind/OAST**: inject `http://UNIQUE.oast` and watch for DNS/HTTP hit (`api-oast-blind`).
4. **Internal port scan** — differential responses/timing on `http://127.0.0.1:PORT` to map internal services.

## Bypass / evasion
Alt IP encodings of 127.0.0.1: `2130706433`, `017700000001`, `127.1`, `0`, `[::1]`, `0x7f000001`. Attacker domain resolving to 127.0.0.1; **DNS rebinding** (validate-then-fetch gap); open-redirect chain on an allowed host; URL/double-encoding; `http`↔`https`; parser tricks `https://expected@evil`, `https://evil#expected`, `https://expected.evil.com`. See `${CLAUDE_PLUGIN_ROOT}/payloads/ssrf.md`, `waf-bypass.md`.

## Modern / rare techniques
- **[RARE] IMDSv2 awareness** — v2 needs a `PUT` token first; if the SSRF can set headers/methods, chain it, else report IMDSv1 exposure.
- **[RARE] DNS rebinding** — host passes registration-time allow-list then rebinds to a private IP at fetch time.
- **[RARE] Gopher/other schemes** — where the fetcher allows non-HTTP schemes, pivot to internal TCP services.
- **Blind SSRF confirm** — source IP of the OAST hit = target egress (not your box).

## Escalation / chaining
Cloud metadata creds → account takeover / internal pivot / RCE. Internal service access → chain to internal-app bugs. Webhook-registration SSRF → `api-webhooks`; upstream-redirect SSRF → `api-unsafe-consumption`; XXE SSRF → `api-soap-wsdl`.

## Backend & tooling
Preferred Kali path (WSL+Kali / Kali-MCP / HexStrike). Use interactsh/Collaborator for blind confirmation; Burp Repeater for payload iteration. See `zazy-orchestrator`.

## Verification (background, before reporting)
Confirm with a second vantage: metadata creds returned, or an OAST DNS+HTTP hit originating from the target's egress IP. DNS-only = reached resolver; HTTP hit = full fetch. Reproduce before CONFIRMED. True positives only.

## Evidence
Request with the SSRF payload + internal/metadata content returned, or OAST callback from target egress. Impact + remediation (allow-list outbound hosts, block internal/link-local/metadata at network layer, no raw reflection, disable/validate redirects, IMDSv2).

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.