<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>teramako</author_name>
  <author_url>https://blog.hatena.ne.jp/teramako/</author_url>
  <blog_title>hogehoge @teramako</blog_title>
  <blog_url>https://teramako.hatenadiary.org/</blog_url>
  <categories>
    <anon>*nix</anon>
  </categories>
  <description>CVE-2014-6271を発端とする bash の脆弱性、いわゆる ShellShock って呼ばれている奴。環境変数に仕込んだ任意のコマンドを実行できてしまうってことから、CGI との組み合わせが取り沙汰されている。その頃 sudo の設定の勉強をしていたので、ふと気になったのが、sudoの設定で環境変数を持ち越して使用することができる env_keep の設定。sudo で root としてbashを実行させれば、任意のコマンドを特権昇格して実行できちゃうんじゃ？ というもの。早速試してみた。 普通に実行したもの $ export ORACLE_SID='() { :;}; echo V…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fteramako.hatenadiary.org%2Fentry%2F20140929%2Fp1&quot; title=&quot;shellshock と sudo - hogehoge @teramako&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>2014-09-29 00:00:00</published>
  <title>shellshock と sudo</title>
  <type>rich</type>
  <url>https://teramako.hatenadiary.org/entry/20140929/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
