ImageMagickに重大な脆弱性。サーバが乗っ取られる危険 [無断転載禁止]©5ch.io [265351135]
■ このスレッドは過去ログ倉庫に格納されています
ImageTragick
http://www.imagetragick.com/
詳細は上のサイトを参照。パッチは今週末にリリースされるので、それまではpolicy.xmlで対応して欲しいとのこと。 ImageMagick Is On Fire―CVE-2016-3714
TL;DR
There are multiple vulnerabilities in ImageMagick, a package commonly used by web services to process images.
One of the vulnerabilities can lead to remote code execution (RCE) if you process user submitted images. The exploit for this vulnerability is being used in the wild.
A number of image processing plugins depend on the ImageMagick library, including, but not limited to, PHP’s imagick, Ruby’s rmagick and paperclip, and nodejs’s imagemagick.
If you use ImageMagick or an affected library, we recommend you mitigate the known vulnerabilities by doing at least one these two things (but preferably both!):
Verify that all image files begin with the expected "magic bytes" corresponding to the image file types you support before sending them to ImageMagick for processing. (see FAQ for more info)
Use a policy file to disable the vulnerable ImageMagick coders. The global policy for ImageMagick is usually found in “/etc/ImageMagick”.
The below policy.xml example will disable the coders EPHEMERAL, URL, MVG, and MSL.
policy.xml
<policymap>
<policy domain="coder" rights="none" pattern="EPHEMERAL" />
<policy domain="coder" rights="none" pattern="URL" />
<policy domain="coder" rights="none" pattern="HTTPS" />
<policy domain="coder" rights="none" pattern="MVG" />
<policy domain="coder" rights="none" pattern="MSL" />
</policymap>
やっと立てられた
詳細と応急対策は>>3の通りです こういう任意の入力を処理する系はサンドボックス無いと怖いな。
安全にしたとしても、今度は計算時間を長くする方面の攻撃もある。
計算を打ち切る枠組みが欲しい。
ちなみにDockerとか使えば多少は乗っ取りリスク軽減にはなるかな。
兄弟のgraphics magickのほうは大丈夫なんかね。
普段はこっちしか使わんけど。
>>10
一瞬、頭いい〜と思ったけど
コンテナの中でやりたい放題される(よそのサーバ攻撃し始めるとか)ので結局無意味じゃね? >>12
コンテナの作り方次第かもなあ。
コンテナからの通信で嫌がらせは確かに出来る。
システム破壊や情報漏洩の難易度がやや上がるぐらいかもなあ。
まあ管理する側からすると、不審な行動があったらコンテナごと
捨てて作り直すか入れかえりゃ済むのは楽だけどね。 ■ このスレッドは過去ログ倉庫に格納されています