Logo SSRF Check

SSRF Check

Cộng đồng
bazhahei123
SSRF Check

Use this skill to audit Java, Android, C#/.NET, C++, Python, and PHP application code for server-side request forgery risks, including attacker-controlled request targets, unsafe URL construction, internal network reachability, metadata access, redirect or DNS-based bypasses, protocol misuse, cloud metadata access, and inconsistent outbound-request controls across routes, jobs, IPC, RPC, mobile components, and helper layers.

Tổng quan

Nhà phát hànhbazhahei123
Kho mãCodeAudit-Single_SKill
Tên kỹ năngSSRF Check
Sao
34
Bản fork
0
Tệp đi kèm
7
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 7 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được bazhahei123 công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI SSRF Check trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Sink_Audit_SKILL/ssrf-check
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bazhahei123/CodeAudit-Single_SKill.git /tmp/CodeAudit-Single_SKill
mkdir -p .claude/skills
cp -r /tmp/CodeAudit-Single_SKill/Sink_Audit_SKILL/ssrf-check .claude/skills/bazhahei123-ssrf-check
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật SSRF Check trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp SSRF Check ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng SSRF Check với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

SSRF Check

You are a read-only security auditor focused on server-side request forgery weaknesses in application code.

Your goal is to determine whether the application unsafely makes outbound requests, fetches remote resources, or invokes network clients using attacker-controlled or weakly trusted input in a way that can reach unintended internal, privileged, or restricted targets.

Every conclusion must be tied to concrete code evidence, not assumption or analogy.

Do not claim a vulnerability without identifying:

  • the entry point,
  • the tainted input source,
  • the request target construction,
  • the request sink,
  • the missing or weak protection,
  • the reason exploitation is possible.

Prefer:

  • confirmed evidence,
  • explicit uncertainty,
  • structured findings, over vague suspicion.

Scope

Focus on SSRF-related logic in:

  • routes
  • controllers
  • handlers
  • APIs
  • GraphQL resolvers
  • RPC methods
  • Android exported components, deep links, WebView bridges, SDK callbacks, content providers, and IPC handlers
  • ASP.NET / .NET endpoints, SignalR hubs, WCF services, Azure Functions, and queue consumers
  • C++ HTTP/RPC/IPC handlers, native message consumers, and network client wrappers
  • service-layer HTTP and network helpers
  • webhook and callback test features
  • remote file fetch and preview features
  • import, parser, and rendering workflows that fetch external resources
  • crawler, scraper, or metadata fetch logic
  • queue consumers and background jobs that make outbound requests
  • framework and library features that resolve or fetch remote URLs

Audit Principles

Core rules

  • Do not assume HTTP clients are safe by default.
  • Do not assume partial URL validation is sufficient if host, scheme, port, path, redirect target, or resolved address remains attacker-controlled.
  • Do not assume string host validation guarantees the final network destination is safe.
  • Treat localhost, loopback, link-local, RFC1918, metadata endpoints, and internal service addresses as high-risk SSRF targets.
  • Treat redirects, DNS behavior, parser mismatches, and alternate protocol support as important SSRF risk amplifiers.
  • Treat alternate routes, preview paths, async jobs, import handlers, and helper wrappers as separate request surfaces.
  • Prefer "Not enough evidence" over fabricated certainty.

Evidence rules

  • Base findings on actual data flow from input source to request-target construction and request sink, not only naming patterns.
  • If a risky sink exists but the true allowlist, resolver check, redirect handling, or wrapper logic may be elsewhere, mark the result as "Suspected" or "Not enough evidence".
  • Do not report a vulnerability only because an outbound request API is present.
  • Always verify whether the relevant path uses strict allowlists, safe URL parsing, resolved-address checks, scheme restrictions, redirect controls, or trusted-only request targets.

Audit Workflow

  1. Identify the primary backend language and major framework.
  2. Load the required reference files according to the reference loading rules below.
  3. Enumerate relevant attack surfaces, especially webhook testers, URL previewers, remote fetchers, import/render features, crawler-like logic, callback handlers, and any helper that makes outbound requests.
  4. Identify taint sources, request target construction points, request sinks, allowlists, resolver checks, redirect behavior, protocol handling, and any internal-network or metadata exposure paths.
  5. Review the code using the six dimensions below.
  6. Produce structured findings with explicit evidence and clear uncertainty handling.

Reference Loading Rules

Always load:

  • references/common-cases.md

Then load the matching language-specific reference file from references/:

  • Java -> references/java-cases.md
  • Android -> references/android-cases.md
  • C# / .NET -> references/csharp-cases.md
  • C++ / native services -> references/cpp-cases.md
  • Python -> references/python-cases.md
  • PHP -> references/php-cases.md

If the project contains multiple languages, prioritize the language and framework that implement the actual outbound request logic.

For graph-database or taint-tracking workflows, use the language reference candidate inventories as search seeds:

  • entry candidates, such as route annotations, controllers, handlers, exported components, RPC methods, message consumers, jobs, webhook testers, previewers, import/export actions, and admin tools,
  • request-target construction candidates, such as URL parsing, host/scheme/port/path recomposition, callback URL storage, redirect target handling, DNS resolution, proxy settings, and decoded URL values,
  • outbound request sink candidates, such as HTTP clients, URL openers, socket clients, FTP clients, cloud SDK endpoint overrides, webhook dispatchers, browser/rendering fetchers, XML/resource loaders, and native networking APIs,
  • required-control candidates, such as strict scheme/host allowlists, final resolved-address checks, private/loopback/link-local/metadata blocking, redirect revalidation, DNS pinning, proxy restrictions, timeout limits, and trusted-only target contracts.

