agentleFS
fennihfennih/hunterkit/ssrf/SKILL.md

ssrf

Skill0 starsChanged 6 days agoMITView on GitHub

Focused hunt for Server-Side Request Forgery on a web target: URL parameters, webhooks, importers, PDF/image generators, redirects, and cloud metadata access. Use when the focus is SSRF or making the server fetch attacker-controlled URLs. Not for open redirects alone (report as leads) or general injection.

13 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use csrf, deserialization and 5 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • langbyyiSkill

    csrf

    CSRF testing playbook. Use when reviewing state-changing web flows, anti-CSRF defenses, SameSite behavior, JSON CSRF, login CSRF, and OAuth state handling.

    Also in 5 projects that use this

  • langbyyiSkill

    deserialization

    Insecure deserialization playbook. Use when Java, PHP, or Python applications deserialize untrusted data via ObjectInputStream, unserialize, pickle, or similar mechanisms that may lead to RCE, file access, or privilege escalation.

    Also in 4 projects that use this

  • yaklangSkill

    nosql-injection

    NoSQL injection playbook. Use when MongoDB-style operators, JSON query objects, flexible search filters, or backend query DSLs may allow data or logic abuse.

    Also in 4 projects that use this

  • yaklangSkill

    prototype-pollution

    Prototype pollution testing for JavaScript stacks. Use when user input is merged into objects (query parsers, JSON bodies, deep assign), when configuring libraries via untrusted keys, or when hunting RCE gadgets via polluted Object.prototype in Node or the browser.

    Also in 4 projects that use this

  • +2 more from langbyyi
  • +1 more from yaklang

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use only canary/callback targets you control for callbacks.

    line 25
  2. Distinctive:

    If the target validates the URL:

    line 43
  3. Very specific:

    No response reflection? Use: DNS canary, unique path per sink (/ssrf-webhook, /ssrf-avatar) to map which feature fired, response-time diffs …

    line 50
  4. Very specific:

    Write findings to findings/ssrf-<date>.md:

    line 59

“Common” is measured: kept by at least 6 in 10 of the 11 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

SSRF (Server-Side Request Forgery)

When to use

  • "Hunt SSRF on X", "test webhook/import/export features of X", "make the server fetch my URL"
  • OWASP coverage: A10 SSRF (and SFR in API Top 10)

When NOT to use

  • Pure open redirect (test here only as an SSRF vector, report separately as info/lead)
  • LLM fetch tools (use llm-security, which covers indirect SSRF via agents)

Inputs

  • Target: endpoints accepting URLs or filenames (from recon profile: [redirect], webhook, import, export features)
  • Canary: an outbound-observable endpoint you control (interactsh if installed, a public request-bin, or a DNS name you monitor)

Ground rules

  • Use only canary/callback targets you control for callbacks. Never point SSRF at third-party systems.
  • Cloud metadata probes are allowed but read-only, and prefer non-destructive paths.
  • A finding needs server-side proof: callback received, or metadata/unique content in the response.

Methodology

1. Enumerate URL sinks

Features that fetch: URL preview/unsplash-style embeds, webhooks, avatar-from-URL, import from URL (CSV/iCal), PDF/print of a URL, screenshot generators, RSS feed readers, SSO/OAuth redirect_uri (server-side fetch), "connect your site" verifications, file-from-URL uploads.

2. Basic canary

Submit your canary URL in each sink. Confirm a hit is from the server (UA header, source IP is the target's infra, not your browser). Record the full request the server made — headers it sent are valuable (some indicate internal service calls).

3. Scheme and target control

  • Schemes: file:///etc/passwd, file:///proc/self/environ (creds!), gopher:// (only if confirmed supported; gopher is powerful, use sparingly), dict://, ftp://, data:.
  • Internal hosts: http://localhost, 127.0.0.1, 169.254.169.254 (AWS/GCP metadata), metadata.google.internal, private ranges if scope explicitly allows the internal network.
  • AWS IMDSv2 check: try PUT /latest/api/token (no token header) — if it works, IMDSv1 may still be enabled.

4. Filter bypasses

If the target validates the URL:

  • DNS rebinding / TOCTOU (hostname resolves public then internal — note as advanced lead if simple bypasses fail).
  • Redirect-based: allowed URL that 302s to internal.
  • Encodings: decimal/octal/hex IPs (http://2130706433/), 0.0.0.0, 127.1, localtest.me, [::1], x.nip.io.
  • URL parser confusion: http://allowed.com#@internal/, http://allowed.com\@internal/, backslash tricks, http://internal/#allowed.com where the fetch follows the fragment differently.

5. Blind SSRF

No response reflection? Use: DNS canary, unique path per sink (/ssrf-webhook, /ssrf-avatar) to map which feature fired, response-time diffs between reachable/unreachable internal ports (small request counts).

6. Cloud metadata exploitation (when reachable)

  • AWS: http://169.254.169.254/latest/meta-data/iam/security-credentials/ — report role names + access key presence; do NOT exfiltrate or use the keys beyond listing unless the user asked. Never hardcode or store found keys in the report; reference them.
  • GCP: http://metadata.google.internal/computeMetadata/v1/ with header Metadata-Flavor: Google.
  • Report exposed metadata endpoints as high even without using the credentials.

Reporting

Write findings to findings/ssrf-<date>.md:

### [SEVERITY] Title
- Endpoint: method + URL + param
- CWE: CWE-918
- Evidence: callback log or response content proving server-side fetch (include the request the server made)
- Reproduction: numbered steps
- Impact: internal access, metadata/credentials, pivot

Internal-only blind SSRF = medium. Metadata/credentials reachable = high/critical.

Focus discipline

Open redirects found along the way: note as leads (often info). Don't chase full cloud credential abuse — report reachability and impact.

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.