D23R Cybersecurity Blog
Preview Image

Traverxec Walkthrough - HTB Easy | Nostromo RCE & Journalctl Privilege Escalation

Complete walkthrough of Traverxec from Hack The Box. An easy Linux machine featuring a nostromo 1.9.6 web server vulnerable to CVE-2019-16278 (RCE). After gaining initial access, enumeration reveals an encrypted SSH key backup in the public_www directory. The SSH key passphrase is cracked to gain user access. Privilege escalation is achieved through a sudo-enabled journalctl command that uses less as a pager, allowing command execution through less's escape mechanism.

Preview Image

Sauna Walkthrough - HTB Easy | AS-REP Roasting & AutoLogon Credential Discovery

Complete walkthrough of Sauna from Hack The Box. An easy difficulty Windows machine that features Active Directory enumeration and exploitation. Possible usernames can be derived from employee full names listed on the website. With these usernames, an ASREPRoasting attack can be performed, which results in hash for an account that doesn't require Kerberos pre-authentication. This hash can be subjected to an offline brute force attack, in order to recover the plaintext password for a user that is able to WinRM to the box. Running WinPEAS reveals that another system user has been configured to automatically login and it identifies their password. This second user also has Windows remote management permissions. BloodHound reveals that this user has the DS-Replication-Get-Changes-All extended right, which allows them to dump password hashes from the Domain Controller in a DCSync attack. Executing this attack returns the hash of the primary domain administrator, which can be used with Impacket's psexec.py in order to gain a shell on the box as NT_AUTHORITY\SYSTEM.

Preview Image

Forest Walkthrough - HTB Easy | AS-REP Roasting & DCSync via Exchange Permissions

Complete walkthrough of Forest from Hack The Box. An easy Windows machine that showcases a Domain Controller (DC) for a domain in which Exchange Server has been installed. The DC allows anonymous LDAP binds, which are used to enumerate domain objects. The password for a service account with Kerberos pre-authentication disabled can be cracked to gain a foothold. The service account is found to be a member of the Account Operators group, which can be used to add users to privileged Exchange groups. The Exchange group membership is leveraged to gain DCSync privileges on the domain and dump the NTLM hashes, compromising the system.

Preview Image

Precious Walkthrough - HTB Easy | PDFKit Command Injection & YAML Deserialization

Complete walkthrough of Precious from Hack The Box. An Easy Difficulty Linux machine that focuses on the Ruby language. It hosts a custom Ruby web application using an outdated library, namely pdfkit, which is vulnerable to CVE-2022-25765, leading to an initial shell on the target machine. After pivoting using plaintext credentials found in a Gem repository config file, the box concludes with an insecure deserialization attack on a custom, outdated Ruby script.