<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xmldtp</author_name>
  <author_url>https://blog.hatena.ne.jp/xmldtp/</author_url>
  <blog_title>ウィリアムのいたずらの、まちあるき、たべあるきーPART2</blog_title>
  <blog_url>https://xmldtp.hatenadiary.org/</blog_url>
  <categories>
    <anon>Weblog</anon>
  </categories>
  <description>今日、Ｃ／Ｃ＋＋のセキュアコーディングの話を聞いてきて （今度、レポートします。その内容） そこで、ファイルアクセスにおけるぜい弱性の話を聞いてきた。 つまり、ファイル名をユーザーにいれてもらうと、ふつうは foo.xml のように、素直に、ファイル名をいれると想定しちゃうけど、ここに ../../../../../etc/passwd とかかいて、思いもよらないところにアクセスして、ファイルを書きだしてしまう 危険があるというはなし。 これを防ぐには、ファイルのパスを正規化(canonicalization)する、 具体的にはrealpath()をつかうそうな・・・ って、それ、ＣやＣ＋＋で…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxmldtp.hatenadiary.org%2Fentry%2Fdded3c3a1b329dbd7b465c1bf2f402a8&quot; title=&quot;WAFをリバースプロキシでやった場合、リバースプロキシが倒れたら？ - ウィリアムのいたずらの、まちあるき、たべあるきーPART2&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>2009-02-27 00:55:13</published>
  <title>WAFをリバースプロキシでやった場合、リバースプロキシが倒れたら？</title>
  <type>rich</type>
  <url>https://xmldtp.hatenadiary.org/entry/dded3c3a1b329dbd7b465c1bf2f402a8</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
