SBN

Hack the Box (HTB) machines walkthrough series — Gitlab

Today, we will be continuing with our exploration of Hack the Box (HTB) machines, as seen in previous articles. This walkthrough is of an HTB machine named Gitlab.

HTB is an excellent platform that hosts machines belonging to multiple OSes. It also has some other challenges as well. Individuals have to solve the puzzle (simple enumeration plus pentest) in order to log into the platform and download the VPN pack to connect to the machines hosted on the HTB platform.

The walkthrough

Note: Only write-ups of retired HTB machines are allowed. The machine in this article, named Gitlab, is retired. ‌

Let’s‌ ‌start‌ ‌with‌ ‌this‌ ‌machine.‌ ‌

  1. Download‌ ‌the‌ ‌VPN‌ ‌pack‌ ‌for‌ ‌the‌ ‌individual‌ ‌user‌ ‌and‌ ‌use‌ ‌the‌ ‌guidelines‌ ‌to‌ ‌log in‌‌to‌ ‌the HTB‌ ‌VPN.‌ ‌
  2. The Gitlab‌ ‌machine‌ ‌IP‌ ‌is‌ ‌10.10.10.114.
  3. We‌ ‌will‌ ‌adopt‌ ‌the‌ ‌same‌ ‌methodology‌ ‌of‌ ‌performing‌ ‌penetration‌ ‌testing as we’ve previously used.‌ ‌Let’s‌ ‌start‌ ‌with‌ ‌enumeration‌ ‌in‌ ‌order‌ ‌to‌ ‌gain‌ ‌as‌ ‌much‌ ‌information‌ ‌about‌ ‌the‌ ‌machine‌ ‌as‌ ‌possible.‌ ‌
  4. As‌ ‌usual,‌ ‌let’s‌ ‌start‌ ‌with‌ ‌the‌ ‌nmap‌ ‌scan‌ ‌to‌ ‌gather‌ ‌more‌ ‌information‌ ‌about‌ ‌the‌ ‌services‌ ‌running‌ ‌on‌ ‌this‌ ‌machine.‌ ‌[CLICK IMAGES TO ENLARGE]<<nmap‌ ‌-sC‌ ‌-sV‌ ‌-oA‌ ‌Gitlab‌ ‌10.10.10.114>>‌

  5. As we can see, ports 20 and 80 are opened from the initial enumeration. Let’s start enumerating with port 80.
  6. On port 80, we got a login page, which means we have to start enumeration directories.
  7. Before we start using tools, there are some default Gitlab directories that we can also look at.
  8. Looking at the help directory reveals a bookmark.html.
  9. Looking into the bookmark.html and clicking Gitlab login, nothing happened.
  10. Let’s look into the source code. Doing so, we found some hex-encoded strings.
  11. Cleaning that a bit and an online decoder reveals (Read more...)

*** This is a Security Bloggers Network syndicated blog from Infosec Resources authored by Security Ninja. Read the original post at: http://feedproxy.google.com/~r/infosecResources/~3/3PVSzBSBdeo/