Learn · Web simulator

Web attack simulator

Five classic web vulnerabilities explained in four phases: context, bug, impact, defence. Pick an attack, change the input and watch in the log what a vulnerable server would do.

Who it is for, prerequisites and goals
Who it is for
Web developers, and anyone starting out in offensive security with a defensive mindset.
Prerequisites
Basics of HTTP, HTML and SQL; an idea of what a session cookie is.

Learning objectives

  • Recognise where each vulnerability originates in the code and in the flow of a request.
  • Assess the real impact of each attack, without overstating or understating it.
  • Match each class of vulnerability with the correct, verifiable defence.

No network requests, no real database, no commands executed. Techniques are shown for study and defence only: use them exclusively on your own systems or with written authorisation. For guided scenarios in a terminal, open the Virtual lab.

Catalogue

Pick the attack

The mechanism

Understand what happens

    Lab

    Try it and read the log

    Offline SQL Injection Last run: —

    Console — SQL injection (simulated)

    Try admin or paste admin' OR '1'='1 into the username field. The log describes what the vulnerable server would do.

    [READY] Teaching environment — no real database involved
    [INFO] Press the button: the four phases above light up one at a time
    Typical impact: critical
    Console — XSS (simulated)

    Enter a normal comment or try <script>alert(1)</script>. No script is executed: the log only describes the flow.

    [READY] XSS followed from the comment being published to it being displayed
    Typical impact: high
    Console — Brute force (simulated)

    The wordlist below is for teaching only. The simulation shows attempts and fictitious HTTP responses; it sends no requests to real login pages.

    [READY] Attempt/response loop simulated locally
    Typical impact: high
    Console — Insecure upload (simulated)

    Teaching example: a file called foto.jpg that actually contains server-side code. No file is written to disk.

    [READY] File validation explained step by step
    Typical impact: critical
    Console — CSRF (simulated)

    Fictitious domains (bank.example.com). The log shows how the browser automatically attaches the session cookie to a request you never chose to make.

    [READY] No network requests to real domains
    Typical impact: high