Skip to content
SSRF Write-up Advanced

SSRF via Stored Profile Data in an AI Chatbot — A Real-World Case Study

Stored profile data consumed by an AI chatbot was later interpreted as instructions, causing the server-side AI processing layer to make outbound HTTP requests to an attacker-controlled host. An attacker could use this to probe internal services or reach cloud metadata, though the text only demonstrates a proof-of-concept callback.

Xp10it Follow

Published on medium.com

They summarize policies. They guide users through workflows.

Xp10it, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the AI processing layer was allowed to act on the meaning of stored user-controlled profile text without a strict boundary preventing outbound network requests.

Impact

The server-side request could enable internal service probing, cloud metadata access and unauthorised outbound requests, and may be chained into broader compromise; the text only demonstrates a proof-of-concept callback.

What the attacker needed

Ability to store profile data; chatbot later processes stored profile; attacker-controlled external listener

The fix

AI components should not implicitly fetch external resources, stored user data should be treated as untrusted context, network access from AI processing layers should be restricted, prompt interpretation should be sandboxed from execution, and outbound requests should be explicitly whitelisted and…

How it was found

  1. Craft a semantically valid instruction resembling configuration or diagnostic guidance, including a controlled external reference.
  2. Submit the prompt through the normal chatbot interface so it is stored as profile context.
  3. Wait; nothing happens immediately.
  4. When the chatbot later processes the stored profile data, it interprets and acts on the context.
  5. Observe inbound requests arriving at the external listener from the server-side environment.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

An AI chatbot read text a user had saved in their profile and treated part of it as an instruction to fetch a web address. The request came from the company's own server, not the user's browser, so it can be used to reach systems the user cannot see directly. This is called server-side request forgery (SSRF): tricking a server into making requests on your behalf.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

More by Xp10it

View all

5 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.