Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计异常

ssrfssrf 搜索

Agent Skill

ssrf 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,102

周安装

45

GitHub Stars

9

下载量

353
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ssrf(ssrf 搜索)
来源仓库:https://github.com/florianbuetow/claude-code
仓库路径:skills/ssrf
安装命令:
npx skills add https://github.com/florianbuetow/claude-code --skill ssrf
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/florianbuetow/claude-code --skill ssrf

简介

ssrf 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • npx skills add https://github.com/florianbuetow/claude-code --skill ssrf
  • https://github.com/florianbuetow/claude-code/tree/main/skills/ssrf

SKILL.md

Server-Side Request Forgery (A10:2021)

Analyze source code for server-side request forgery vulnerabilities including URL fetching from user input, missing URL validation, internal network access, redirect following, DNS rebinding, and cloud metadata endpoint access. SSRF is especially critical in cloud environments where metadata endpoints expose credentials and instance configuration.

Supported Flags

Read ../../shared/schemas/flags.md for the full flag specification. This skill supports all cross-cutting flags. Key flags for this skill:

  • --scope determines which files to analyze (default: changed)
  • --depth standard reads code and checks URL fetch calls for user-controlled input
  • --depth deep traces URL input from request parameters through all transformations to fetch calls
  • --severity filters output (SSRF to cloud metadata is critical, general SSRF is high)

Framework Context

Read ../../shared/frameworks/owasp-top10-2021.md, section A10:2021 - Server-Side Request Forgery (SSRF), for the full category description, common vulnerabilities, and prevention guidance.

Key CWEs in scope:

  • CWE-918: Server-Side Request Forgery (SSRF)
  • CWE-441: Unintended Proxy or Intermediary
  • CWE-601: URL Redirection to Untrusted Site (open redirect enabling SSRF chains)

Detection Patterns

Read references/detection-patterns.md for the full catalog of code patterns, search heuristics, language-specific examples, and false positive guidance.

Workflow

1. Determine Scope

