Syllabus

  1. 01Cross-Site Scripting in AngularWhat Angular sanitises for you, what the bypassSecurityTrust methods switch off, and how a Content Security Policy and Trusted Types catch what slips through.3 lessons
    1. 01What Angular Does with Untrusted Values
    2. 02Bypassing Sanitisation, and Safer Options
    3. 03A Second Layer: CSP and Trusted Types
  2. 02Access Control and Request ForgeryWhy changing an ID in a URL can expose someone else's data, where the real check has to live, and how Angular's HttpClient helps a server defend against cross-site request forgery.2 lessons
    1. 01Changing the ID in the URL
    2. 02Cross-Site Request Forgery and HttpClient
  3. 03Prototype PollutionHow an innocent-looking JSON key called __proto__ can change every object in a running program, which code shapes allow it, and the fixes that hold up when tested.2 lessons
    1. 01How a JSON Key Changes Every Object
    2. 02Fixes That Hold Up
  4. 04Vulnerable npm PackagesReading an npm audit report, fixing what it finds without breaking the app, and keeping installs reproducible with a lockfile so that today's audit still describes tomorrow's build.2 lessons
    1. 01Reading npm audit and Fixing What It Finds
    2. 02Lockfiles, npm ci and Trusting What You Install