šš¦¶Enumeration/Foothold
Love is an Easy box from HTB and created by pwnmeow. This box features subdomain lookup and AlwaysInstallElevated privesc. I start every scan with anĀ RustScanĀ and convert it to a PDF for easier viewing. This is bundled into my setup.sh script which I’ve mentioned in a few of my other posts. RustScan with NMAP filters shows a website with registration available on Port 80. I also noticeĀ Port 443Ā is open so I navigate over to theĀ HTTPSĀ version of the website. I see a certificate with some useful information.

Port 80 showing the Voting System screen.

HTTPS Certificate showing some useful information.
Seeing the certificate I notice a subdomain. I add the primary domain and the subdomain to my host file.

Adding sub-domain to my host file.
I also note down theĀ [email protected]Ā address as possible username and ValentineCorp as a possible company. I visit both domains withĀ HTTPSĀ and get a pop on the staging website.

Staging File Scanner website.
I notice at the top of the screen that aĀ DemoĀ link is available. I setup aĀ ncĀ listener and clickĀ Scan fileĀ I get a hit back showing that code execution via RFI or traversal might be possible.
After striking out for a few minutes myĀ NMAPĀ scan finishes. Reviewing the results I notice thatĀ Port 5000Ā is running a website and giving aĀ 403 Error.

Port 5000 showing 403 Forbidden.
I use the file scanner to navigate to the page and pick up the credentials for the voting system.

Free File Scanner shows the Password Dashboard.
I note down the credentials in my notes and head over to the voting page. Upon logging in I note down the name of the user we are logged in as and notice the Copyright for the site says 2018. As this box came out in 2021 we can assume this is intentional.

Google showing me the way…
After viewing theĀ ExploitDBĀ article I was unable to get a response. Instead I tried the exploit manually which worked.

Creating a new malicious candidate.
I created a Candidate and uploaded aĀ shell.phpĀ which is a fork of the PenTestMonkeyĀ PHPĀ reverse shell. To catch the shell I setup aĀ ncĀ listener –
šEscalation
Once on the system I get the user flag and create a directory in theĀ Windows\TempĀ directory and download WinPEAS to the box. The scan comes back thatĀ AlwaysInstallElevatedĀ is enabled.

LinPEAS showing AlwaysInstallElevated.
I kill the session for theĀ PHPĀ shell and change the port toĀ 9001. This is because my setup script createsĀ MSFVenomshells that default toĀ Port 1234. I alter theĀ PHPĀ shell and get back into the environment. I then pull theĀ .MSI shell I have to perform the privilege escalation.
ā Attack Machine
šÆVictim Machine

Rooted Love from HTB.
