<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nyarla-net</author_name>
  <author_url>https://blog.hatena.ne.jp/nyarla-net/</author_url>
  <blog_title>カラクリスタ</blog_title>
  <blog_url>https://the.nyarla.jp/</blog_url>
  <categories>
  </categories>
  <description>概要: coffeecup.js はデフォルトで HTML エスケープしない 自戒を込めてメモ。 僕は、最近、 俺の考えた最強の掲示板システム(てってれー) なるものをこそっと作ってたのですが、今日の今日まで、 そのシステムに XSS 脆弱性をモロに埋め込んでました。 具体的にどういうことかというと、僕の作ってる掲示板システムは、 Express.js 3 coffeecup.js その他色々 という感じの構成で作ってたのですが、テンプレートエンジンの coffeecup.js が、 デフォルトでは全自動 HTML エスケープをしない 、 ということに気がついていませんでした。 まあ今となって…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fthe.nyarla.jp%2Fposts%2F2012%2F09%2F23%2F002312%2F&quot; title=&quot;express.jsとcoffeecup.jsを使うときは、@の前にhを使え。さもなきゃ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>2012-09-23 00:23:12</published>
  <title>express.jsとcoffeecup.jsを使うときは、@の前にhを使え。さもなきゃXSSる</title>
  <type>rich</type>
  <url>https://the.nyarla.jp/posts/2012/09/23/002312/</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
