File tree Expand file tree Collapse file tree
java/ql/src/experimental/Security/CWE/CWE-208 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,12 +28,6 @@ private predicate isNonConstantEqualsCallArgument(Expr e) {
2828 e = [ call .getQualifier ( ) , call .getAnArgument ( ) ]
2929}
3030
31-
32- class NonConstantTimeComparisonSink extends DataFlow:: Node {
33- NonConstantTimeComparisonSink ( ) {
34- isNonConstantEqualsCallArgument ( this .asExpr ( ) )
35- }
36- }
3731class ClientSuppliedIpTokenCheck extends DataFlow:: Node {
3832 ClientSuppliedIpTokenCheck ( ) {
3933 exists ( MethodAccess ma |
@@ -52,7 +46,7 @@ class NonConstantTimeComparisonConfig extends TaintTracking::Configuration {
5246
5347 override predicate isSource ( DataFlow:: Node source ) { source instanceof ClientSuppliedIpTokenCheck }
5448
55- override predicate isSink ( DataFlow:: Node sink ) { sink instanceof NonConstantTimeComparisonSink }
49+ override predicate isSink ( DataFlow:: Node sink ) { isNonConstantEqualsCallArgument ( sink . asExpr ( ) ) }
5650}
5751
5852from DataFlow:: PathNode source , DataFlow:: PathNode sink , NonConstantTimeComparisonConfig conf
You can’t perform that action at this time.
0 commit comments