Secure Coding in Angular Apps
Find and fix four common weaknesses in an Angular front end and its API: cross-site scripting, broken object-level access control and request forgery, prototype pollution, and vulnerable npm packages. Each lesson shows the flaw, runs the evidence, then fixes it.
- Intermediate level
- 4 modules
- 9 lessons
- 47 quiz questions
Syllabus
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
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
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
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