← Lab /Security & privacy

LLM-integrated web apps can mediate classic attacks such as SSRF, SQLi, and XSS

LLMs act as a mediation layer that lets attacker-controlled input reach traditional web-application sinks, enabling attacks like SSRF, SQLi, XSS, etc.

Security & privacy arXiv 10 Aug 2026 Measurement Prototype evidence

Published as “From Prompt Injection to Web Exploitation: Revisiting Classic Vulnerabilities in LLM-Integrated Applications”

Why it matters

Prompt-level allow-list defenses are insufficient alone; robust application-level validation and network egress controls are needed to mitigate LLM-mediated web attacks.

Summary

LLM2SSRF attacks succeed against most models in a non-hardened setup, but a prompt-hardened configuration blocks all direct attacks while still allowing indirect attacks to succeed on some models. Susceptibility varies widely across LLMs, with Llama 3.3 reaching 10/10 success even after hardening, whereas Claude Opus 4.6 never succeeds. The evidence comes from a systematic evaluation of five attack scenarios across seven models, each run ten times.

What they found 3

  1. In the non-hardened variant, direct SSRF scenarios succeed against five of seven models, with near-ceiling success on Llama, Qwen, and DeepSeek.

    “Under the nonhardened variant, the four direct scenarios (DA1-DA4) succeeded against five of the seven models, typically at or near ceiling against three models (Llama, Qwen, DeepSeek), with more mixed behavior on GPT-two.”

  2. Prompt-hardened variant blocks all four direct attack scenarios across every model.

    “The prompt-hardened variant blocked all four direct scenarios across every model in the panel, as expected.”

  3. Hardening does not uniformly protect; it amplified attacks for Llama 3.3 (6/10 → 10/10).

    “The hardening did not behave consistently across models. While it blocked the attack for one model, it amplified it for another.”

Caveats 4

  • The same prompt-hardening that blocked direct attacks increased Llama 3.3's success rate from 6/10 to 10/10, showing that hardening can backfire.
  • Since the objective of the experiments was not to develop new jailbreaks against the underlying LLMs, but to study how tool-using agents can be coerced into issuing server-side requests, we did not further optimize these prompts against the models themselves.
  • When attempting to reproduce techniques similar to those used by Pedro et al. [16], we did not obtain successful results against the newer models considered in our study.
  • Future work will extend the TicketOracle testbed to additional vulnerability classes introduced in this paper, such as LLM2XSS and LLM2SQLi.

What’s new here 4

  • Systematizes a broad class of LLM-mediated web attacks (LLM2X) linking LLM output to classic web-app sinks.
  • Introduces the TicketOracle testbed for evaluating LLM-driven SSRF attacks in real web-app settings.
  • Provides empirical comparison of seven diverse LLMs under both non-hardened and prompt-hardened configurations.
  • Shows that prompt-level allow-list hardening can both block and unintentionally amplify attacks depending on the model.