After some inspection, I decided to perform a scan with dirsearch ๐, but nothing was found, so I performed a Ffuf ๐ณ scan to scan for subdomains:
So we add it to the hosts file.
Now a strange login is found:
Weaponization
As inspecting the code anything was found, I decided to take a look at CVE-2023-30253
Exploitation
Run the script like:
Weโve got a shell :D
Stabilise it:
Unfortunately, weโve got no permissions to read user flag, so letโs try to find something interesting inside the machine. After quite time looking for, I managed to find mysql user credentials inside /var/www/html/crm.board.htb/htdocs/conf/conf.php file:
So I entered the database to extract SSH creds:
Nothing interesting was found following these steps, so I tried to combine the user larissa with the password of mysql serverfun2$2023!!. It worked!
We obtained the user flag!
Privilege Escalation
Once here, we upload linpeas to the machine and search for PE. In this case, linpeas outputs this SUID binary PE: