Challenges
Each challenge is a real snippet. Find the problem, prioritise it, then remediate. Open the linked lesson in the editor if you need the concept first.
| Challenge | Area | Language | Level | Best |
|---|---|---|---|---|
| Another customer's balance | Authorization | TypeScript | ●○○ | — |
| Negative amount | Business logic | TypeScript | ●○○ | — |
| JWT without signature check | Authentication & cryptography | Python | ●○○ | — |
| Statement query built with an f-string | Injection & input | Python | ●○○ | — |
| Full object sent to the client | Next.js / React | TypeScript | ●○○ | — |
| Redirect after login | Next.js / React | TypeScript | ●○○ | — |
| PHP login built with string concatenation | Injection & input | PHP | ●○○ | — |
| PHP profile page echoing request values | Injection & input | PHP | ●○○ | — |
| Serving files from an upload directory | Injection & input | Python | ●○○ | — |
| Account lookup by id in Spring Kotlin | Authorization | Kotlin | ●○○ | — |
| Login handler that logs its input | Authentication & cryptography | Kotlin | ●○○ | — |
| Withdraw with a negative amount | Basic checks: sign, zero, empty, null | Python | ●○○ | — |
| Average fee with no transactions | Basic checks: sign, zero, empty, null | C# | ●○○ | — |
| Amount check that lets NaN through | Basic checks: sign, zero, empty, null | TypeScript | ●○○ | — |
| Comparing secrets with == in a guard | Authentication & cryptography | JavaScript | ●○○ | — |
| Login with SHA-256 | Authentication & cryptography | Python | ●●○ | — |
| Webhook test feature | Injection & input | TypeScript | ●●○ | — |
| Network diagnostics in Java | Injection & input | Java | ●●○ | — |
| Server Action without authorisation | Next.js / React | TypeScript | ●●○ | — |
| Admin area protected only by middleware | Next.js / React | TypeScript | ●●○ | — |
| Shared notes with HTML | Next.js / React | TypeScript | ●●○ | — |
| Coupon redeemed twice | Business logic | TypeScript | ●●○ | — |
| Receipt reference from the URL hash | Injection & input | TypeScript | ●●○ | — |
| Front controller including a page from the URL | Injection & input | PHP | ●●○ | — |
| Password reset token compared with == | Authentication & cryptography | PHP | ●●○ | — |
| Preferences stored as a pickle in a cookie | Injection & input | Python | ●●○ | — |
| Batch payments with a shared default list | Business logic | Python | ●●○ | — |
| Profile update that binds the whole entity | Authorization | Kotlin | ●●○ | — |
| Adding a fee with floating-point euros | Business logic | TypeScript | ●●○ | — |
| Paying invoices with forEach and an async callback | Business logic | TypeScript | ●●○ | — |
| Pagination with page zero | Basic checks: sign, zero, empty, null | Python | ●●○ | — |
| Profile endpoint that crashes on a missing user | Basic checks: sign, zero, empty, null | C# | ●●○ | — |
| Password reset that accepts a missing token | Authentication & cryptography | JavaScript | ●●○ | — |
| Copying a name into a fixed buffer | Memory and numbers (C, C++, Rust) | C | ●●○ | — |
| Order total that wraps around | Memory and numbers (C, C++, Rust) | C | ●●○ | — |
| Reading a quantity in Rust | Memory and numbers (C, C++, Rust) | Rust | ●●○ | — |
| Transfer that ignores errors | Business logic | Go | ●●○ | — |
| Six-digit reset codes from System.Random | Authentication & cryptography | C# | ●●○ | — |
| Admin check written as an assert | Authorization | Python | ●●○ | — |
| Session read with Java serialisation | Injection & input | Java | ●●○ | — |
| Ping through a shell in Rust | Injection & input | Rust | ●●○ | — |
| Logging a username with printf | Memory and numbers (C, C++, Rust) | C++ | ●●○ | — |
| Two debits in parallel | Business logic | TypeScript | ●●● | — |
| Merging user preferences | Injection & input | TypeScript | ●●● | — |
| Using a session after it was freed | Memory and numbers (C, C++, Rust) | C++ | ●●● | — |
| Shared cache without a lock | Business logic | Go | ●●● | — |