Skip to content

Commit d0b9920

Browse files
committed
Fix encryption sanitizer
It now discards sensitive exprs (sources) instead of sinks for better precision
1 parent 51d2b52 commit d0b9920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/lib/semmle/code/java/security/CleartextStorageQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ private class EncryptedValueFlowConfig extends DataFlow4::Configuration {
8888
src.asExpr() instanceof EncryptedSensitiveMethodAccess
8989
}
9090

91-
override predicate isSink(DataFlow::Node sink) { sink instanceof CleartextStorageSink }
91+
override predicate isSink(DataFlow::Node sink) { sink.asExpr() instanceof SensitiveExpr }
9292
}
9393

9494
/** A taint step for `EditText.toString` in Android. */

0 commit comments

Comments
 (0)