Parse flags and resolve the file list per ../../shared/schemas/flags.md. Filter to files likely to contain outbound HTTP request logic:

  • HTTP client usage (**/http/**, **/client/**, **/fetch/**, **/request/**)
  • Webhook and callback handlers (**/webhooks/**, **/callbacks/**)
  • Proxy and gateway code (**/proxy/**, **/gateway/**)
  • Integration modules (**/integrations/**, **/connectors/**, **/services/**)
  • File import/upload handlers (**/upload/**, **/import/**)
  • URL preview or unfurling code (**/preview/**, **/unfurl/**, **/embed/**)
  • PDF generation and screenshot services (**/pdf/**, **/screenshot/**, **/render/**)

2. Check for Available Scanners

Detect scanners per ../../shared/schemas/scanners.md:

  1. semgrep -- primary scanner for SSRF patterns (taint analysis for URL flow)
  2. bandit -- Python-specific request patterns
  3. gosec -- Go HTTP client patterns

Record which scanners are available and which are missing.

3. Run Scanners (If Available)

If semgrep is available, run with rules targeting SSRF:

semgrep scan --config auto --json --quiet <target>

Filter results to rules matching SSRF, URL fetching, and request forgery patterns. Normalize output to the findings schema.

4. Claude Code Analysis

Regardless of scanner availability, perform manual code analysis:

  1. URL from user input: Find HTTP client calls (fetch, requests, http.get, etc.) and trace whether the URL or any URL component originates from user input (query params, request body, headers, path params).
  2. URL scheme validation: Check that URL schemes are restricted to http:// and https:// only, blocking file://, gopher://, dict://, ftp://, and other dangerous schemes.
  3. Internal IP blocking: Verify that URLs are validated against internal/private IP ranges (127.0.0.0/8, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 169.254.0.0/16, 0.0.0.0,::1, fd00::/8) before making requests.
  4. Cloud metadata protection: Check for blocking of cloud metadata endpoints (169.254.169.254, metadata.google.internal, 169.254.170.2) and IMDSv2 enforcement on AWS.
  5. Redirect handling: Verify that HTTP redirects are either disabled or validated at each hop to prevent redirect-based SSRF bypass.
  6. DNS rebinding: Check if DNS resolution and connection happen atomically or if there is a TOCTOU gap where a hostname could resolve to a safe IP during validation but a private IP during the actual request.

When --depth deep, additionally trace:

  • Complete data flow from request parameter to HTTP client call
  • URL construction through string concatenation, template rendering, or URL builder APIs
  • Indirect SSRF via PDF generators, screenshot services, SVG/XML processors, or webhook URLs

5. Report Findings

Format output per ../../shared/schemas/findings.md using the SSRF prefix (e.g., SSRF-001, SSRF-002).

Include for each finding:

  • Severity and confidence
  • Exact file location with code snippet
  • Impact description specific to the SSRF scenario (cloud metadata, internal scanning, data exfiltration)
  • Concrete fix with diff when possible
  • CWE and OWASP references

What to Look For

These are the high-signal patterns specific to server-side request forgery. Each maps to a detection pattern in references/detection-patterns.md.

  1. URL from user input passed to HTTP client -- Any HTTP request function (fetch, requests.get, http.Get, HttpClient) called with a URL that originates from user-controlled input without validation.
  2. Missing URL scheme whitelist -- URL validation that does not restrict the scheme to http/https, allowing file://, gopher://, or other dangerous protocols.
  3. No blocking of internal IP ranges -- Outbound requests to user-supplied URLs without checking the resolved IP against private/reserved ranges, enabling internal network scanning and service access.
  4. Cloud metadata endpoint accessible -- No specific blocking of 169.254.169.254 (AWS/Azure/GCP metadata), metadata.google.internal, or 169.254.170.2 (ECS task metadata), allowing credential theft from cloud environments.
  5. Redirect following on user-supplied URLs -- HTTP client configured to follow redirects when fetching user-supplied URLs, enabling attackers to bypass URL validation by redirecting from an allowed domain to an internal target.
  6. DNS rebinding vulnerability -- URL validation resolves the hostname to check the IP, but the actual HTTP request resolves it again, allowing a DNS record with a short TTL to return a different (internal) IP on the second resolution.
  7. Indirect SSRF via document processors -- PDF generators (wkhtmltopdf, Puppeteer), SVG renderers, XML parsers (XXE), or webhook registration endpoints that fetch URLs without SSRF protection.

Scanner Integration

ScannerCoverageCommand
semgrepURL from user input, taint tracking through request callssemgrep scan --config auto --json --quiet <target>
banditPython requests/urllib with user inputbandit -r <target> -f json -q
gosecGo net/http with user inputgosec -fmt json./...

Fallback (no scanner): Use Grep with patterns from references/detection-patterns.md to find HTTP client calls, URL construction from user input, and missing validation. Report findings with confidence: medium.

Relevant semgrep rule categories:

  • python.requests.security.ssrf.*
  • python.urllib.security.audit.ssrf.*
  • javascript.fetch.security.ssrf.*
  • java.net.security.audit.ssrf.*
  • go.net.security.audit.ssrf.*

Output Format

Use the findings schema from ../../shared/schemas/findings.md.

  • ID prefix: SSRF (e.g., SSRF-001)
  • metadata.tool: ssrf
  • metadata.framework: owasp
  • metadata.category: A10
  • references.owasp: A10:2021
  • references.stride: I (Information Disclosure) or E (Elevation of Privilege)

Severity guidance for this category:

  • critical: SSRF to cloud metadata endpoint (169.254.169.254), unauthenticated endpoint with no URL validation
  • high: SSRF to internal network with no IP range blocking, redirect following enabled on user URLs
  • medium: Partial URL validation (scheme checked but IP not validated), DNS rebinding possible
  • low: SSRF risk in internal-only service not exposed to external users, URL construction from partially controlled input

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.28%
按下载量换算132

Claude

29.59%
按下载量换算104

Cursor

18.67%
按下载量换算66

Gemini CLI

9.72%
按下载量换算34

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills