<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>namaza</author_name>
  <author_url>https://blog.hatena.ne.jp/namaza/</author_url>
  <blog_title>雑記</blog_title>
  <blog_url>https://ytrewq.hatenablog.com/</blog_url>
  <categories>
    <anon>セキュスペ</anon>
  </categories>
  <description>検索画面で、検索した文字列を //keywordはクエリdocument.write(keyword);や document.innerHTML=keyword; こうしてエスケープ処理せずに表示するとkeywordにscriptタグが書けるのでXSSが可能な場合がある。 安全なやり方 文字表示用のdivを作っておき、var div = document.getElementById('query_string'); createTextNode()によって、HTMLがエスケープ処理された子要素を作り、 var text_node = document.createTextNode(keywo…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fytrewq.hatenablog.com%2Fentry%2F2017%2F10%2F03%2F205321&quot; title=&quot;DOMベースのXSS - 雑記&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>2017-10-03 20:53:21</published>
  <title>DOMベースのXSS</title>
  <type>rich</type>
  <url>https://ytrewq.hatenablog.com/entry/2017/10/03/205321</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
