Magical contracts are hard. Occasionally, you sign with the flag instead of your name. It happens.
Solution
We get a contract.pdf file:
szczygielka@hacks$ file contract.pdf
contract.pdf: PDF document, version 1.7, 3 page(s)
The content of the task suggests that the file was signed with a flag. There are 2 images in place of the signatures in the PDF document:
Let's extract all the images from the PDF to see if anything is interesting in them. We can do that using this website. After extraction images, we get 4 images:
One of the images, i.e. 2.png image contains a flag.