Logo SSRF Source Check

SSRF Source Check

Cộng đồng
bazhahei123
SSRF Source Check

Use this skill to identify source points for server-side request forgery audits, including URL parameters, host and path selectors, callback and webhook targets, remote fetch inputs, import and preview URLs, redirect-controlled values, DNS-sensitive hostnames, protocol selectors, proxy settings, stored callback URLs, queued fetch jobs, Android mobile/IPC/WebView request sources, native/RPC request sources, and framework-specific outbound request source locations in Java, Android, C#/.NET, C++, Python, and PHP applications.

Tổng quan

Nhà phát hànhbazhahei123
Kho mãCodeAudit-Single_SKill
Tên kỹ năngSSRF Source 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 Source 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/Source_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/Source_Audit_SKILL/ssrf-check .claude/skills/bazhahei123-ssrf-source-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 Source 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 Source 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 Source 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 Source Check

You are a read-only security auditor focused on identifying source points that are relevant to server-side request forgery review.

Your goal is to determine where outbound-request-relevant data enters the application and how it is carried toward URL construction, host selection, scheme selection, port selection, path construction, redirect handling, DNS resolution, proxy behavior, HTTP clients, network clients, remote fetchers, previewers, importers, renderers, webhook testers, and background fetch jobs.

Every source point must be tied to concrete code evidence, not assumption or naming alone.

Do not claim a vulnerability only because a source point exists. A source point is an audit starting point. A vulnerability requires later proof that attacker-controlled or weakly trusted data can influence a server-side request target without adequate allowlisting, URL parsing, resolved-address checks, scheme restrictions, redirect controls, or trusted-target guarantees.

Do not record a source point without identifying:

  • the entry point,
  • the source value or outbound-request-relevant payload,
  • whether the value is client-controlled, external-system-controlled, stored attacker-influenced, server-trusted, mixed, or unclear,
  • the downstream SSRF relevance,
  • the code evidence that connects the source to request target construction, URL parsing, host/path/scheme selection, stored callback use, redirect behavior, remote fetch wrappers, or outbound request clients.

Prefer:

  • confirmed source points,
  • explicit uncertainty,
  • structured source inventories, over vague suspicion.

Scope

Focus on SSRF source points in:

  • routes
  • controllers
  • handlers
  • APIs
  • GraphQL resolvers
  • RPC methods
  • Android exported components, deep links, WebView bridges, SDK callbacks, content providers, Binder/AIDL handlers, push handlers, and WorkManager jobs
  • ASP.NET / .NET controllers, Razor Pages, minimal APIs, SignalR hubs, gRPC/WCF services, Azure Functions, queue consumers, and hosted workers
  • C++ HTTP/RPC/WebSocket/IPC handlers, socket/message consumers, native network wrappers, CLI/admin tools, and cloud SDK endpoint configuration paths
  • service-layer HTTP and network helpers
  • webhook and callback test features
  • remote file fetch and preview features
  • URL preview, screenshot, crawler, scraper, metadata, OpenGraph, avatar, feed, sitemap, import, parser, and renderer workflows
  • queue consumers and background jobs that make outbound requests
  • framework and library features that resolve or fetch remote URLs
  • stored callback, webhook, integration, and external-resource configuration paths

Audit Principles

Core rules

  • Do not treat a source point as a vulnerability by itself.
  • Do not assume an HTTP client, wrapper, or framework helper makes every target source safe.
  • Do not assume scheme-only validation, string host checks, URL parsing, or regex validation makes a source trusted.
  • Do not assume stored callback URLs, webhook targets, import URLs, preview URLs, or admin-only URL fields are trusted.
  • Treat request path, query, body, header, cookie, GraphQL variable, RPC argument, form value, uploaded metadata, and import row values as client-controlled unless code proves otherwise.
  • Treat queue messages, webhook payloads, job arguments, external service responses, and integration payloads as external-system-controlled until origin and integrity are verified.
  • Treat stored callback URLs, webhook targets, remote resource URLs, saved crawler targets, integration endpoints, provider URLs, and queued fetch targets as stored attacker-influenced when an attacker can write or influence them earlier.
  • Treat full URL, host, hostname, IP, scheme, port, path, query string, redirect target, proxy target, DNS name, and protocol selector sources as high-priority.
  • Treat values that can name localhost, loopback, link-local, private network ranges, cloud metadata endpoints, or internal service aliases as high-priority source values when they are client-controlled or weakly trusted.
  • Prefer "Not enough evidence" over fabricated certainty.

