Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2021-22204 PoC — exiftool 代码注入漏洞

Source
Associated Vulnerability
Title:exiftool 代码注入漏洞 (CVE-2021-22204)
Description:exiftool是一个应用软件。使元数据更易于访问。 ExifTool 7.44版本及之前版本存在代码注入漏洞,该漏洞允许在解析恶意图像时任意执行代码。
Readme
# CVE-2021-22204 - Exiftool Remote Code Execution

## Description

Recently, the researcher wcbowling found a vulnerability in the Exiftool tool, that enabled a malicious actor to perform a Remote code Execution attack. This vulnerability was found in the Gitlab bug bounty program, where they use this tool as dependency for their product.

## Usage

In line 12 (createFile.sh), put your own attacker machine IP address. 

![image](https://user-images.githubusercontent.com/57206134/127836658-fbcb47c3-f0fa-40bc-b975-e80ba355870d.png)

Then simply execute:

`$ bash createFile.sh`

This will create the malicious file `shell.djvu`. By using exiftool, you can get remote code execution:

`$ sudo /usr/local/bin/exiftool shell.djvu`
File Snapshot

[4.0K] /data/pocs/498c617a7a064efa459f56f8eaa4184c83ef617c ├── [ 670] createFile.sh ├── [1.0K] LICENSE └── [ 732] README.md 0 directories, 3 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.