Hackthebox - Agile
Initial Enumeration
nmap
sql
1 | # Nmap 7.93 scan initiated Sat Mar 11 00:29:44 2023 as: nmap -sC -sV -oN nmap/agile 10.10.11.203 |
Web
Opening the page redirect to superpass.htb
Playing around with the service lets register on the application
We find LFI on download
endpoint
and based on error we can grab the source code of the application
python
1 | import json |
trying iodr on view to get vault rows we get data of corum
which contained ssh creds for him as
llvm
1 | sshpass -p '5db7caa1d13cc37c9fc2' ssh corum@agile.htb |
Privillege Escalation
Checking for listening port we see port 5555 running localy
we can also confirm that in nginx config
Port forwading the port 5555 we see the same application and using the IDOR again on /vault/row/<id>
we find creds for edwards d07867c6267dcb5df0af
Edward to root
routeros
1 | export EDITOR="vim -- /app/venv/bin/activate" |
We know that root
is doing source of /app/venv/bin/activate every minute so we can add out revershell in that and wait for root to execute it