How secure is AngularJS?
summary
Explains concrete AngularJS risks and defenses: built-in contextual encoding and SCE (enabled from 1.2) plus CSP support and automatic CSRF header handling, but demos show real problems — DOM‑XSS via angular.element/after, template injection when server and client templates mix, sandbox escape payloads (sandbox removed by 1.6) that allow cookie tampering, and vulnerable third‑party modules (angular-translate, textAngular, typeahead) where default or missing sanitization leads to live XSS.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 1:32AngularJS overview
- 12:28OWASP Top Ten for Angular
- 22:10Built-in security controls
- 29:47Sandbox bypass issues
- 35:28Cross-site request forgery
- 35:48DOM-based XSS risks
- 39:28Third-party plugin vulnerabilities
- 46:26Template injection demo
- 50:48Vulnerable app exploitation
- 57:15Conclusion and Q&A
