<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pivot_root</author_name>
  <author_url>https://blog.hatena.ne.jp/pivot_root/</author_url>
  <blog_title>/tmp/</blog_title>
  <blog_url>https://pivot-root.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>Fail2ban の mail-whois と呼ばれる機能(Ban の通知を whois 結果付きでメール送るやつ)で CVE-2021-32749 が出ていた。 Possible RCE vulnerability in mailing action using mailutils (mail-whois) · Advisory · fail2ban/fail2ban · GitHub これは mail コマンドに whois の内容を標準入力で渡しているのだけれど、mailtuils の mail コマンドには ~! エスケープ修飾子があると、その引数をコマンドみなしてシェル経由で実行する…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpivot-root.hatenablog.jp%2Fentry%2F2021%2F07%2F20%2F145537&quot; title=&quot;mail コマンドで任意のコマンドが実行できる - /tmp/&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>2021-07-20 14:55:37</published>
  <title>mail コマンドで任意のコマンドが実行できる</title>
  <type>rich</type>
  <url>https://pivot-root.hatenablog.jp/entry/2021/07/20/145537</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
