Infinity Shell Walkthrough

Challenge Statement#

image

Solution#

Since the challenge talks about a web application vulnerability, we can directly head to the website’s directory to look for suspicious files.

image

Going through all the files and folders, we see that there is an images.php file, which s PHP web shell.

image

The web shell allows us to execute commands on the server by passing them as a base64-encoded query parameter.
Now, we cannot do anything with this information, but we can look at the logs to see the attacker’s actions.

Command I used:

cat other_vhosts_access.log.1 | grep images.php?query=

image

From these, we can decode the base64 strings and obtain the flag.

image


Adapted from harishkannan05/THM-HackfinityBattle-Writeup under MIT.

Find us elsewhere

Merch, stickers, and moreSupport the work at the Solvere Labs shop