STRIDE is a checklist for spotting what could go wrong in an application at design time, and the OWASP Top 10 is a shared list of the web vulnerabilities that developers most often release into live apps.
We just published a 5-hour course on the freeCodeCamp.org YouTube channel that will teach you how to find and fix common security flaws in back end code with Node.js. The course is taught by Jonathan Hill, software engineer and Scrimba instructor, and Rachel Johnson, developer and Scrimba course creator.
It starts with a quick exploit: you edit a URL parameter in a supermarket freezer dashboard to raise the temperature of another store's freezer, then look at the Express code to close the hole. You can also study the course interactively on Scrimba.
In this course, you will learn:
- Threat Modeling with STRIDE & OWASP
How to model potential and feature-based threats for an example app, then triage bugs using the OWASP Top 10 categories. - XSS, SQL Injection & Denial of Service
How attackers insert malicious code and manipulate database queries through input fields, and how they can overwhelm your application. - Input Validation with Zod
How to build Zod schemas, use safeParse and coerce, handle validation errors, and write validation middleware. - Sessions, Tokens & OAuth
How stateful sessions and cookies, stateless opaque bearer tokens and JSON Web Tokens (JWT), and delegated OAuth work, and the pitfalls of each. - Rate Limiting Algorithms
How to build fixed window counter, sliding window, token bucket, and leaky bucket limiters, and identify clients by IP address, user ID, or API key. - Throttling
How to set up throttling middleware, configure delay times, and combine throttling with a rate limiter.
Watch the full course on the freeCodeCamp.org YouTube channel (5-hour watch).
