flags are stepic

by sealldev
PicoCTF icon PicoCTF forensics
medium
Suggested: #steganography
flags are stepic
flags are stepic

Description

A group of underground hackers might be using this legit site to communicate. Use your forensic techniques to uncover their message

Hint: In the country that doesn't exist, the flag persists

We start with a web instance with a bunch of flags: home.png

Looking at the page source, something catches my eye…

...
{ name: "United Arab Emirates (the)",img: "flags/ae.png"},
{ name: "United Kingdom of Great Britain and Northern Ireland (the)",img: "flags/gb.png"},
{ name: "United States of America (the)",img: "flags/us.png"},
{ name: "Upanzi, Republic The",img: "flags/upz.png", style:"width: 120px!important; height: 90px!important;" },
{ name: "Uruguay",img:"flags/uy.png"},
{ name: "Uzbekistan",img: "flags/uz.png"},
...

The country ‘Upanzi, Republic The’ is highlighted with some unique CSS rules for only that flag. Looking up ‘Upanzi’ we get refrences to Carnegie Mellon University, the university hosting PicoCTF! search.png

I download the upz.png image, and it doesn’t have much of interest… upz.png

I also try using AperiSolve and some other steganography tools and make no progress…

Eventually I look more at the challenge name, stepic? What’s stepic? Kinda reads like a shorthand for ‘steganography picture’…

I do a Google dork for stepic with ‘site:github.com’ expecting a project. stepicsearch.png

That seems about right!

I install the project with pip:

$ pip install stepic
Collecting stepic
...
Installing collected packages: pillow, stepic
Successfully installed pillow-11.1.0 stepic-0.5.0

Then use it!

$ stepic -d -i ../upz.png
...
picoCTF{fl4g_h45_fl4ga664459a}

Flag: picoCTF{fl4g_h45_fl4ga664459a}

Share this writeup

Contribute

Found an issue or want to improve this writeup?

Edit on GitHub