<?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, ('ω')ノ 背景 アプリケーションは「製品レビュー」を LLM に読み込ませ、ユーザーの質問に答える仕組み。 問題は LLMの最終出力がブラウザにそのまま描画される こと。 攻撃者が細工したコメントを残すと、LLMがそれを回答に含めてしまい、結果としてブラウザでスクリプトが実行される。 攻撃の流れ（攻撃者視点） 1. 攻撃対象の調査 まずはアカウントを作成し、ライブチャットがXSSに脆弱か確認。 テスト用ペイロード： &lt;img src=1 onerror=alert(1)&gt; → アラートが出る = 出力が無検証でレンダリングされていると判明。 2. コメント欄の挙動…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcysec148.hatenablog.com%2Fentry%2F2025%2F09%2F06%2F092632&quot; title=&quot;LLMの不適切な出力処理からXSSを引き起こす攻撃シナリオ - 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-06 09:26:32</published>
  <title>LLMの不適切な出力処理からXSSを引き起こす攻撃シナリオ</title>
  <type>rich</type>
  <url>https://cysec148.hatenablog.com/entry/2025/09/06/092632</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