Evidence rules

  • Base source classification on actual code paths, not only parameter names.
  • If a value may be allowlisted, mapped to a trusted endpoint, parsed and revalidated, resolved and checked, constrained, or overwritten elsewhere, mark the source as "Suspected" or "Not enough evidence".
  • Do not classify an SSRF source as trusted only because it passes through a network wrapper, URL helper, webhook service, or integration service.
  • Always verify whether the value comes from request input, uploaded metadata, stored state, queue metadata, framework routing, trusted configuration, or trusted server-side construction.
  • Record downstream use only when visible in the inspected code path.

Audit Workflow

  1. Identify the primary backend, mobile, or native language, framework, and outbound request libraries.
  2. Load references/common-cases.md.
  3. Load the matching language reference file from references/.
  4. Enumerate relevant source surfaces, especially webhook testers, callback configuration, URL previewers, screenshotters, crawlers, remote image/file loaders, import/render features, metadata fetchers, sitemap/feed readers, integration connectors, queue jobs, and generic HTTP helper services.
  5. Identify outbound-request-relevant source points, such as full URLs, hostnames, IPs, schemes, ports, paths, query strings, callback targets, redirect sources, proxy settings, internal-service target values, metadata endpoint values, stored endpoint records, and queued fetch payloads.
  6. For each source point, determine whether it is client-controlled, external-system-controlled, stored attacker-influenced, server-trusted, mixed, or unclear.
  7. Trace each source far enough to document downstream SSRF relevance, such as URL parsing, URL construction, host/path recomposition, outbound client calls, redirect-following clients, stored callback replay, renderer resource loading, or network wrapper calls.
  8. For graph-database or taint-tracking workflows, use the language reference candidate inventories as search seeds and then prune by real code evidence.
  9. Review the code using the six source dimensions below.
  10. Produce structured source points 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, URL parsing, redirect handling, proxy routing, renderer fetch, or endpoint override logic.

For Android, use the Android reference when the app accepts mobile-controlled targets from exported components, deep links, WebView bridges, IPC, SDK callbacks, content providers, push payloads, or local jobs and then makes app-side requests or forwards targets to backend/network SDK logic.

Do not rely only on URL field names or helper names; focus on where request targets are actually received, parsed, normalized, 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 source discovery guidance, not as proof that a vulnerability exists.
  • references/common-cases.md defines shared SSRF source concepts, source categories, trust boundaries, propagation patterns, false-positive controls, and source output standards.
  • Language-specific reference files define framework source locations, high-coverage candidate search terms, outbound-request source shapes, language-specific client APIs, and follow-up checks.
  • Do not report an issue solely because it resembles a reference case.
  • Prefer real code evidence over case similarity.

Graph and Taint Source Discovery Guidance

Use candidate names as search seeds, not proof. A candidate becomes a source point only when code evidence shows it can influence request-target construction, URL parsing, URL recomposition, host/scheme/port/path selection, redirect behavior, DNS-sensitive target choice, proxy/client options, stored callback replay, renderer imports, or outbound request wrappers.

Candidate group A: entry and transport surfaces

Search for externally reachable or weakly trusted entry points that may carry outbound-request-relevant values:

  • HTTP route/controller annotations and handlers
  • GraphQL resolvers and variables
  • RPC/gRPC/WCF service methods
  • WebSocket and SignalR handlers
  • webhook handlers and partner callbacks
  • queue consumers, scheduled jobs, workflow runners, import jobs, retry/replay jobs, and admin tools
  • Android exported components, deep links, app links, share targets, content providers, WebView bridges, Binder/AIDL handlers, push callbacks, and WorkManager inputs
  • C++ socket, pipe, DBus, custom IPC, HTTP/RPC, and message-bus handlers
  • CLI/admin/connectivity-test commands when arguments can be supplied by users, operators, tenants, or integrations

