Featured image of post Knightctf_2024

Knightctf_2024

Writeup for challenges in knightctf 2024

web

kitty

Tetanus is a serious, potentially life-threatening infection that can be transmitted by an animal bite.

N:B: There is no need to do bruteforce.

Here its obvious that it is sqli , login bypas to be precise

1
payload: " or 1=1-- -

since it was in json we you had to excape the first double-quote

payload

kitty


README

This challenge entailed bypass a 403 response to be able to read the flag. The methos to exploit this is by using special http headers. see here

Using burp intruder , we get the flag

flag


Gain access 1

For this challenge we are given a login page. It obvious the vuln is login bypass.

Inspecting the page source code we can see a comment with the root email “root@knightctf.com

1
payload :  root@knightctf.com'-- -

1


Gain access 2

For this challnege we are also given a login page. Viewing the page source we can see a comment that indicated there is a path notesssssss.txt. Visiting it…

1
2
I've something for you. Think.....
root@knightctf.com:d05fcd90ca236d294384abd00ca98a2d

The hash is md5 since it has a length of 32. Using this » site we find the password as “letmein_kctf2024”

Logging in we get a OTP verification page. It is vulnerable to sqli

1
payload :  anything' or 1=1-- -

We then get access to the dashboard

vanished

I got stuck here , will update when the ctf ends. :)

Update:

After you get the password , there is ana OTP page . The page also has an option to resend otp which requires you to enter an email. If we eneter the email roor@knightctf.com. That we had earlier we can see that it accepts it. Note: I had tries this methos earlier but i used the wrong format.

reset

So you can send several email as an array []

1
2
3
4

{
    "email": ["root@knightctf.com","attacker@email.com"]
}

This will send the OTP code to both emails. Using the OTP code we get the flag

flag

CREDIT: @T3l3sc0p3


Networking

For the networking challs check out my teammates writeups on them »


Licensed under CC BY-NC-SA 4.0
Built with Hugo
Theme Stack designed by Jimmy