DinisCruz / Book_Practical_AngularJS

Content for 'Practical AngularJS' book published at LeanPub
Apache License 2.0
18 stars 6 forks source link

Add Section: AngularJS Security #1

Closed DinisCruz closed 8 years ago

DinisCruz commented 10 years ago

And make reference to the research on XSS issues with server-rendered Angular templates

Other references and good articles:

DinisCruz commented 10 years ago

(note from email I sent on this topic)


I don't think that AngularJS suffers from the same type of vulns that we see in Spring MVC since by definition all assets are already on the AngularJS client :)

The issues with AngularJS tend to be around XSS, how to use CSP (angular is making very good progress in making it part of the core API and secure by default) and how to integrate with backend security controls (like authentication and authorisation)

That said, when devs start playing with directives, there is the possibility into inject html and javascript in there (although there is some AngularJs protection here).

have you seen https://code.google.com/p/mustache-security/wiki/AngularJS#AngularJS_1.2.0-rc.2