Rule Definition
Ensure that users cannot change the client-side templates. To do so, you must check that Content Security Policy (CSP) has been added. It helps detect and mitigate certain types of attacks, including Cross Site Scripting (XSS) and data injection attacks.
Violation Code Sample
Fixed Code Sample
<html ng-app ng-scp>...</html>
Reference
https://docs.angularjs.org/guide/security
Related Technologies
Technical Criterion
ASCSM-CWE-79 - Cross-site Scripting Improper Input Neutralization
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.