Cybersecurity-Mastery

Web Security — Track

How the web platform works, how its trust boundaries are drawn, and where they leak.

Your progress in this track

Set up the lab environment below once, then work the lessons — each one is hands-on-first.

Lab Environment

Set up once, then use it for every chapter in the Web Security part. Everything runs locally and isolated — you never touch a system you don't own.

Four classic vulnerable web apps on one isolated network. Point Burp/ZAP and your browser at any of them; every web-security and vulnerability chapter uses one of these.

What you get

TargetHow to reach it
bWAPPhttp://localhost:8081 — 100+ web bugs, best for targeted practice
DVWAhttp://localhost:8082 — adjustable security levels
Juice Shophttp://localhost:8083 — modern SPA, full OWASP Top 10
WebGoathttp://localhost:8084 — guided lessons

Provision it — save this as docker-compose.yml and run docker compose up -d (or import the equivalent spec into CyberForge):

yaml
# web-lab/docker-compose.yml  —  Web Security part environment
services:
  bwapp:
    image: raesene/bwapp
    ports: ["8081:80"]
    networks: [labnet]
  dvwa:
    image: vulnerables/web-dvwa
    ports: ["8082:80"]
    networks: [labnet]
  juice-shop:
    image: bkimminich/juice-shop
    ports: ["8083:3000"]
    networks: [labnet]
  webgoat:
    image: webgoat/webgoat
    ports: ["8084:8080"]
    networks: [labnet]

networks:
  labnet:
    driver: bridge
    # routed here so your browser/Burp on the host can reach the apps;
    # for a jeopardy-style setup put the attacker box on labnet and set internal: true

Attacker box. Drive these from your browser through Burp Suite or OWASP ZAP as an intercepting proxy. sqlmap, ffuf, nikto, wpscan and friends all run from Kali against the published ports.

Verify it works

  • docker compose up -d then browse to http://localhost:8081 (bWAPP install page) — run its install.php once to initialise the database.
  • Juice Shop answers on http://localhost:8083 immediately.

Notes

  • First bWAPP run: visit /install.php to create the DB. DVWA: log in admin/password, click 'Create/Reset Database', then set the security level per exercise.

Teardown. docker compose down stops it; add -v to also drop volumes. Snapshot before big changes so you can revert.

Safety. Keep intentionally-vulnerable targets on an isolated/internal network. Never expose them to the internet or attack anything outside this lab.

Lessons

#LessonDifficultyHands-onWhat you'll do
1Web Application Architecture🟢 Beginner~36mClients, servers, reverse proxies, APIs, SPAs, rendering models and where controls belong.
2HTTP for Security Testing🟢 Beginner~48mMethod semantics, header trust, caching, redirects, parsers and desync-prone constructs.
3Cookies🟢 Beginner~36mAttributes, scope, SameSite, prefixes, partitioning and cookie tossing/injection.
4Session Management🟡 Intermediate~48mSession identifiers, fixation, invalidation, server vs stateless sessions and concurrency.
5Web Authentication🟡 Intermediate~60mPassword flows, MFA, WebAuthn/passkeys, magic links, rate limiting and account recovery abuse.
6Authorization🟡 Intermediate~60mRBAC, ABAC, ReBAC, policy engines, multi-tenancy and the roots of broken access control.
7JSON Web Tokens🟡 Intermediate~48mJWS/JWE structure, alg confusion, kid injection, claims validation and revocation strategy.
8OAuth 2.0 and 2.1🟠 Advanced~72mGrant types, PKCE, redirect URI validation, token leakage and confused-deputy attacks.
9OpenID Connect🟠 Advanced~48mID tokens, discovery, nonce/state, hybrid flow risks and identity-provider mix-up attacks.
10SAML🟠 Advanced~60mAssertions, bindings, signature wrapping, XSW attacks and canonicalisation pitfalls.
11OWASP Top 10🟢 Beginner~60mThe 2021 categories mapped to concrete bug classes, tests and remediations.
12API Security🟡 Intermediate~72mREST design flaws, OWASP API Top 10, mass assignment, BOLA/BFLA and gateway controls.
13GraphQL Security🟠 Advanced~48mIntrospection, query depth/complexity abuse, batching attacks and resolver-level authorization.
14WebSockets🟡 Intermediate~36mUpgrade handshake, origin checks, CSWSH, message-level authorization and proxying.
15CORS🟡 Intermediate~36mPreflights, credentialed requests, reflected origins, null origin and misconfiguration impact.
16Content Security Policy🟠 Advanced~48mDirectives, nonces, strict-dynamic, common bypasses and rollout with report-only.
17Browser Security Model🟡 Intermediate~60mSame-origin policy, site isolation, sandboxing, storage partitioning and security headers.
18File Upload Security🟡 Intermediate~36mContent-type and extension validation, path handling, image parsers and storage isolation.
19Client-Side Security🟠 Advanced~60mDOM clobbering, prototype pollution, postMessage, clickjacking and supply-chain scripts.
20Web Cache Poisoning and Deception🟠 Advanced~48mCache keys, unkeyed input, poisoning primitives, deception and CDN-level defences.
21HTTP Request Smuggling🔴 Expert~60mCL.TE, TE.CL, TE.TE, H2 downgrade desync, discovery methodology and exploitation impact.

21 lessons.

← Repository home · Full contents · Labs campaign

Cybersecurity-Mastery — interactive security learning · runs locally