<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ThisIsOne</author_name>
  <author_url>https://blog.hatena.ne.jp/ThisIsOne/</author_url>
  <blog_title>Shikata Ga Nai</blog_title>
  <blog_url>https://cysec148.hatenablog.com/</blog_url>
  <categories>
    <anon>Web Security Academy</anon>
    <anon>LLM attacks</anon>
  </categories>
  <description>Hello there, ('ω')ノ なぜこの攻撃が成立するのか（最初に“絵”をつかむ） チャットUIは LLMが生成したテキストを innerHTML 的に描画している。 → 出力のサニタイズ不足。 LLM は product_info のような 関数（ツール）経由で「商品名やIDを渡すとレビューなどの情報」を取得し、それを要約＋引用して回答を組み立てる。 → 外部コンテンツ（レビュー）が LLM の回答に混ざる。 レビュー投稿面は直接のXSSを エスケープして防いでいるが、LLM がそれを“文字列として”復元して回答に貼ってしまうことがある。 → 入力は安全でも、出力で爆発。 この三点が…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcysec148.hatenablog.com%2Fentry%2F2025%2F09%2F14%2F144405&quot; title=&quot;Lab: Exploiting insecure output handling in LLMs - Shikata Ga Nai&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-09-14 14:44:05</published>
  <title>Lab: Exploiting insecure output handling in LLMs</title>
  <type>rich</type>
  <url>https://cysec148.hatenablog.com/entry/2025/09/14/144405</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