Candidate group B: direct request target sources

Search for values that may represent a complete request target:

  • url, uri, target, targetUrl, requestUrl, remoteUrl, externalUrl
  • callback, callbackUrl, webhook, webhookUrl, redirectUrl, returnUrl
  • previewUrl, imageUrl, avatarUrl, fileUrl, downloadUrl, uploadUrl
  • importUrl, feedUrl, sitemapUrl, metadataUrl, openGraphUrl, rssUrl
  • endpoint, baseUrl, serviceUrl, providerUrl, tenantUrl, integrationUrl

Candidate group C: partial URL and destination selectors

Search for values that may select the final network destination after recomposition:

  • host, hostname, domain, ip, address, service, serviceName
  • scheme, protocol, port, path, route, query, fragment
  • bucketEndpoint, endpointOverride, regionEndpoint, proxyHost, proxyUrl
  • localhost, 127.0.0.1, ::1, 169.254.169.254, metadata, internal
  • base, resource, objectKey, filePath, assetPath, tenantEndpoint

Candidate group D: URL construction, parsing, and normalization sources

Search for code that copies or transforms source values before request use:

  • URL parsing helpers and URI builders
  • concatenation, interpolation, format strings, joins, path normalization, and URL encoding/decoding
  • base64 or percent-decoded target values
  • userinfo, encoded host, alternate IP format, IPv6 bracket, and punycode handling
  • validation on one URL object followed by fetching a recomposed or differently parsed target

Candidate group E: stored, callback, and integration sources

Search for values written earlier and fetched later:

  • webhook registrations, callback URLs, tenant endpoints, integration base URLs, provider endpoints, and connector settings
  • saved crawler targets, preview records, import jobs, report assets, remote templates, and object metadata
  • queue payloads, scheduled job arguments, retry/replay data, webhook delivery records, and sync state
  • admin connectivity tests, diagnostics, and custom endpoint configuration

Candidate group F: indirect fetch and client-option sources

Search for values that influence non-obvious outbound requests:

  • HTML/PDF/document/markdown renderers, browser automation, screenshot tools, OpenGraph parsers, image loaders, feed/sitemap parsers, XML parsers, and archive/import tools
  • redirect-following flags, proxy settings, no-proxy lists, DNS resolver overrides, timeout settings, TLS/hostname verification flags, allowed protocol lists, and stream wrapper options
  • cloud SDK endpoint overrides, storage client service URLs, registry endpoints, package/cache mirrors, and internal-service aliases

Graph query recipes

Useful source-discovery combinations:

text
<entry candidate> + <url/host/source field> + <URL construction keyword>
<entry candidate> + <callback/webhook/integration source> + <stored record or worker>
<stored target source> + <retry/job/report/import entry> + <HTTP/network wrapper>
<renderer/importer/preview source> + <remote resource field> + <fetch/render keyword>
<proxy/protocol/client-option source> + <request wrapper/client builder>
<Android exported/WebView/IPC entry> + <Intent/Uri/Bundle source> + <network/backend SDK target>
<C++ HTTP/RPC/IPC entry> + <std::string/QUrl/Poco::URI target> + <native network wrapper>

Prune candidates when code proves the value is fixed server-side, strictly mapped to a trusted endpoint, only used as a display label, or unrelated to request-target construction, parsing, redirect behavior, DNS resolution, proxy/client options, render/import fetching, or outbound request execution.


Source Dimensions

S1 Direct Request Target Sources

Direction: Identify request parameters, body fields, headers, cookies, route variables, GraphQL/RPC arguments, form values, uploaded metadata, import rows, and external payload values that may become full URLs, hosts, IPs, ports, paths, schemes, or outbound request targets.

S2 URL Construction and Recomposition Sources

