Member-only story

THM - Devie

Francesco Pastore
4 min readMar 20, 2025

--

A writeup for the room Devie on TryHackMe

A developer has asked you to do a vulnerability check on their system.

Footprinting

We can start by doing a scan with nmap.

There are only two open ports: the 22 for SSH and 5000.

By connecting to the port 5000 with the browser we can find a web application.

The website allows to do different math calculations.

In the footer of the page is possible to download the source code.

First flag

Looking closely at the code, we can see a vulnerability in the eval function with user-given input.

--

--

Francesco Pastore
Francesco Pastore

Written by Francesco Pastore

An engineering student in Milan and a web developer for an IT company. Write about programming and cybersecurity topics.

No responses yet