A hands-on, 45-minute security workshop where you play the attacker. Exploit real vulnerabilities in a deliberately insecure ASP.NET Core API — SQL injection, path traversal, information leakage, and a timing attack — then learn how to defend against them.
| Requirement | Version |
|---|---|
| .NET SDK | 10.0+ |
| An IDE | Rider, Visual Studio, or VS Code |
No other tools or accounts are needed — everything runs locally.
git clone <repo-url>
cd hack-an-api-workshopdotnet run -c Release --project HackWorkshop/HackWorkshop.csprojThe API will be available at http://localhost:5259.
dotnet testYou should see 4 failing tests — your job is to make them pass by exploiting the vulnerabilities.
Open HackWorkshop.Tests/SecurityExploitTests.cs in your IDE. Each test has a TODO comment explaining what you need to do.
Solutions are available on the
solutionsbranch.
Good luck, and happy hacking! 🎉