IMF#1: Bug Hunting
Category: System
Description
Tracking bugs can be tidious, if you're not equiped with the right tools of course...
> Deploy on deploy.heroctf.fr
Format : Hero{flag}
Author : Log_s
Write-up
- When we accessed the server through SSH (
ssh [email protected] -p 11232
), we found a file namedwelcome.txt
in the home directory of the user. The file contains the following content: - It appears that there is a web server running on port
8080
of the remote server. - However, since we can only access the remote server through SSH port
11232
, we can establish another SSH connection with port forwarding to access the internal web server hosted on port8080
. - In a separate terminal, we can execute the following command:
ssh -L 1337:localhost:8080 [email protected] -p 11232
. - This command sets up a tunnel that forwards traffic from our local port
1337
to the remote server's port8080
. - With the tunnel established, we can now access the internal web server by opening our browser and navigating to http://localhost:1337.
- Upon accessing the URL, we are presented with an IntelliJ YouTrack dashboard.
- To gain access to the account, we can use the provided credentials in
welcome.txt
, which isdev:aff6d5527753386eaf09
. - After successfully logging in, we can see 5 issues on the dashboard.
- One of these issues contains the flag in the description.
Flag: Hero{1_tr4ck_y0u_tr4ck_h3_tr4ck5}