mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +01:00
21 lines
583 B
Plaintext
21 lines
583 B
Plaintext
/**
|
|
* @name Disabling SCE
|
|
* @description Disabling strict contextual escaping (SCE) can cause security vulnerabilities.
|
|
* @kind problem
|
|
* @problem.severity warning
|
|
* @precision very-high
|
|
* @id js/angular/disabling-sce
|
|
* @tags security
|
|
* maintainability
|
|
* frameworks/angularjs
|
|
*/
|
|
|
|
import javascript
|
|
|
|
from MethodCallExpr mce, AngularJS::BuiltinServiceReference service
|
|
where
|
|
service.getName() = "$sceProvider" and
|
|
mce = service.getAMethodCall("enabled") and
|
|
mce.getArgument(0).mayHaveBooleanValue(false)
|
|
select mce, "Disabling SCE is strongly discouraged."
|