Skip to main content

Enumeration

Run Nmap Scan

Update Hostname

View Website

Untitled

Directory Bruteforcing (Run Gobuster)

Subdomain Enumeration (Run ffuf)

We found some subdomains! Let’s add to our hostname file and view the website.

Update Hostname

Viewing Subdomain

Untitled After enumerating all the subdomains, all the link routes to the same result which is the zabbix login page

Exploitation

Searching for Zabbix Exploits

Enumerating Zabbix Version from the Source Code

Untitled Here we can see the website is using version 5.0

Searching for Exploit

Here the only available exploit is Remote Code Execution (RCE) (Authenticated). But we need a credential to get into the panel.

IPMI Enumeration

Further Port Enumeration through UDP Scanning

623/UDP/TCP - IPMI

Dumping Hashes

Cracking the Hash

Save the hash to administrator.hash file.
Find the hash mode from the website. example_hashes [hashcat wiki] The IPMI Hash number is 7300 Start cracking the hash

Credentials

Listen to Reverse Shell and Exploit

Privilege Escalation

From zabbix to ipmi-svc

SUing to ipmi-svc using the credentials obtained

From ipmi-svc to root

Enumerating network connection

Here it seems like mysql is running at port 3306.

Checking if mysql is running by checking process

Enumerating DB inside zabbix folder

ipmi-svc@shibboleth:/etc/zabbix$ cat zabbix_server.conf

Logging into MariaDB

Tip: you can use the command \! /bin/bash in MariaDB client to do some shell operation and come back to MariaDB shell using the command exit once you are done with the shell operation!

MariaDB RCE (CVE-2021-27928)

https://github.com/Al1ex/CVE-2021-27928 Generate Reverse Shell in Shared Object form
Save the reverse shell inside the /tmp folder

Listen to Reverse Shell and Exploit

Reference