mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
JS: Update our own queries
This commit is contained in:
@@ -84,7 +84,6 @@ module TaintedObject {
|
||||
* Sanitizer guard that blocks deep object taint.
|
||||
*/
|
||||
abstract class SanitizerGuard extends TaintTracking::LabeledSanitizerGuardNode {
|
||||
override FlowLabel getALabel() { result = label() }
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -110,9 +109,10 @@ module TaintedObject {
|
||||
)
|
||||
}
|
||||
|
||||
override predicate sanitizes(boolean outcome, Expr e) {
|
||||
override predicate sanitizes(boolean outcome, Expr e, FlowLabel label) {
|
||||
polarity = outcome and
|
||||
e = typeof.getOperand()
|
||||
e = typeof.getOperand() and
|
||||
label = label()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -142,11 +142,10 @@ module UnvalidatedDynamicMethodCall {
|
||||
astNode.getAnOperand().getUnderlyingValue() = t
|
||||
}
|
||||
|
||||
override predicate sanitizes(boolean outcome, Expr e) {
|
||||
override predicate sanitizes(boolean outcome, Expr e, DataFlow::FlowLabel label) {
|
||||
outcome = astNode.getPolarity() and
|
||||
e = t.getOperand().getUnderlyingValue()
|
||||
e = t.getOperand().getUnderlyingValue() and
|
||||
label instanceof MaybeNonFunction
|
||||
}
|
||||
|
||||
override DataFlow::FlowLabel getALabel() { result instanceof MaybeNonFunction }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user