mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
remove hbs specific checks
This commit is contained in:
@@ -14,10 +14,6 @@ import javascript
|
||||
import DataFlow::PathGraph
|
||||
import semmle.javascript.security.TaintedObject
|
||||
|
||||
predicate isUsingHbsEngine() {
|
||||
Express::appCreation().getAMethodCall("set").getArgument(1).mayHaveStringValue("hbs")
|
||||
}
|
||||
|
||||
class TemplateObjInjectionConfig extends TaintTracking::Configuration {
|
||||
TemplateObjInjectionConfig() { this = "TemplateObjInjectionConfig" }
|
||||
|
||||
@@ -32,8 +28,7 @@ class TemplateObjInjectionConfig extends TaintTracking::Configuration {
|
||||
exists(MethodCallExpr mc |
|
||||
Express::isResponse(mc.getReceiver()) and
|
||||
mc.getMethodName() = "render" and
|
||||
sink.asExpr() = mc.getArgument(1) and
|
||||
isUsingHbsEngine()
|
||||
sink.asExpr() = mc.getArgument(1)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user