SSRF via LLM URL Generation

Turn LLM-generated URLs into server-side requests against internal services.

What you practise

Turn model-generated URLs into internal network access. You run the attack yourself on a live model in a private sandbox set up for you, then capture the flag. Nothing to install and no API key.

Filters on the wrong side of the laundromat

Putting a filter on user input assumes the user is the source of dangerous strings. The moment an LLM sits in between, the user's *intent* is what flows through, the actual strings are regenerated by the model. Every filter has to be on the *output* of the last untrusted stage before it reaches the dangerous sink. For SSRF, that means filtering the URL the LLM emits, not the question the user asks.

Where this has happened

  • Capital One breach (2019): Paige Thompson exploited SSRF in a WAF to hit AWS IMDSv1 at 169.254.169.254, stole IAM credentials, exfiltrated 100M+ customer records. Drove the industry to IMDSv2.
  • ChatGPT browsing + plugins (2023): Early plugins fetched LLM-generated URLs; researchers demonstrated cookie theft and internal-service probing through indirectly worded prompts.
  • Anthropic Claude computer-use (2024): Computer-use mode emits actions including URL navigation; same shape, the action is generated by the LLM and executed by the harness without an independent allowlist.

Sign in to launch this lab Learn the theory in the Academy

More Knowledge & Retrieval labs

Attack labs

20 hands-on scenarios across 4 tracks. Pick a target, launch a private sandbox, capture the flag.

Active sessions

Resume a running lab or stop it before starting the next one.