HackTheBox: Delivery
TL;DR
Box with mattermost and os ticket with no known exploits. There is however some sort of ‘misconfiguration’ wherein we can use the email generated by the ticket, use it to register to mattermost and we’ll get the confirmation link by viewing the ticket status. This technique is also known as ‘TicketTrick’Once logged in to mattermost, we can see credentials of the maildeliverer user, ssh into it to find creds in the mysql database and crack the passwords to get root.
Skills Learned
- Email impersonation using ticket tricks
- Advanced hash cracking tecniques using rule-based attacks
Reconnaisance
Starting of with a simple nmap scan, we see two open ports namely ssh and http:
Browsing into the website reveals not much that can be potentially exploited. Running scans using gobuster did not find any directories.
The contact-us page however gives us a subdomain helpdesk.delivery.htb
and the port used for their mattermost server which is 8065. After we add the box ip then the subdomain to our /etc/hosts file, we can proceed to view those links that are mentioned. An interesting thing to note here is that we need an @delivery.htb
email address to access mattermost.