HackTheBox — Beep Walkthrough

0xNeel
2 min readAug 22, 2019

--

Following is the HackTheBox Beep machine’s walkthrough.

Vulnerability Exploited: Elastix 2.2.0 — ‘graph.php’ Local File Inclusion

Steps:

Nmap port scan:

Command: nmap -Pn -p- -sV --reason 10.10.10.7

Upon accessing Web-server, it appears to run Elastix service.

After searching for exploits for Elastix we can see there a lot of exploits available. Let’s try Local File Inclusion exploit.

Use exploit command specified in the comment of exploit code.

Open URL https://10.10.10.7/vtigercrm/graph.php?current_language=../../../../../../../..//etc/amportal.conf%00&module=Accounts&action

Copy all the content from web-page to a local text file.

After formating the page by replacing all ‘#’ with ‘\n#’ we get the file content as follows.

There are a few passwords stored in this file. Let’s use the above-highlighted password string and try to SSH into the system.

We successfully login as root.

--

--

No responses yet