Security
High
ServiceNow
UI Script
Salesforce
Static Resource
SN-JSL-007 (for ServiceNow)
SF-JSL-007 (for Salesforce)
An XSS attack via DOM “clobbering” (attempting to insert malicious DOM elements) could result in the browser hanging when $sanitize attempts to traverse the HTML, as the clobbered elements cause $sanitize to go into an infinite loop. While the XSS attack is prevented, the browser will hang, resulting in a Denial of Service situation.
Update AngularJS to the latest version.
30 min
This rule is linked to Common Weakness Enumeration CWE-79 Improper Neutralization of Input During Web Page Generation (‘Cross-site Scripting’).