Direction: Identify values used to concatenate, interpolate, format, join, normalize, parse, or recombine schemes, hosts, ports, paths, query strings, base URLs, callback URLs, resource URLs, and network request targets.

S3 Callback, Webhook, Integration, and Stored Target Sources

Direction: Identify callback URLs, webhook endpoints, integration base URLs, provider endpoints, saved crawler targets, remote resource references, stored fetch URLs, queued fetch payloads, retry/replay targets, and admin-configured endpoint records.

S4 Redirect, DNS, Parser, and Final-Destination Sources

Direction: Identify values that influence redirect targets, DNS names, host normalization, URL parser output, userinfo parsing, encoded hosts, alternate IP formats, localhost or loopback names, private-network addresses, link-local or cloud metadata endpoints, final resolved addresses, and mismatch-prone validation or fetch paths.

S5 Protocol, Client Option, Proxy, and Transport Sources

Direction: Identify values that influence schemes, protocols, ports, proxies, no-proxy behavior, redirect-following options, timeout behavior, TLS/hostname verification, stream wrappers, file/resource protocols, and client wrapper defaults.

S6 Indirect Fetch, Renderer, Import, and Alternate Path Sources

Direction: Identify source points in previewers, screenshotters, crawlers, OpenGraph metadata fetchers, image/avatar/feed/sitemap loaders, document/PDF/HTML/markdown renderers, remote importers, background jobs, and helper layers that may fetch URLs indirectly.


High-Priority Source Targets

Prioritize these source targets first when present:

  • webhook and callback test inputs
  • URL preview, screenshot, crawler, metadata, and OpenGraph inputs
  • remote file, image, avatar, feed, sitemap, document, and import URLs
  • HTML, markdown, PDF, office, or document renderers that load external resources
  • generic HTTP client wrapper service inputs
  • localhost, loopback, private-network, link-local, cloud metadata, and internal-service target inputs
  • stored callback URLs, integration endpoints, provider base URLs, and tenant-configured endpoints
  • queue consumers, retries, and background jobs that fetch stored or queued URLs
  • admin tools that verify connectivity or fetch external resources
  • redirect sources and client configurations that follow redirects
  • legacy helpers and alternate code paths to the same outbound client

Output Requirements

Produce source points in a structured, evidence-driven format.

For every source point, use the following structure:

Source Point:

  • Dimension:
  • Source Type:
  • Language / Framework:
  • Confidence:

Entry Point

  • ...

Source Location

  • ...

Source Value

  • ...

Trust Boundary

  • Client-controlled / External-system-controlled / Stored attacker-influenced / Server-trusted / Mixed / Unclear

Downstream SSRF Relevance

  • ...

Evidence

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

Audit Relevance

  • ...

Verdict

  • Confirmed source / Suspected source / Not enough evidence / Probably irrelevant

Recommended Follow-up

  • ...

Final Response Style

When summarizing the source audit result:

  • Group source points by dimension when useful.
  • Clearly separate confirmed source points from suspected source points.
  • Explicitly state uncertainty where origin, URL parsing, host validation, resolved-address checks, redirect policy, DNS behavior, protocol restrictions, proxy behavior, wrapper logic, stored target writers, or final request behavior may exist outside the visible code.
  • Keep reasoning concise but evidence-based.
  • Do not inflate a source point into a vulnerability without downstream request and missing-control evidence.
  • 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 Source Check làm được gì?

Use this skill to identify source points for server-side request forgery audits, including URL parameters, host and path selectors, callback and webhook targets, remote fetch inputs, import and preview URLs, redirect-controlled values, DNS-sensitive hostnames, protocol selectors, proxy settings, stored callback URLs, queued fetch jobs, Android mobile/IPC/WebView request sources, native/RPC request sources, and framework-specific outbound request source locations in Java, Android, C#/.NET, C++, Python, and PHP applications.

Vì sao nên dùng SSRF Source 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 Source 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 Source 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/Source_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 Source 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 Source 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 Source 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 Source 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 👇