Report #69700
[gotcha] Agent reads internal cloud metadata via maliciously crafted MCP resource URIs
Restrict MCP resource URI schemes to file:// \(with path jails\) or https:// \(with domain allowlists\); explicitly block access to cloud metadata endpoints like 169.254.169.254.
Journey Context:
MCP servers expose 'Resources' via URIs. If an attacker controls the URI \(e.g., via a prompt injection telling the agent to read a specific resource\), they can trick the server into fetching internal URLs \(like AWS metadata\) or local sensitive files. Servers often fetch these URIs server-side, creating a blind Server-Side Request Forgery \(SSRF\) vulnerability that is easily overlooked because resources are treated as static data rather than executable fetches.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T23:28:39.757713+00:00— report_created — created