Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ssrf-testing

БесплатноЗапускает вложенные скриптыНе проверен

Validate Server-Side Request Forgery (SSRF) vulnerabilities by testing if user-controlled URLs can reach internal services, cloud metadata endpoints, or…

anshumanbhот anshumanbh★ 287 звёзд на GitHub

Об этом скилле

SSRF Testing Skill

Purpose

Validate SSRF vulnerabilities by sending crafted URLs to user-controlled input points and observing:

  • Internal service access (localhost, internal IPs, cloud metadata)
  • Protocol smuggling (file://, gopher://, dict://)
  • Filter bypass success (IP encoding, DNS rebinding, redirects)
  • Out-of-band callbacks (OOB detection for blind SSRF)

Vulnerability Types Covered

1. Basic SSRF (CWE-918)

Force server to make requests to attacker-controlled or internal destinations.

Test Pattern: Supply internal URL in user-controlled parameter
Expected if secure: Request blocked or validated
Actual if vulnerable: Server fetches internal resource and returns/processes content

2. Blind SSRF (CWE-918)

Server makes request but response is not returned to attacker.

Test Pattern: Supply OOB callback URL (Burp Collaborator, interact.sh)
Expected if secure: No callback received
Actual if vulnerable: HTTP/DNS callback received at attacker server

3. Cloud Metadata SSRF (CWE-918)

Access cloud provider metadata endpoints to steal credentials.

Test Pattern: Request http://169.254.169.254/latest/meta-data/ (AWS) or equivalent
Expected if secure: Request blocked
Actual if vulnerable: IAM credentials, instance metadata exposed

Cloud Providers:

  • AWS (169.254.169.254) - IMDSv1 & IMDSv2
  • GCP (metadata.google.internal) - requires Metadata-Flavor: Google header
  • Azure (169.254.169.254) - requires Metadata: true header
  • DigitalOcean, Alibaba (100.100.100.200), Oracle (192.0.0.192), Hetzner

4. Protocol Smuggling (CWE-918)

Use alternative URL schemes to access local files or internal services.

Protocols:

  • file:// - Local file read
  • gopher:// - Raw TCP (Redis, Memcached, SMTP exploitation)
  • dict:// - Dictionary protocol (service detection)
  • ftp://, sftp://, tftp:// - File transfer protocols
  • ldap:// - Directory access
  • php:// - PHP stream wrappers (php://filter, php://input)
  • data:// - Data URI scheme
  • jar:// - Java archive scheme
  • netdoc:// - Java netdoc wrapper

5. Internal Port Scanning (CWE-918)

Enumerate internal services via response timing or error differences.

Test Pattern: Request internal IPs on various ports
Expected if secure: All requests blocked equally
Actual if vulnerable: Different responses for open vs closed ports

6. SSRF via XXE (CWE-611 → CWE-918)

XML External Entity injection leading to SSRF.

Test Pattern: Inject XXE payload with external entity pointing to internal URL
Expected if secure: XXE disabled or external entities blocked
Actual if vulnerable: Internal content returned in XML response

See examples.md for payloads.

7. SSRF via PDF/HTML Rendering (CWE-918)

HTML-to-PDF converters (wkhtmltopdf, Puppeteer, Chrome headless) fetch embedded resources.

Test Pattern: Inject HTML with internal resource references (iframe, img, link, script tags)
See examples.md and ssrf_payloads.py for payloads.

8. SSRF via SVG/Image Processing (CWE-918)

Image processors that handle SVG or fetch external images.

Test Pattern: Upload SVG with external references
See examples.md for payloads.

9. Partial URL SSRF (Path Injection)

Application constructs URL from user input (path/host injection).

Test Pattern: Inject path traversal or host override
See examples.md for techniques.

Prerequisites

  • Target application running and reachable
  • Identified SSRF injection points (URL parameters, webhooks, file imports)
  • OOB callback server for blind SSRF (optional but recommended)
  • VULNERABILITIES.json with suspected SSRF findings

Testing Methodology

Phase 1: Identify Injection Points

Before testing, analyze vulnerability report and source code for:

  • URL parameters: ?url=, ?path=, ?src=, ?dest=, ?redirect=, ?uri=
  • Webhook configurations: Callback URL fields
  • File import features: "Import from URL" functionality
  • Image/avatar fetchers: Profile picture from URL
  • PDF generators: HTML-to-PDF with embedded resources
  • API integrations: OAuth callbacks, external API endpoints

Key insight: Any user-controlled input that causes server-side HTTP requests is a potential SSRF vector.

Phase 2: Establish Baseline

Send a request to an external domain you control or an OOB service to confirm URL fetching is enabled. See validate_ssrf.py for implementation.

Phase 3: Test Internal Access

Localhost Access

Test standard localhost references and bypass variants. See ssrf_payloads.py get_localhost_payloads() for complete list including decimal/hex/octal encodings and [examples.md](examples.md#basic-ssrf---localhost-a

Полный SKILL.md на GitHub

Установить ssrf-testing в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

examples.mdreference/README.mdreference/ssrf_payloads.pyreference/validate_ssrf.py

FAQ

Что делает скилл ssrf-testing?

Validate Server-Side Request Forgery (SSRF) vulnerabilities by testing if user-controlled URLs can reach internal services, cloud metadata endpoints, or alternative protocols. Use when testing CWE-918 (SSRF), CWE-441 (Unintended Proxy), CWE-611 (XXE leading to SSRF), or findings involving URL fetching, webhooks, file imports, image/PDF/SVG processing, or XML parsing with external entities.

Как установить скилл ssrf-testing?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ssrf-testing запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить ssrf-testing с