CTF writeup for COMPFEST 15 Quals. I took part in this CTF competition with the when yh team.
Thanks for @0xazr and @HyggeHacylon, who's has participate with me.
That night was definitely the happiest of my life. I get to spend a night with my favorite girl, walking and strolling around the streets of Seoul, holding hands and enjoying the winter air with the beautiful night lights decorating our surroundings. Look, I even took a picture of her! Although, she was really camera-shy. What I don’t really get is, my friends told me that all of this is just in my imaginations. I can assure you I did have a date with her. Otherwise, how would I take this picture?!
Anyway, I organize my dating pictures by location. The problem is, I forgot the name of the street where I took this picture, specifically the street behind her. And the girl? Well, long story, but there’s no way I can ask her. All I can remember is this location was near a Burberry store. I tried to look it up too, but the streets and buildings were pretty hard to recognize because the pictures on the internet were from 5 years ago.
I know you can find the street location. So please help me, yeah? Also, sorry for the pixellated image!
NOTE: Brute-force solutions in the writeups will not be considered valid.
Flag format: COMPFEST15{StreetNameWithoutDash_DistrictName_BurberryStorePlusCode}
Example: COMPFEST15{BanpoDaero_Geumjeong_RRXH+88}
We given some photo of idol, then we need find the location where's she take the photo, according the description the photo is taken near Burberry Store.
First we do some reverse image with yandex images
to find the original source of image.
Look's likely the named of idol is An Yujin
, then we do some dorking in google with keyword an yujin jamwon hangang park
and found something interesting article from Reddit.
Even the article is deleted, but we found some comment.
After verify the location, we sure that's a correct location.
Hi, I am an HR on a retail company, Free Terracota. I need your help for find our lost flag that hidden by our Security Analysist, named Andi Hakim. Thank you for helping me!
We given some information through description, that we must find the hidden message from Andi Hakim.
First i do some google dorking with this keyword andi hakim intext:security
and open the image result.
Maybe you should curious about the illustration of photo profile, so we try to visit the Linkedin page.
And we got the right profile, after that i found the Github profile through the contact of Linkedin, and found the repository with interesting commit.
We try to open the commit changes.
john is currently planning an escape from jail. Fortunately, he got a snippet of the jail source code from his cellmate. Can you help john to escape?
We given some python script like this,
We need to escape the python jail in order to get flag.
According to the python script, that we need logged in with username john
after that there some blacklist word that prevent to execute the system in remote server.
First i need to read the passwd server, usually i use this,
because there a open
get blacklisted we can bypass that with this,
We already read the passwd of server, and i find some directory /home/admin/
that's very suspicious. After i check there also word admin
that is blacklisted.
Because admin
is get blacklist, we can convert to unicode hex like this,
And the last payload will be,
I'm developing an AI Waifu chatbot startup but i'm too lazy to host my own LLMs, So i just use chatGPT API, but first i need to hide my prompt since it's my only moat, can you help me pentesting this?
the bot is online as lemond#8498 on the Discord server, but only talking in DMs. (Note: this challenge requires no automation. Please do not automate your Discord account as that is a violation of Discord's Terms of Service and may lead to the termination of your account)
format flag : COMPFEST15{flag_sha256(flag)[:10]}
We given some script like this
And also the bot in the discord, we need bypass prompt injection in order to get flag.
According to the given script, we can type flag
or COMPFEST15
contains in prompt to get flag.
To solve this i get some reference from this Gandalf Prompt Injection
My friend loves to send me memes that has cats in it! One day, he sent me another cat meme from his 4-bit computer, this time with “a secret”, he said. Unfortunately, he didn’t know sending the meme from his 4-bit computer sorta altered the image. Can you help me repair the image and find the secret?
We given some broken image, in order to get flag we need to repair the image with fix the hex signature file.
First i open the image with HxD Editor
,
Look's like the signature is converted to binary, so we convert back using Cyberchef
.
And we save the output, and get image like this,
After trying some method, then i use stegsolve
to get the flag in image.