EXPLORER
▾ learn
  • 01How to read code like a risk auditor
  • 02Authentication is not authorisation
  • 03Race conditions and TOCTOU
  • 04Validate values, not just types
  • 05Injection: data must never become code
  • 06Storing passwords: why fast hashes fail
  • 07JWT: the signature is the whole point
  • 08Next.js: the server is the trust boundary
  • 09XSS and open redirects: when data becomes markup or a destination
  • 10Language traps: what to catch in PHP, Python, Kotlin and TypeScript
  • 11Files, paths and includes
  • 12Deserialisation and eval: when data becomes code
  • 13Errors that hide bugs: swallowed exceptions, shared state and false success
  • 14Basic checks: sign, zero, empty, null, NaN and bounds
  • 15Memory and numbers: C, C++ and Rust
  • 16Go, C# and Python: traps a reviewer must see
  • 17Priority and fixes that stick
  • 18Interview questions, from junior to senior
▾ challenges
Authorization
  • Another customer's balance
  • Account lookup by id in Spring Kotlin
  • Profile update that binds the whole entity
  • Admin check written as an assert
Business logic
  • Negative amount
  • Coupon redeemed twice
  • Batch payments with a shared default list
  • Adding a fee with floating-point euros
  • Paying invoices with forEach and an async callback
  • Transfer that ignores errors
  • Two debits in parallel
  • Shared cache without a lock
Authentication & cryptography
  • JWT without signature check
  • Login handler that logs its input
  • Comparing secrets with == in a guard
  • Login with SHA-256
  • Password reset token compared with ==
  • Password reset that accepts a missing token
  • Six-digit reset codes from System.Random
Injection & input
  • Statement query built with an f-string
  • PHP login built with string concatenation
  • PHP profile page echoing request values
  • Serving files from an upload directory
  • Webhook test feature
  • Network diagnostics in Java
  • Receipt reference from the URL hash
  • Front controller including a page from the URL
  • Preferences stored as a pickle in a cookie
  • Session read with Java serialisation
  • Ping through a shell in Rust
  • Merging user preferences
Next.js / React
  • Full object sent to the client
  • Redirect after login
  • Server Action without authorisation
  • Admin area protected only by middleware
  • Shared notes with HTML
Basic checks: sign, zero, empty, null
  • Withdraw with a negative amount
  • Average fee with no transactions
  • Amount check that lets NaN through
  • Pagination with page zero
  • Profile endpoint that crashes on a missing user
Memory and numbers (C, C++, Rust)
  • Copying a name into a fixed buffer
  • Order total that wraps around
  • Reading a quantity in Rust
  • Logging a username with printf
  • Using a session after it was freed
reviews/

Pull request reviews

Real-looking pull requests with a few problems hidden in the diff. Review them the way you would at work: select lines, write comments with a severity, submit, then compare with the reviewer's findings.

  • TypeScript3 hidden problemsP1 · Critical

    Add an invoice export endpoint

    Adds GET /api/invoices/export so customers can download their invoices as CSV. Uses the existing invoice repository. Tested locally with two accounts; both see their own invoices.

  • Python3 hidden problemsP1 · Critical

    Cache the account summary and log the request

    Speeds up the summary endpoint by caching account_summary with lru_cache. Adds request logging for support so we can trace slow calls. Load tested: p95 dropped from 480 ms to 35 ms.

  • Kotlin3 hidden problemsP1 · Critical

    Retry card charges and verify the webhook

    Adds PaymentService.charge with a soft retry: gateway errors return OK because the nightly job will retry them. Adds webhook verification with a shared secret. Customer id is read from the X-Customer-Id header set by the API gateway.

AppSec Lab… · …TypeScript · Python · Java