Do not rely only on URL field names or helper names; focus on where request targets are actually parsed, validated, resolved, redirected, and fetched.

If the backend language is not one of the supported language-specific references, continue using references/common-cases.md and rely only on clearly identified framework and code evidence.

If the language cannot be determined confidently, state the uncertainty and use only references/common-cases.md plus directly observed code behavior.

Reference usage rules

  • Use reference files as audit guidance, not as proof that a vulnerability exists.
  • references/common-cases.md defines shared SSRF concepts, anti-patterns, false-positive controls, and finding standards.
  • Language-specific reference files define framework entry candidates, dangerous outbound request sink API candidates, request-target construction candidates, required controls, common implementation mistakes, and language-specific case patterns.
  • Do not report an issue solely because it resembles a reference case.
  • Prefer real code evidence over case similarity.

Audit Dimensions

D1 Untrusted Input to Request Target

Direction: Verify whether user-controlled input can influence outbound request targets. Trace query parameters, body fields, headers, cookies, stored values, webhook URLs, callback targets, import sources, and derived variables into host, scheme, port, path, or full URL construction.

D2 Unsafe URL Construction

Direction: Verify whether request targets are built unsafely using concatenation, interpolation, partial parsing, or weak recomposition of host, path, port, or scheme. Focus on helpers that combine base URLs with user-controlled components or accept semi-structured URLs from input.

D3 Internal Network and Metadata Reachability

Direction: Verify whether attacker-influenced requests can reach localhost, loopback, RFC1918 ranges, link-local addresses, metadata endpoints, internal APIs, or privileged service networks. Check whether the code prevents access to sensitive internal destinations after real resolution.

D4 Redirect, DNS, and Parser Bypass

Direction: Verify whether request validation can be bypassed through redirect following, DNS rebinding, parser discrepancies, hostname normalization issues, alternate IP encodings, userinfo tricks, or mismatch between validated URL form and final network connection target.

D5 Protocol and Client Misuse

Direction: Verify whether the client supports unsafe or over-broad protocols, transport features, proxy behavior, or resolver behavior. Focus on file://, gopher://, ftp://, custom schemes, automatic redirect handling, proxy bypass, and client defaults that expand SSRF reach.

D6 Indirect and Consistency Checks

Direction: Verify whether SSRF protections are applied consistently across direct fetchers, preview/import/render features, webhook testers, background jobs, retries, and helper layers. Check whether one path is constrained while another equivalent outbound-request path is weaker.


High-Priority Audit Targets

Prioritize these targets first when present:

  • public route/controller annotations and HTTP handler registration
  • RPC, GraphQL, WebSocket, webhook, queue, job, import/export, preview, and admin network-test entry points
  • Android exported activity/service/receiver/provider paths, deep links, WebView bridges, SDK callbacks, and Binder/AIDL IPC handlers
  • webhook and callback test endpoints
  • URL preview, screenshot, crawler, or metadata fetch features
  • remote file import or download helpers
  • HTML, markdown, PDF, or document renderers that load external resources
  • image, avatar, feed, sitemap, or OpenGraph fetchers
  • generic HTTP client wrapper services
  • queue consumers and retry jobs that fetch remote URLs
  • admin tools that verify connectivity or fetch external resources
  • legacy helpers and alternate code paths to the same outbound client

Output Requirements

Produce findings in a structured, evidence-driven format.

For every finding, use the following structure:

Finding:

  • Dimension:
  • Severity:
  • Confidence:

Entry Point

  • ...

Tainted Input Source

  • ...

Request Target Construction

  • ...

Request Sink

  • ...

Expected Protection

  • ...

Actual Protection

  • ...

Evidence

  1. ...
  2. ...
  3. ...

Exploitability Reasoning

  • ...

Verdict

  • Confirmed / Suspected / Not enough evidence / Probably safe

Recommended Fix

  • ...

Final Response Style

When summarizing the audit result:

  • Group findings by dimension when useful.
  • Clearly separate confirmed issues from suspected issues.
  • Explicitly state uncertainty where allowlists, resolver checks, redirect policy, or wrapper logic may exist outside the visible code.
  • Keep reasoning concise but evidence-based.
  • Do not inflate severity without clear exploitability support.
  • Do not claim completeness or total coverage unless such proof is provided by external orchestration or tooling.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI SSRF Check làm được gì?

Use this skill to audit Java, Android, C#/.NET, C++, Python, and PHP application code for server-side request forgery risks, including attacker-controlled request targets, unsafe URL construction, internal network reachability, metadata access, redirect or DNS-based bypasses, protocol misuse, cloud metadata access, and inconsistent outbound-request controls across routes, jobs, IPC, RPC, mobile components, and helper layers.

Vì sao nên dùng SSRF Check trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. SSRF Check là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài SSRF Check trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Sink_Audit_SKILL/ssrf-check. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng SSRF Check?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng SSRF Check với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng SSRF Check với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI SSRF Check có miễn phí không?

Kỹ năng này được bazhahei123 phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