mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Fix encryption sanitizer
It now discards sensitive exprs (sources) instead of sinks for better precision
This commit is contained in:
@@ -88,7 +88,7 @@ private class EncryptedValueFlowConfig extends DataFlow4::Configuration {
|
||||
src.asExpr() instanceof EncryptedSensitiveMethodAccess
|
||||
}
|
||||
|
||||
override predicate isSink(DataFlow::Node sink) { sink instanceof CleartextStorageSink }
|
||||
override predicate isSink(DataFlow::Node sink) { sink.asExpr() instanceof SensitiveExpr }
|
||||
}
|
||||
|
||||
/** A taint step for `EditText.toString` in Android. */
|
||||
|
||||
Reference in New Issue
Block a user