Hacking the Medium-Difficulty Linux Machine SURVEILLANCE
by DFGM - Monday October 28, 2024 at 10:04 AM
#1
  • In this video, the author demonstrates how to exploit a medium-difficulty Linux machine called SURVEILLANCE on the HackTheBox platform.
  • The process begins by exploiting a remote code execution vulnerability in CraftCMS to gain initial access to the machine under the 
    www-data
     account. Afterward, the author identifies and accesses the MySQL database, where password hashes are found. While an attempt to crack the bcrypt hash from the CraftCMS database is unsuccessful, a backup database file reveals an older SHA512 hash. This older hash is easily cracked within seconds, granting access to a user account.

  • Using the obtained password, the author connects to the server via SSH. Upon discovering an open local port 8080, it's identified as being used by the ZoneMinder surveillance system. The author sets up port forwarding to access this service remotely. By exploiting another remote code execution vulnerability in ZoneMinder, access is gained to a different user account with sudo privileges to run Perl scripts. Utilizing one of these scripts, the author injects arbitrary commands, ultimately escalating their privileges to root.

https://youtu.be/Lpso0AwJV5Y
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 88 8,020 47 minutes ago
Last Post: ElCAESAR_97
Heart [FREE] HackTheBox All Cheatsheets Tamarisk 10 605 2 hours ago
Last Post: chufoni
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 28 2,830 2 hours ago
Last Post: chufoni
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 375 93,512 2 hours ago
Last Post: Johe
  [FREE] HackTheBox Dante - complete writeup written by Tamarisk Tamarisk 604 92,620 2 hours ago
Last Post: Johe

Forum Jump:


 Users browsing this forum: 1 Guest(s)