ROOM 1 OF 5

The Vulnerability Mindset & OWASP Top 10

Learn how web applications fail under input manipulation and why trusting user input is the root of all evil

Prerequisites: "Getting Started" Web & CLI rooms
LEARNING MATERIAL

What is a Vulnerability?

The Core Concept: Every piece of software contains bugs — coding errors that cause unexpected behavior. A bug becomes a vulnerability when that unexpected behavior can be leveraged to compromise security. Think of it like a door that accidentally unlocks from the outside; the faulty lock is the bug, but the fact that burglars can use it makes it a vulnerability.

Input Sanitization: The fundamental problem is that applications trust user input. They assume you'll type your name in a "Name" field and a number in an "Age" field. But attackers think differently — they type database queries, JavaScript payloads, or system commands. This is called injection, and it's the root cause of most web vulnerabilities.

Command Injection: Imagine a web app with a ping tool that runs ping . An attacker enters 8.8.8.8; cat /etc/passwd. The semicolon is a command separator, so the system runs TWO commands: ping AND cat /etc/passwd. The attacker has escaped the intended functionality.

Broken Authentication: Developers implement shortcuts like sending OTPs in URL parameters (/reset?otp=123456), using predictable session IDs (sequential numbers), storing passwords in plaintext, or not implementing rate limiting on login forms. Each of these shortcuts creates an exploitable vulnerability.

YOUR MISSION

  • Complete the knowledge check on web vulnerabilities and input validation
KNOWLEDGE CHECK

QUESTION 1 OF 4

What is the root cause of most web application vulnerabilities?

Trusting user input without proper validation or sanitization
Slow internet connections
Using older programming languages
Having too many users

QUESTION 2 OF 4

What does the command injection payload "8.8.8.8; cat /etc/passwd" do?

Uses the semicolon as a command separator to execute two commands: ping AND read the password file
Pings the DNS server 8.8.8.8
Crashes the web server
Deletes the /etc directory

QUESTION 3 OF 4

Why is sending OTP tokens in URL parameters insecure?

URL parameters are logged by web servers, proxies, and browser history, making the OTP visible to anyone with log access
URL parameters expire too quickly
URL parameters only work with HTTPS
URL parameters are encrypted by default

QUESTION 4 OF 4

What is a bug vs a vulnerability?

A bug is a coding error; a vulnerability is a bug that can be exploited to compromise security
They are the same thing
A vulnerability is always intentional
Only bugs in video games matter
⬤ 0 / 4 Questions Correct
ROOM 2 OF 5

Network Traffic Analysis

Learn to capture, read, and analyze packets flowing through a network

Prerequisites: "Getting Started" Networking room
LEARNING MATERIAL

Packet-Level Analysis

How Data Travels: When you load a webpage, your data is broken into thousands of tiny packets. Each packet has a header (source/destination IP, ports, sequence numbers) and a payload (the actual data). Understanding packet structure lets you reconstruct conversations from captures.

TCP 3-Way Handshake: Before data exchange, TCP establishes a connection: SYN (client: "hello?"), SYN-ACK (server: "I hear you"), ACK (client: "confirmed"). This three-step dance ensures both sides are ready. You'll always see these three packets at the start of a connection in a packet capture.

Cleartext vs. Encrypted: HTTP sends everything in cleartext — passwords, cookies, messages — all readable by anyone capturing traffic. HTTPS encrypts the payload with TLS, so even if packets are captured, attackers see only encrypted gibberish. This is why every website should use HTTPS, and why network security professionals use Wireshark filters like http.request.method == "POST" to find login credentials in packet captures.

YOUR MISSION

  • Complete the knowledge check on network traffic analysis
KNOWLEDGE CHECK

QUESTION 1 OF 4

What are the three packets in the TCP 3-way handshake?

SYN, ACK, FIN
SYN, SYN-ACK, RST
SYN, SYN-ACK, ACK
ACK, ACK-SYN, SYN

QUESTION 2 OF 4

What does a Wireshark filter of "http.request.method == POST" help you find?

All encrypted traffic
Only images being loaded
Only CSS files
HTTP POST requests, which often contain login form submissions with usernames and passwords

QUESTION 3 OF 4

What is the difference between HTTP and HTTPS at the packet level?

HTTP sends data in cleartext (readable in packet capture); HTTPS encrypts the payload with TLS
HTTP uses TCP, HTTPS uses UDP
There is no difference
HTTPS is slower than HTTP

QUESTION 4 OF 4

What information is in a packet header?

Source and destination IP addresses, ports, protocol type, and sequence numbers
The entire website content
Only the destination IP
User passwords
⬤ 0 / 4 Questions Correct
ROOM 3 OF 5

Active Reconnaissance

Move beyond basic port scanning to map out an entire target's attack surface

Prerequisites: Basic networking and CLI
LEARNING MATERIAL

Reconnaissance Methodologies

Passive Recon (OSINT): Gathering information WITHOUT interacting with the target. Sources include WHOIS databases, Google dorks (advanced search operators), Shodan (internet-connected device search), social media, and public code repositories. Passive recon is undetectable.

Active Recon: Direct interaction with the target through port scanning (nmap), service enumeration, version fingerprinting, and directory brute-forcing. Active recon can be detected by intrusion detection systems and firewalls.

Nmap Techniques: The -sV flag probes open ports to determine service/version info (e.g., "Apache 2.4.41"). -p- scans all 65,535 ports instead of the default 1000. -sS performs a stealth SYN scan that never completes the TCP handshake, making it harder to detect.

Directory Brute-Forcing: Tools like Gobuster and Dirb use wordlists of common directory names to find hidden paths on web servers. Finding /admin, /backup, or /.git can reveal sensitive information. This technique played a key role in the Equifax and SolarWinds breaches.

