Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add makifbaysal/tasktrooper --skill ssrf-and-url-allowlistsgit clone --depth 1 https://github.com/makifbaysal/tasktrooperWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/makifbaysal/tasktrooper/ssrf-and-url-allowlists)<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/ssrf-and-url-allowlists"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/ssrf-and-url-allowlists/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/ssrf-and-url-allowlists"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/ssrf-and-url-allowlists.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00059 | $0.01727 |
| Opus 5.5 | $0.00024 | $0.00691 |
| Sonnet 5.5 | $0.00012 | $0.00345 |
| Haiku 4.5 | $0.00006 | $0.00173 |
Grade C, and why
ssrf-and-url-allowlists scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Cloud metadata endpointhighServer-side request forgery
One request to 169.254.169.254 can return temporary IAM credentials.
- Cloud metadata raises severity: AWS IMDSv1 (`http://169.254.169.254/latest/meta-data/iam/security-credentials/`) answers a plain GET with credentials. IMDSv2 (PUT-token), GCP (`Metadata-Flavor: Google`) and Azure (`Met Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- Reporting `fetch(userUrl)` in a React component. How it starts
The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SSRF and URL Allowlists
Overview
Server-side request forgery turns your server into the attacker's network client — inside your VPC, past your firewall, next to the cloud metadata service. Since OWASP Top 10:2025 it sits under A01 Broken Access Control (CWE-918).
Core principle: validate the address you actually connect to, after DNS, on every hop — not the string the user typed.
1. Is It a Finding?
- The attacker must control the scheme or host (or the whole URL). Path-only control on a fixed host is excluded.
- The fetch happens server-side. SSRF in browser or mobile client code is not a finding.
- Impact: response returned to the attacker (full read), or side effects on internal services (blind). Blind SSRF still matters when internal endpoints act on GET.
- Cloud metadata raises severity: AWS IMDSv1 (
http://169.254.169.254/latest/meta-data/iam/security-credentials/) answers a plain GET with credentials. IMDSv2 (PUT-token), GCP (Metadata-Flavor: Google) and Azure (Metadata: true) require a header a simple SSRF usually cannot set — check what the deployment runs before calling it CRITICAL.
2. Allowlist Bypasses
// ❌ substring: "https://example.com.evil.net" and "https://evil.net/?x=example.com" pass
if (!url.includes("example.com")) throw new Error("blocked");
// ❌ suffix without a dot boundary: "https://evilexample.com" passes
if (!new URL(url).hostname.endsWith("example.com")) throw ...
// ❌ regex with an unescaped dot and no end anchor: "https://api.example.com.evil.net"
if (!/^https:\/\/api.example.com/.test(url)) throw ...
// ✅ parse once, compare exact host (or a dot-bounded suffix), fixed scheme
const u = new URL(url);
const ok = u.protocol === "https:" && (u.hostname === "example.com" || u.hostname.endsWith(".example.com"));
Parser tricks that defeat string checks:
- Userinfo:
https://[email protected]/— the host isevil.net. - Backslash and parser differentials:
https://evil.net\@example.com/— validators and HTTP clients disagree (WHATWG vs RFC 3986). Validate with the same parser the fetcher uses, or better, the fetcher's resolved address. - Base-URL resolution:
new URL(userPath, base), Pythonurljoin(base, user)and JavaURI.resolvelet//evil.net/xor a fullhttps://evil.netreplace the base host.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 102 lines · 59 tokens per session scan C 689c5315c8f0
ssrf-and-url-allowlists is a skill published in the GitHub repository makifbaysal/tasktrooper (113 stars, last pushed yesterday), licensed Apache-2.0. It adds 59 tokens to every session and 1,727 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 2 findings (cloud metadata endpoint, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-09.
Other skills, from other repositories
agent-crdt-synchronizer
Agent skill for crdt-synchronizer - invoke with $agent-crdt-synchronizer.
agent-quorum-manager
Agent skill for quorum-manager - invoke with $agent-quorum-manager.
agent-dev-backend-api
Agent skill for dev-backend-api - invoke with $agent-dev-backend-api.
agent-docs-api-openapi
Agent skill for docs-api-openapi - invoke with $agent-docs-api-openapi.
agent-gossip-coordinator
Agent skill for gossip-coordinator - invoke with $agent-gossip-coordinator.
agent-raft-manager
Agent skill for raft-manager - invoke with $agent-raft-manager.