Free Browser Game · No Download Required

Learn Web Hacking
by Actually Doing It

HackLab drops you into a live terminal with shell access to a fake company's server. Find real vulnerabilities, exploit them, steal the secrets. No tutorials — just hacking.

▶ Play Free — 5 Levels See all levels

How it works

Hack first. Learn why it works second.

Each level gives you real tools and a real target. No guided walkthroughs until you ask for a hint.

01 — READ THE CODE

Explore the server

Use a real terminal to poke around the web server files. Read the source code. Find the bug.

02 — CRAFT THE EXPLOIT

Execute the attack

Use curl, the browser, or the request builder to craft your payload. Inject the input. Steal the secrets.

03 — UNDERSTAND THE FIX

Learn the defense

Every level ends with an explanation of what went wrong and exactly how a real developer would fix it.


All 10 levels

From beginner to advanced

Five free levels covering the OWASP Top 10 essentials. Five advanced levels for real-world attack chains.

LEVEL 01 FREE

Information Leakage

Find credentials hidden in the page source and use them to log in as admin.

OWASP A05 — Security Misconfiguration
LEVEL 02 FREE

Broken Access Control (IDOR)

Access another user's private profile by changing a single number in the URL.

OWASP A01 — Broken Access Control
LEVEL 03 FREE

Cross-Site Scripting (XSS)

Inject a script tag into the search page to steal the admin's session cookie.

OWASP A03 — Injection
LEVEL 04 FREE

SQL Injection

Bypass the admin login without knowing the password using a classic SQL injection payload.

OWASP A03 — Injection
LEVEL 05 FREE

Command Injection

Chain shell commands through a vulnerable diagnostic tool to read secret API keys off the server.

OWASP A03 — Injection
LEVEL 06

Price Manipulation

Buy a $999 laptop for $0.01 by intercepting and modifying the checkout request.

OWASP A04 — Insecure Design
LEVEL 07

Directory Traversal

Escape the image directory using ../ sequences to read admin credentials off the server.

OWASP A01 — Broken Access Control
LEVEL 08

Server-Side Request Forgery

Make the server fetch its own AWS IAM credentials from the EC2 metadata service — just like the Capital One breach.

OWASP A10 — SSRF
LEVEL 09

Mass Assignment

Register as admin by injecting a hidden field into the signup request the form never exposes.

OWASP A04 — Insecure Design
LEVEL 10

Password Reset Poisoning

Hijack the admin's password reset link by poisoning the Host header in the reset request.

OWASP A01 — Broken Access Control

⬡ Levels 6–10 are part of Operation Blacksite — unlock all five together for $0.99.


Pricing

Start free. Go deeper for less than a coffee.

No account required. Progress is saved in your browser.

Free Pack
$0
5 levels covering the OWASP essentials
  • Information Leakage
  • Broken Access Control (IDOR)
  • Cross-Site Scripting (XSS)
  • SQL Injection
  • Command Injection
  • Unlimited hints
Play Free →

FAQ

Common questions

Is this safe to play? Am I actually hacking something?
No real systems are involved. Everything runs in a sandboxed simulator — the "server," the database, and the shell are all virtual. You can't break anything or affect anyone else.
Do I need any prior hacking or security knowledge?
No. Level 1 assumes you know how to use a terminal. If you've written any backend code, you'll be fine. Hints are available whenever you're stuck.
What's the difference between HackLab and TryHackMe or HackTheBox?
Those platforms are broader and deeper — full Linux machines, network challenges, CTFs. HackLab is laser-focused on web application vulnerabilities and designed for developers, not security specialists. It takes an hour, not weeks.
Will my progress be saved if I close the tab?
Yes — your session is stored in localStorage. As long as you use the same browser, your progress persists. Sessions expire after 30 minutes of inactivity on the server side, but the UI state is always restored.
Can I use this to teach a class or team?
Absolutely. Each player gets an isolated session. Just share the link — no accounts or setup needed. Reach out if you want volume access for a team or course.

Ready to start hacking?

No account. No download. Open the terminal and go.

▶ Play Free Now