Python pickle deserialisation
The leader of the Jellyspotters has hired you to paint them a poster for their convention, using this painting program. Also, the flag is in ~/flag.txt.
nc umbccd.io 4200
Author: nb
B64 encoded pickle string is loaded.
Reference: https://davidhamann.de/2020/04/05/exploiting-python-pickle/arrow-up-right
We can leverage the __reduce__ method to call os.system() with cat ~/flag.txt.
__reduce__
os.system()
cat ~/flag.txt
Passing the b64 encoded string into the input, we get the flag.
Last updated 3 years ago