Secure code review · hands-on

Read code like a security engineer.

Find the vulnerable lines, explain why they are dangerous, walk through the flow, and fix the cause. Lessons teach the idea; tutorials walk you through real code in TypeScript, Python, PHP, Kotlin and Java.

0/18lessons understood
0/46challenges attempted

Your path

Each lesson is practised by one or more challenges.
  1. 01Read

    How to read code like a risk auditor

    A repeatable method for any endpoint: context, sources, sinks, controls and logic.

  2. 02Read

    Authentication is not authorisation

    A valid session proves who is calling. It does not prove the caller may act on this object.

    TypeScriptKotlin2 challenges
  3. 03Read

    Race conditions and TOCTOU

    Two requests that each pass a check alone can break an invariant together.

    TypeScriptTypeScript2 challenges
  4. 04Read

    Validate values, not just types

    A value can have the right type and still be wrong for the business.

    TypeScriptTypeScript2 challenges
  5. 05Read

    Injection: data must never become code

    Injection happens when untrusted input is interpreted as part of a command.

    PythonJavaTypeScript5 challenges
  6. 06Read

    Storing passwords: why fast hashes fail

    A password store must make guessing expensive, and must assume the database will leak one day.

    Python1 challenge
  7. 07Read

    JWT: the signature is the whole point

    A JWT payload is readable and editable by anyone. Only the signature, verified by the server, makes it trustworthy.

    Python1 challenge
  8. 08Read

    Next.js: the server is the trust boundary

    Many things in a Next.js app look like UI but are server endpoints. Treat each one as a public API.

    TypeScriptTypeScriptTypeScript3 challenges
  9. 09Read

    XSS and open redirects: when data becomes markup or a destination

    Cross-site scripting happens when one party's data is interpreted as HTML or JavaScript by another party's browser.

    TypeScriptTypeScriptTypeScript4 challenges
  10. 10Read

    Language traps: what to catch in PHP, Python, Kotlin and TypeScript

    Each language has sharp edges. Knowing them turns a skim of the code into a real review.

    PHPKotlinKotlin4 challenges
  11. 11Read

    Files, paths and includes

    Any value that becomes a file path is a traversal, inclusion or upload risk.

    PythonPHP2 challenges
  12. 12Read

    Deserialisation and eval: when data becomes code

    Some formats describe how to rebuild objects, and rebuilding an object can run code.

    PythonJava2 challenges
  13. 13Read

    Errors that hide bugs: swallowed exceptions, shared state and false success

    Some of the worst bugs report success. Look for the places where errors disappear and state goes wrong.

    PythonTypeScript2 challenges
  14. 14Read

    Basic checks: sign, zero, empty, null, NaN and bounds

    The simplest checks are the ones reviewers skip. Each one below has caused a real incident.

    PythonC#TypeScript7 challenges
  15. 15Read

    Memory and numbers: C, C++ and Rust

    In C and C++, the programmer owns every byte and every limit. Rust moves many of those checks to the compiler, but not all of them.

    CCC++5 challenges
  16. 16Read

    Go, C# and Python: traps a reviewer must see

    Each language hides a few sharp edges in ordinary-looking code. These are the ones that cause incidents.

    GoGoC#4 challenges
  17. 17Read

    Priority and fixes that stick

    A finding only matters once it is fixed, and the fix has to address the cause, not the symptom.

  18. 18Read

    Interview questions, from junior to senior

    The questions you will be asked, with model answers that show the method, not just the facts.

By area

  • Authorization0/4
  • Business logic0/8
  • Authentication & cryptography0/7
  • Injection & input0/12
  • Next.js / React0/5
  • Basic checks: sign, zero, empty, null0/5
  • Memory and numbers (C, C++, Rust)0/5

Under pressure

A timed drill mixes challenges from every language and gives each one a clock. Use it to practise finding and fixing issues fast.