Autoformat TimingAttackAgainstHeaderValue.ql

This commit is contained in:
Ahmed Farid
2022-08-17 12:54:34 +01:00
committed by GitHub
parent a7dcf96f55
commit cb5331bdd8

View File

@@ -24,12 +24,12 @@ class ClientSuppliedSecretConfig extends TaintTracking::Configuration {
override predicate isSource(DataFlow::Node source) { source instanceof ClientSuppliedsecret }
override predicate isSink(DataFlow::Node sink) {
override predicate isSink(DataFlow::Node sink) {
exists(Compare cmp, Expr left, Expr right, Cmpop cmpop |
cmpop.getSymbol() = ["==", "in", "is not", "!="] and
cmp.compares(left, cmpop, right) and
sink.asExpr() = [left, right]
)
)
}
}
@@ -37,3 +37,4 @@ from ClientSuppliedSecretConfig config, DataFlow::PathNode source, DataFlow::Pat
where config.hasFlowPath(source, sink)
select sink.getNode(), source, sink, "Timing attack against $@ validation.", source.getNode(),
"client-supplied token"