Beginner's Guide to Conquering Stream on Hack the Box
A guide explains how beginners use enumeration, an IDOR issue, and a Python capability to gain root access on a HackTheBox target.
Overview
A guide for beginners explains how to compromise a Linux machine on the HackTheBox platform. The process starts with a port scan to find open services like FTP, SSHAn encrypted network protocol that administrators and developers use to log in to remote servers and run commands, and HTTP. The attacker then uses a web application to find an IDORAn access control flaw where changing an identifier in a request reveals someone else's data issue and download a pcap file containing credentialsThe login details, such as a username and password or key, that prove who an account belongs to. These credentials are analyzed using Wireshark to gain initial access to the system. The final step involves using a Python capability to escalate privileges to root. This guide is intended for students learning how to identify and exploitA piece of code or technique that uses a software flaw to break into or crash a system common security weaknesses in network systems.
Terms in this story
- SSH
- An encrypted network protocol that administrators and developers use to log in to remote servers and run commands. Attackers constantly scan the internet for servers with open SSH ports and weak passwords, while defenders protect SSH access with cryptographic keys instead of passwords.
- IDOR
- An access control flaw where changing an identifier in a request reveals someone else's data. If an invoice page uses a customer number in the web address and fails to check who is logged in, an attacker can exploit IDOR by counting through numbers to download other people's bills.
- credentials
- The login details, such as a username and password or key, that prove who an account belongs to. Many breaches begin when attackers steal an employee's login credentials through a fake website and sign in to the company network as if they belonged there. Security+ objective 4.6 lists the term
- exploit
- A piece of code or technique that uses a software flaw to break into or crash a system. Finding a vulnerability is only the discovery of a weakness, whereas an exploit is the working code or sequence of inputs that triggers that weakness in practice. Security+ objective 2.4 lists the term
- Key
- The secret value that locks or opens a message. Many breach and ransomware stories come down to who holds the cryptographic key, since strong encryption protects data only as long as the key stays secret. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
- root access
- The highest administrator permission level on a system, with unrestricted control over all files and programs. An attacker who gains root privileges on a server can read any user's data, alter system settings, install kernel drivers, and hide their activity from ordinary accounts.
- enumeration
- Systematically probing a system or login form to discover valid usernames, files, or network resources. If a password reset page says whether an email address is registered, attackers run account enumeration to build a verified list of customer accounts to target.
- logs
- Timestamped records that servers and apps write whenever someone signs in, changes a setting, or makes a request. During an investigation, responders examine security logs to trace when an attacker first logged in and which internal machines they accessed. Security+ objective 4.4 lists the term
- privilege escalation
- A flaw or trick that lets a low-level user account gain administrator control over a system. After breaking into a regular guest or employee account, an attacker uses privilege escalation to gain full system rights and disable security tools. Security+ objective 2.4 lists the term
- secrets
- Private credentials used by software, such as API keys, database passwords, and encryption keys. Software teams use vault tools to keep secrets out of source code because anyone who finds a leaked secret in a public repository can log right in to the company's cloud services.
- payloads
- The part of an attack or malware file that carries out the harmful action on the target. A phishing email and an exploit are only the delivery steps, while the payload is the ransomware or spyware that actually runs once the computer is compromised.
- URL
- The full web address used to locate a specific page, file, or resource on the internet. Security filters inspect every URL in an incoming message to see whether the domain name is a newly registered lookalike or points to a known credential-harvesting server. Security+ objective 4.5 lists the term
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the The CyberSec Guru website. Cite the article, not this page.
Read the full article on The CyberSec Guru (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: How-to and opinion
"This guide gives beginners a clear HackTheBox path..." Found by reading the article; these exact words are in it
How a story is connected to the course, and every objective, week and job role