Skip to content

Commit f70f5c7

Browse files
Update TimingAttackAgainstHeaderValue.ql
1 parent 4b3efa8 commit f70f5c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/experimental/Security/CWE-208/TimingAttackAgainstHeaderValue/TimingAttackAgainstHeaderValue.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ class ClientSuppliedSecretConfig extends TaintTracking::Configuration {
2828
}
2929

3030
from ClientSuppliedSecretConfig config, DataFlow::PathNode source, DataFlow::PathNode sink
31-
where config.hasFlowPath(source, sink)
31+
where config.hasFlowPath(source, sink) and not sink.getNode().(CompareSink).FlowToLen()
3232
select sink.getNode(), source, sink, "Timing attack against $@ validation.", source.getNode(),
3333
"client-supplied token"

0 commit comments

Comments
 (0)