Rule Definition
To be secure by default, you want to ensure that any such bindings are disallowed unless you can determine that something explicitly says it's safe to use a value for binding in that context. It helps detect and mitigate certain types of attacks, including Cross Site Scripting (XSS) and data injection attacks.
Violation Code Sample
angular.module('myAppWithSceDisabledmyApp', []).config(function($sceProvider) {// Completely disable SCE. $sceProvider.enabled(false); });
Reference
https://docs.angularjs.org/api/ng/service/$sce
Related Technologies
Technical Criterion
CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
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.