Eurostar AI vulnerability: When a chatbot goes off the rails
The Eurostar AI chatbot had weak server-side enforcement of guardrails and unvalidated conversation and message IDs, allowing an attacker to bypass guardrails, extract system prompts via prompt injection, and inject HTML leading to self-XSS. An attacker could exfiltrate prompts, steer answers, and run script in the chat window.
pentestpartners.com
Published on pentestpartners.com
I first encountered the chatbot as a normal Eurostarcustomer while planning a trip. When it opened, it clearly told me that “the answers in this chatbot are generated by AI”, which is good disclosure but immediately raised my curiosity about how it worked and what its limits were.
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 server only verified the signature of the latest message in the chat history and did not re-validate or cryptographically bind older messages, and it also failed to validate conversation and message IDs and sanitise model output.
Impact
An attacker could bypass guardrails, extract the system prompt, and inject HTML to run script in the chat window (self-XSS), with a plausible path to stored XSS if conversation IDs are reused, though cross-user compromise was not tested.
What the attacker needed
Access to the chatbot; ability to intercept API requests
The fix
The vulnerabilities were eventually fixed, and the report recommends binding guard results, message content, IDs, and conversation IDs in a server-verified signature, validating IDs server-side, and sanitising model output.
How it was found
- Intercept the chatbot API traffic to see the chat history structure.
- Set the latest message to a harmless or empty string to pass the guardrail and get a valid signature.
- Modify an earlier message in the chat history to contain a prompt injection payload.
- Send the request; the server accepts the modified history and passes it to the model.
- The model follows the injected instructions, revealing its model name and system prompt.
- Further inject HTML via the model output, which is rendered unsanitised, causing self-XSS.
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.
A chatbot on a train booking site used an AI model to answer questions. The site tried to block bad questions with a filter, but the filter only checked the newest message and trusted older messages without rechecking. This let a user sneak bad instructions into older messages, trick the AI into revealing its hidden instructions, and even make it output harmful code that ran in the browser.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.