atici/ImageMagick-CVE-2022-44268-PoC

GitHub: atici/ImageMagick-CVE-2022-44268-PoC

一个自动化利用 ImageMagick CVE-2022-44268 任意文件读取漏洞的 Bash 脚本,简化了 payload 注入与数据解码流程。

Stars: 0 | Forks: 0

# ImageMagick-CVE-2022-44268-PoC 一个用于轻松利用 ImageMagick 任意文件读取漏洞 CVE-2022-44268 的 bash 脚本 ## 受影响的 ImageMagick 版本 ``` 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 ``` ## 致谢 - 原始报告:https://www.metabaseq.com/imagemagick-zero-days/ - 原始 Poc:https://github.com/duc-nt/CVE-2022-44268-ImageMagick-Arbitrary-File-Read-PoC.git - 本项目的灵感来源:https://github.com/Ashifcoder/CVE-2022-44268-automated-poc # 免责声明: 本仓库中提供的所有代码仅供教育/研究目的使用。任何与本仓库所含材料相关的行动和/或活动均由您自行承担责任。滥用本仓库中的代码可能导致相关人士面临刑事指控。如果任何个人因滥用本仓库中的代码而违法并被提起刑事指控,作者概不负责。
标签:任意文件读取, 安全, 应用安全, 超时处理