Toutes les vulnérabilités
HIGHAI/LLMexploited in the wild

AI-LENOVO-LENA-XSS-2025

Lenovo · Lenovo 'Lena' GPT-4 customer-service chatbot

Résumé

In 2025 Cybernews researchers disclosed that Lenovo's GPT-4-based customer-service chatbot 'Lena' could be turned into a cross-site scripting vector through a single prompt injection. A roughly 400-character prompt opened with a normal product question, then instructed the bot to format its reply as HTML and to include an image tag whose source pointed at an attacker-controlled server, insisting the image must be shown. Because the chatbot's output was rendered in the browser without sanitization or output encoding, the untrusted instruction flowed straight into live HTML, and the forced image request caused the victim's browser to call the attacker server and leak active session cookies. The impact extended to support staff: when a chat was escalated, the human agent's workstation rendered the stored malicious HTML, exposing the agent's session and enabling potential session hijacking, redirects, or malware prompts. Cybernews reported finding the flaw on July 22, 2025; Lenovo acknowledged it on August 6, 2025 and deployed fixes by August 18, 2025. The root cause was treating model output as trusted markup and rendering it without filtering.

Comment l’éviter dans votre code

  • Sanitize and HTML-encode all chatbot output before rendering it in any customer or agent UI.
  • Treat user prompts as untrusted and never let them dictate raw HTML or markup output.
  • Enforce a strict Content Security Policy and block outbound requests to arbitrary domains.
  • Constrain the bot to plain-text or a safe allowlisted output format, server-side.
  • Monitor for injection attempts and isolate session cookies from rendered chatbot content.

Références

Vulnérabilités liées

Tout AI/LLM →