Cybersecurity-Mastery

Vulnerabilities — Track

Bug classes from first principles: root cause, exploitation, detection and durable fixes. Each chapter maps to CWE, CAPEC, OWASP and real CVEs.

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 Vulnerabilities part. Everything runs locally and isolated — you never touch a system you don't own.

Reuses the Web Security apps for injection/logic bugs, and adds a disposable build box for the memory-corruption chapters (compile and exploit vulnerable C locally).

What you get

TargetHow to reach it
bWAPP / DVWA / Juice Shopthe web bug targets (see the Web Security part environment)
pwn-boxUbuntu build/debug container for buffer/heap/format-string labs

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

yaml
# vuln-lab/docker-compose.yml  —  Vulnerabilities part environment
services:
  bwapp:
    image: raesene/bwapp
    ports: ["8081:80"]
    networks: [labnet]
  dvwa:
    image: vulnerables/web-dvwa
    ports: ["8082:80"]
    networks: [labnet]
  pwn-box:
    image: ubuntu:22.04
    container_name: pwn-box
    cap_add: ["SYS_PTRACE"]          # allow gdb inside the container
    security_opt: ["seccomp=unconfined"]
    command: sleep infinity
    networks: [labnet]

networks:
  labnet:
    driver: bridge

Attacker box. Web bugs: Burp/ZAP + Kali web tooling. Memory corruption: work inside pwn-box (docker exec -it pwn-box bash), install build-essential gdb python3-pip, add pwntools/pwndbg, and compile targets with mitigations toggled.

Verify it works

  • docker exec -it pwn-box bash gives a root shell in the build box.
  • gcc --version after installing build-essential; gdb ./vuln works with SYS_PTRACE.

Notes

  • pwn-box grants SYS_PTRACE and unconfined seccomp for debugging only — keep it on the isolated network.

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
1Vulnerability Taxonomy🟢 Beginner~30mHow CWE, CAPEC, OWASP and ATT&CK relate, and how to classify a finding correctly.
2SQL Injection🟡 Intermediate~72mQuery context, union and error-based extraction, stacked queries and parameterised defences.
3Blind SQL Injection🟠 Advanced~60mBoolean, time-based and out-of-band inference, plus automation and WAF-aware tuning.
4NoSQL Injection🟡 Intermediate~36mOperator injection, type juggling in document stores and server-side JavaScript execution.
5Cross-Site Scripting🟡 Intermediate~72mReflected, stored and DOM sinks, contexts, encoding rules and the modern XSS defence stack.
6Stored XSS🟡 Intermediate~36mPersistence paths, admin-panel escalation, sanitiser bypasses and worm behaviour.
7DOM-Based XSS🟠 Advanced~48mSource-to-sink dataflow, client-side templating, Trusted Types and DOM Invader workflow.
8Cross-Site Request Forgery🟡 Intermediate~48mState-changing requests, token patterns, SameSite behaviour and CSRF-in-JSON edge cases.
9Server-Side Request Forgery🟠 Advanced~72mURL parsing, cloud metadata theft, blind SSRF, DNS rebinding and egress-control defences.
10Remote Code Execution🟠 Advanced~72mHow arbitrary code execution is reached, chained and stabilised, plus containment strategies.
11Local File Inclusion🟡 Intermediate~48mInclude semantics, wrappers, log poisoning, session-file abuse and LFI-to-RCE chains.
12Remote File Inclusion🟡 Intermediate~30mRemote include conditions, language configuration and hosting payloads safely in a lab.
13Directory Traversal🟢 Beginner~36mPath canonicalisation, encoding tricks, chroot/jail limits and safe file-access patterns.
14XML External Entity Injection🟠 Advanced~48mDTDs, entity expansion, blind OOB exfiltration, SSRF pivots and parser hardening.
15OS Command Injection🟡 Intermediate~48mShell metacharacters, argument injection, blind detection and safe process invocation.
16Server-Side Template Injection🟠 Advanced~60mEngine fingerprinting, sandbox escapes in Jinja2/Twig/Freemarker and template-to-RCE chains.
17Insecure Deserialization🔴 Expert~72mObject graphs, gadget chains in Java/.NET/PHP/Python and format-level mitigations.
18Insecure Direct Object References🟢 Beginner~36mObject-level authorization, identifier enumeration, tenant isolation and systematic testing.
19Race Conditions🟠 Advanced~60mTOCTOU, limit-overrun, single-packet attacks and locking or idempotency defences.
20Memory Corruption🔴 Expert~72mMemory layout, corruption primitives, exploit mitigations and the modern exploitation pipeline.
21Buffer Overflows🟠 Advanced~72mBounds-check failures, overwrite targets, shellcode and mitigation-aware exploitation.
22Stack-Based Overflows🟠 Advanced~72mSaved return addresses, canaries, ASLR/DEP, ROP chains and a full local lab exploit.
23Heap-Based Overflows🔴 Expert~84mAllocator internals, chunk metadata, use-after-free, tcache poisoning and heap grooming.
24Integer Overflows🟠 Advanced~48mWrap-around, truncation, signedness confusion and the allocation bugs they cause.
25Format String Vulnerabilities🟠 Advanced~48mVarargs abuse, %n writes, memory disclosure and arbitrary-write exploitation.
26Authentication Bypass🟡 Intermediate~48mLogic gaps, forced browsing, token forgery, response tampering and 2FA bypass patterns.
27Business Logic Vulnerabilities🟠 Advanced~60mWorkflow abuse, price and quantity manipulation, state machines and non-scannable bugs.
28Privilege Escalation Concepts🟡 Intermediate~48mVertical vs horizontal escalation, trust boundaries and escalation primitives across platforms.
29CWE Top 25 Reference🟡 Intermediate~60mEvery entry in the CWE Top 25 with root cause, example, detection and fix.
30Dependency and Supply Chain Vulnerabilities🟠 Advanced~48mTyposquatting, dependency confusion, build compromise and reproducible-build defences.

30 lessons.

← Repository home · Full contents · Labs campaign

Cybersecurity-Mastery — interactive security learning · runs locally