challenges/

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.

ChallengeAreaLanguageLevelBest
Another customer's balanceAuthorizationTypeScript●○○—
Negative amountBusiness logicTypeScript●○○—
JWT without signature checkAuthentication & cryptographyPython●○○—
Statement query built with an f-stringInjection & inputPython●○○—
Full object sent to the clientNext.js / ReactTypeScript●○○—
Redirect after loginNext.js / ReactTypeScript●○○—
PHP login built with string concatenationInjection & inputPHP●○○—
PHP profile page echoing request valuesInjection & inputPHP●○○—
Serving files from an upload directoryInjection & inputPython●○○—
Account lookup by id in Spring KotlinAuthorizationKotlin●○○—
Login handler that logs its inputAuthentication & cryptographyKotlin●○○—
Withdraw with a negative amountBasic checks: sign, zero, empty, nullPython●○○—
Average fee with no transactionsBasic checks: sign, zero, empty, nullC#●○○—
Amount check that lets NaN throughBasic checks: sign, zero, empty, nullTypeScript●○○—
Comparing secrets with == in a guardAuthentication & cryptographyJavaScript●○○—
Login with SHA-256Authentication & cryptographyPython●●○—
Webhook test featureInjection & inputTypeScript●●○—
Network diagnostics in JavaInjection & inputJava●●○—
Server Action without authorisationNext.js / ReactTypeScript●●○—
Admin area protected only by middlewareNext.js / ReactTypeScript●●○—
Shared notes with HTMLNext.js / ReactTypeScript●●○—
Coupon redeemed twiceBusiness logicTypeScript●●○—
Receipt reference from the URL hashInjection & inputTypeScript●●○—
Front controller including a page from the URLInjection & inputPHP●●○—
Password reset token compared with ==Authentication & cryptographyPHP●●○—
Preferences stored as a pickle in a cookieInjection & inputPython●●○—
Batch payments with a shared default listBusiness logicPython●●○—
Profile update that binds the whole entityAuthorizationKotlin●●○—
Adding a fee with floating-point eurosBusiness logicTypeScript●●○—
Paying invoices with forEach and an async callbackBusiness logicTypeScript●●○—
Pagination with page zeroBasic checks: sign, zero, empty, nullPython●●○—
Profile endpoint that crashes on a missing userBasic checks: sign, zero, empty, nullC#●●○—
Password reset that accepts a missing tokenAuthentication & cryptographyJavaScript●●○—
Copying a name into a fixed bufferMemory and numbers (C, C++, Rust)C●●○—
Order total that wraps aroundMemory and numbers (C, C++, Rust)C●●○—
Reading a quantity in RustMemory and numbers (C, C++, Rust)Rust●●○—
Transfer that ignores errorsBusiness logicGo●●○—
Six-digit reset codes from System.RandomAuthentication & cryptographyC#●●○—
Admin check written as an assertAuthorizationPython●●○—
Session read with Java serialisationInjection & inputJava●●○—
Ping through a shell in RustInjection & inputRust●●○—
Logging a username with printfMemory and numbers (C, C++, Rust)C++●●○—
Two debits in parallelBusiness logicTypeScript●●●—
Merging user preferencesInjection & inputTypeScript●●●—
Using a session after it was freedMemory and numbers (C, C++, Rust)C++●●●—
Shared cache without a lockBusiness logicGo●●●—