Ssrf to internal service breach

From vigolium/vigolium · View interactive version

Ssrf to internal service breach is an AI agent skill from the GitHub repository vigolium/vigolium. Escalate a suspected or confirmed Server-Side Request Forgery into proof of internal-service access — cloud metadata, internal-only APIs, database greetings, or redacted-but-fetchable HTTP. Use when a parameter takes a URL (image proxy, webhook, fetcher, URL preview, PDF render) and the server reach

How to use this skill

Skill file

SSRF → Internal Service Breach

You have a parameter or endpoint that makes the server fetch a URL of

your choosing. Your job is to prove the server reaches an internal

target you, the external user, can't. Persist a finding sized by what

you actually reached, not by the existence of the SSRF.

When this skill applies

?callback=, ?fetch=, ?source=, ?preview=.

link preview / OG-tag fetchers, OAuth callback verifiers, image

thumbnailers, RSS importers, SSO redirect handlers.

error string, or response time that varies with the URL you supply.

Workflow

1. Confirm outbound reachability

Mint a canary with oast_mint (kind: ssrf-probe). Inject the canary

URL into the suspect parameter via replay_request. Poll with

oast_poll for 30-60 seconds.

confirmed with HTTP egress.

filter dropped the HTTP request after the lookup). Still useful as

exfil channel, but limits what you can do.

from the server. Move to step 2's targeted probes anyway — some SSRFs

only work against internal hosts.

remember the result as ssrf-egress.

2. Probe metadata services

Cloud metadata is the highest-impact target. Try in order; stop on the

first hit:

/latest/api/token first — most basic SSRFs can't do that, so skip.

(needs header Metadata-Flavor: Google; some SSRFs let you set

extra headers via the URL fragment or a chained redirect).

(needs Metadata: true header).

Look in the response for iam/security-credentials/ (AWS), project/

(GCP), instance/ (Azure). Credentials in metadata = critical

finding immediately.

3. Probe internal hosts and ports

If metadata doesn't reach (private cluster, no cloud), pivot to common

internal services. Use the URL parameter to hit http://127.0.0.1:<port>/

and http://localhost:<port>/:

reachable confirms exposure).

For TCP-only services (Redis, Postgres), send_raw_http lets you send

raw bytes if the SSRF supports gopher:// or dict:// schemes — most

do not. If only HTTP works, just confirming a 4xx/5xx with a

service-specific error string is enough to size the exposure.

4. Probe internal HTTP services and admin panels

oast_mint records prior crawls' hostnames. If you've seen

internal.app.local, admin.staging, prometheus, grafana,

vault, consul in any prior query_records output, try them via

the SSRF. Note the response.

5. Extract one credential / one config

If metadata or an admin panel returned data, extract ONE concrete

high-value item:

Mask the secret in the finding (AKIA****...****ABCD). **Do not use

the credential.** Reaching it is the proof; the next step (using it)

is post-engagement work, not part of the audit.

6. Persist the finding

report_finding:

token, or a database with admin connectivity.

target was filtered.

AWS IMDS; leaks IAM role credentials"`.

(HTTP callback observed), the highest-value internal target reached,

and one masked sample of what was extracted.

Pitfalls

metadata may belong to the worker, not the main app — still a

finding, just scope the title accordingly.

public IPs; if a literal 169.254.169.254 is blocked, try a

rebinding domain — but only with operator authorization (it

involves outside infra).

that "just returns 200/OK with no body" is harder to size — fall

back to time-based / OAST-based confirmation.

net/http, Node fetch). Don't burn time on gopher unless the target

is on libcurl / PHP.

Output expectations

request used (key: ssrf-proof).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.