Sitemap
Shagun Garg

Shagun Garg

Heal Writeup

3 min readMay 29, 2025

Machine Name: Heal
Difficulty: Medium
Release Date: Retired
IP Address: <IP>

I started off with a full port scan:

Press enter or click to view image in full size

But what really caught my attention was the HTTP service not following the redirect, so I just opened it in my browser and saw it took me to http://heal.htb.

Press enter or click to view image in full size

Used the Developer tools, and we can see that while signing up we get a new subdomain ie axx.heal.htb, this can also be fuzzed by ffuf.

Press enter or click to view image in full size

Now, checking the new subdomain.

Press enter or click to view image in full size

Next page after that new subdomain is resume builder after signing up. And if we look carefully it will redirect us to a new subdomain.

Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size

Viewing the page source of txxx-surxxx.heal.htb. We get the technology the site is using.

Press enter or click to view image in full size
Press enter or click to view image in full size

Now adding /admin to the txxx-suxxx.heal.htb

Press enter or click to view image in full size

Back to Resume builder page:

Get Shagun Garg’s stories in your inbox

Join Medium for free to get updates from this writer.

Inspecting the Developer page we get a new link. You can use burp suite also for the same.

Press enter or click to view image in full size

This filename parameter has a lfi(local file read) vulnerability.

Press enter or click to view image in full size

Now, by some googling i got to know theres a gemfile in this version.

Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size

By opening the tables specified in the file, we get hardcoded credentials.

Press enter or click to view image in full size

These are hashes. can be cracked by hashcat or john the ripper.

Press enter or click to view image in full size

Logging using the credentials we got-

Press enter or click to view image in full size

Vulnerability:

Theres a Exploit of Limesurvey which gives you RCE. You are just left with cloning the exploit and then uploading it to a zip file to the /admin panel of the take-survey.

Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size

By this you will get a web shell.

--

--