YOUR MISSION

  • Complete the knowledge check on reconnaissance and OSINT
KNOWLEDGE CHECK

QUESTION 1 OF 4

What distinguishes passive reconnaissance from active reconnaissance?

Passive recon does not interact with the target (undetectable); active recon directly probes the target (detectable)
Passive recon is faster than active recon
Active recon uses only public information
There is no difference

QUESTION 2 OF 4

What does the nmap "-sV" flag do?

Scans all 65535 ports
Performs a stealth SYN scan
Probes open ports to determine the service version and software running
Scans for vulnerabilities

QUESTION 3 OF 4

What is directory brute-forcing used for?

Finding hidden paths on web servers (like /admin, /backup, /.git) that aren't linked from the homepage
Guessing database passwords
Testing network speed
Encrypting files

QUESTION 4 OF 4

Why is active reconnaissance considered illegal without authorization?

Directly probing systems generates traffic and logs that can disrupt services, and unauthorized scanning violates computer fraud laws
It consumes too much electricity
It only works on certain operating systems
It requires special government permission
⬤ 0 / 4 Questions Correct
ROOM 4 OF 5

Introduction to Privilege Escalation

Breaking in is only step one — getting administrative access is what counts

Prerequisites: Basic CLI and Web exploits
LEARNING MATERIAL

Privilege Escalation Fundamentals

Root vs. Regular Users: Every Linux system has a superuser called root (UID 0) with unlimited power. Regular users operate within strict boundaries. Most security breaches start with a low-privilege account compromise (through phishing, vulnerable web apps, or weak passwords). Privilege escalation is the step where attackers upgrade that low-access account to root, enabling data theft, backdoor installation, or complete system takeover.

SUID Executables: The Set User ID (SUID) bit allows a program to run with the file owner's permissions instead of the user's. For example, passwd needs SUID to modify /etc/shadow. The danger comes from root-owned scripts with SUID that are also world-writable — any user can modify the script and their modifications will run as root.

Common Escalation Vectors: Writable scripts executed by cron jobs as root, sudo misconfigurations allowing specific commands to run as root, kernel exploits (like Dirty COW CVE-2016-5195), and exposed credentials in configuration files or backups.

YOUR MISSION

  • Complete the knowledge check on privilege escalation concepts
KNOWLEDGE CHECK

QUESTION 1 OF 4

What does the SUID (Set User ID) bit do?

Allows a program to run with the file owner's permissions instead of the executing user's permissions
Deletes the file after execution
Encrypts the file contents
Makes the file read-only

QUESTION 2 OF 4

Why is a root-owned script with SUID AND world-writable permissions dangerous?

Any user can modify the script, and because it runs with SUID, the modifications execute as root
It consumes more memory
It runs slower than non-SUID scripts
It can only be run by root

QUESTION 3 OF 4

What is the first step attackers typically take after gaining initial low-privilege access?

Privilege escalation — attempting to gain root or administrative access to expand their control
Deleting system logs
Installing games
Rebooting the server

QUESTION 4 OF 4

How do attackers find SUID binaries on a Linux system?

By running: find / -perm -4000 2>/dev/null — this searches for files with the SUID bit set
By checking /etc/shadow
By using the ls command without arguments
By running: ps aux
⬤ 0 / 4 Questions Correct
ROOM 5 OF 5

The Capstone Challenge

A comprehensive multi-phase challenge — chain together recon, exploitation, and privilege escalation

Prerequisites: Rooms 1-4
CAPSTONE REVIEW

Operation: Full Attack Chain

This capstone brings together vulnerability identification, network traffic analysis, reconnaissance, and privilege escalation into a comprehensive security review. In a real-world penetration test, these phases build on each other: reconnaissance identifies the target's attack surface, vulnerability analysis identifies exploitable weaknesses, exploitation gains initial access, and privilege escalation converts that access into full system compromise.

The Penetration Testing Methodology: 1) Planning & Reconnaissance (defining scope and gathering intelligence), 2) Scanning (identifying open ports and services), 3) Gaining Access (exploiting vulnerabilities), 4) Maintaining Access (establishing persistence), and 5) Analysis & Reporting (documenting findings and recommendations).

Critical Security Concepts: Understanding the full attack chain is essential for both offense and defense. Security professionals who understand how attacks work can build more effective defenses. The OWASP Top 10, network segmentation, least privilege, and defense in depth are principles that protect against every stage of the kill chain.

YOUR MISSION

  • Complete the capstone knowledge check to finish the path
CAPSTONE CHECK

QUESTION 1 OF 4

You find an open SSH port during a penetration test. What is your next step?

Enumerate the service version with nmap -sV and check for known vulnerabilities in that SSH version
Immediately try to log in with the root account
Ignore it — SSH is always secure
Close the port

QUESTION 2 OF 4

After exploiting a command injection vulnerability to get a shell as www-data, what should you do next?

Enumerate the system for privilege escalation vectors: SUID binaries, writable scripts, kernel version, sudo permissions
Stop and celebrate
Delete all website files
Immediately report the vulnerability and stop testing

QUESTION 3 OF 4

What is the most important output of a professional penetration test?

A comprehensive report documenting findings, exploitation steps, business impact, and prioritized remediation recommendations
The list of stolen data
The root password of the compromised system
A screenshot of the root flag

QUESTION 4 OF 4

How does understanding the full attack chain help defenders?

Understanding how attacks chain together helps defenders implement layered controls that can break the chain at multiple points
It doesn't help — defenders only need to patch software
Defenders only need to focus on preventing initial access
Understanding attacks only helps attackers
⬤ 0 / 4 Questions Correct