agentleFS
silonxxsilonxx/hackbot/skills/hunt-ssrf/SKILL.md

hunt-ssrf

Skill0 starsChanged 3 months agoMITView on GitHub

SSRF (Server-Side Request Forgery) hunting methodology, including blind SSRF, filter bypass, and cloud-metadata escalation. TRIGGER: user is testing a feature that fetches a URL server-side (webhooks, URL import, image-from-URL, PDF/thumbnail render, integrations, link preview, video processing), hunting SSRF, or mentions Collaborator/interactsh OOB, 169.254.169.254, or internal network access.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep internal port scans light.

    line 100
  2. Distinctive:

    Run every candidate through triage-finding before writing it up.

    line 102

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

hunt-ssrf — Server-Side Request Forgery Hunting

You are assisting an authorized bug bounty hunter under a program's published policy. SSRF is a high-value class they haven't reported yet — top disclosed SSRF reports pay $2k-$17k because impact escalates fast (cloud creds, internal network, RCE). Teach them to find the URL-fetch sink, prove it, and escalate impact responsibly. (Depth: cloned hackerone-reports/tops_by_bug_type/TOPSSRF.md.)

Core philosophy

SSRF = you make the SERVER send a request of your choosing. The bug is finding a feature that fetches a URL server-side; the BOUNTY is what that server can reach that you can't — cloud metadata, internal services, localhost admin panels. Low effort to find the sink, high skill to escalate. Always separate "it made a request" (proof) from "here's the damage" (impact).

Where the URL-fetch sink hides (hunt these features)

From the top reports, SSRF lives in features that take a URL/host and fetch it:

  • Webhooks / callbacks / notify_url (Omise webhook -> AWS keys; HackerOne webhook; Razer notify_url).
  • "Import from URL" / project import / attachment by URL (GitLab remote_attachment_url -> $10k; FogBugz import).
  • Image/file "add from URL" / upload-by-URL (Shopify add-image-from-URL; Instacart; Discourse; imgur).
  • Document/PDF/thumbnail/screenshot renderers (Slack office-file thumbnails -> $4k; DoD PDF generator -> $4k; PlayStation image renderer).
  • Analytics / report / expense features (Lyft expense report; HackerOne analytics).
  • Integrations (Twilio, Jira, GitHub, Zapier — often blind).
  • Link preview / unfurl (Reddit matrix preview_link -> $6k; LINE preview).
  • Video/media processing (FFmpeg HLS -> SSRF + local file read on TikTok, WordPress, Pornhub).
  • XML/SVG parsing (XXE -> SSRF: Rockstar emblem editor, Zivver SVG upload).
  • Sentry / error-tracking misconfig = recurring free blind SSRF (HackerOne, NordVPN, Cloudflare). Param names to grep for: url, uri, link, src, source, dest, redirect, callback, webhook, feed, host, port, image_url, remote, import, path, proxy, fetch, u.

Discovery methodology

Step 1 — Inventory URL-input sinks

From recon/JS extraction, list every param/feature that could take a URL. Include hidden ones from JS and API docs.

Step 2 — Set up out-of-band detection FIRST

Blind SSRF is the majority. Use Burp Collaborator or interactsh (interactsh- client) to get a unique callback host. Put it in the sink and watch for DNS/HTTP interaction. OOB interaction = confirmed SSRF even with no response shown.

Step 3 — Classify: full-read vs blind

  • Does the response return the fetched content (full-read, higher impact) or nothing (blind)? Test by pointing at a resource with a distinctive body.

Step 4 — Escalate impact (this is the report)

In rough order of value:

  • Cloud metadata (the money shot): http://169.254.169.254/latest/meta-data/ (AWS), http://metadata.google.internal/ (GCP, needs Metadata-Flavor: Google). Retrieve IAM/instance creds -> describe the access they grant.
  • Internal services / admin: localhost + internal IPs (127.0.0.1, 169.254.x, 10.x, 172.16-31.x, 192.168.x), common admin ports (Docker 2375, k8s, Grafana, Jenkins, Redis, Elasticsearch, Jolokia).
  • Internal port scan / network enumeration (blind): infer open ports from timing/status via the OOB channel — keep it light.
  • Local file read: file:// where the fetcher allows it (SSRF + LFR).
  • SSRF -> RCE chains: internal service with a known exploit (Jolokia, fastCGI, Confluence) — demonstrate reachability; DO NOT run destructive exploits (see guardrails).

Step 5 — If filtered, bypass (top-report techniques)

Allowlist/denylist and SSRF-guard bypasses that actually worked:

  • DNS rebinding (Nextcloud, Bitwarden, PortSwigger) — TTL-0 host that resolves public then internal.
  • Redirect to internal — your URL 301/302s to 169.254.169.254 (Open-Xchange, Infogram).
  • IP encoding — decimal/octal/hex IPs, IPv6 [::1], IPv4-mapped IPv6, NAT64 prefix 64:ff9b::, 127.1, 0.0.0.0.
  • Parser confusion — trailing dot, @ in authority, double brackets, protocol- relative URLs, #/? tricks (Stripe Smokescreen, curl host-confusion bugs).
  • Alternate protocols — gopher:// (can forge full TCP requests -> internal RCE), dict://, file://, git://.

Impact demonstration

  • Blind: show the OOB interaction (DNS/HTTP hit from the target's IP).
  • Full-read: show the internal-only resource content or metadata response — capture ONE proof (e.g. the metadata creds exist), then stop.
  • Escalation: state what the creds/internal service grant; explain the chain.

Scope & ethics guardrails (SSRF touches internal infra — be careful)

  • Prove the SSRF and capture minimal evidence. Do NOT pivot deep into the internal network, exfiltrate data, or pillage internal services.
  • Cloud metadata creds: retrieving them proves impact. Do NOT use them to access the cloud account, list buckets, or read real data — that's unauthorized access. Report the credential exposure.
  • SSRF -> RCE: demonstrate you can REACH the internal service; do not run a destructive/state-changing exploit against live infra. Explain the chain instead.
  • Keep internal port scans light; no aggressive/DoS-level scanning.
  • Confirm the asset is in scope. If the SSRF reaches a third party, stop and ask.
  • Run every candidate through triage-finding before writing it up.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.