ssrf-testing
БесплатноЗапускает вложенные скриптыНе проверенValidate Server-Side Request Forgery (SSRF) vulnerabilities by testing if user-controlled URLs can reach internal services, cloud metadata endpoints, or…
от 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: Googleheader - Azure (169.254.169.254) - requires
Metadata: trueheader - 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 readgopher://- Raw TCP (Redis, Memcached, SMTP exploitation)dict://- Dictionary protocol (service detection)ftp://,sftp://,tftp://- File transfer protocolsldap://- Directory accessphp://- PHP stream wrappers (php://filter, php://input)data://- Data URI schemejar://- Java archive schemenetdoc://- 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
Установить ssrf-testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic