<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hasegawayosuke</author_name>
  <author_url>https://blog.hatena.ne.jp/hasegawayosuke/</author_url>
  <blog_title>葉っぱ日記</blog_title>
  <blog_url>https://hasegawa.hatenablog.com/</blog_url>
  <categories>
    <anon>SECURITY</anon>
  </categories>
  <description>この記事は 「脆弱性&quot;&amp;'&lt;&lt;&gt;\ Advent Calendar 2016」10日目の記事です。小ネタですみません。 301や302のリダイレクトのレスポンスボディにてXSSが存在することが稀にありますが、30x応答ではボディ部分は表示されないのでXSSが存在しても脅威は発生しないというのが多くの方の理解ではないでしょうか。 GET /redir?q=http://example.jp/?&quot;&gt;&lt;script&gt;alert(1)&lt;/script&gt; HTTP/1.1 Host: example.jp HTTP/1.1 301 Moved Permanently Location: http://e…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhasegawa.hatenablog.com%2Fentry%2F20161210%2Fp1&quot; title=&quot; 30xリダイレクトのレスポンスボディでも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>2016-12-10 00:00:00</published>
  <title> 30xリダイレクトのレスポンスボディでもXSS</title>
  <type>rich</type>
  <url>https://hasegawa.hatenablog.com/entry/20161210/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
