<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gallu</author_name>
  <author_url>https://blog.hatena.ne.jp/gallu/</author_url>
  <blog_title>がるの健忘録</blog_title>
  <blog_url>https://gallu.hatenadiary.jp/</blog_url>
  <categories>
    <anon>PHP</anon>
    <anon>セキュリティ</anon>
  </categories>
  <description>注意 結構「状況限定」なので、本当に「一案」程度。 前提 セッションIDが定期的に変わる。だから「セッションIDをtokenに」しにくい。 一案 「消すのが面倒くさければmemcachedにすればいいぢゃない」作戦 CSRFで引っ掛けたい画面を「画面A → 画面B」の遷移である、と仮定します。 画面Aでの処理 ・ディードなIDを作成( http://d.hatena.ne.jp/gallu/20120607/p1 のコメント参照。トークンそのものは http://d.hatena.ne.jp/gallu/20120402/p2 を参照) ・ディードなIDをkeyに、ユーザIDをvalueに、寿…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgallu.hatenadiary.jp%2Fentry%2F20120703%2Fp1&quot; title=&quot;CSRF実装の一案 - がるの健忘録&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>2012-07-03 00:00:00</published>
  <title>CSRF実装の一案</title>
  <type>rich</type>
  <url>https://gallu.hatenadiary.jp/entry/20120703/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
