Skip to content

Commit b56fe2b

Browse files
committed
Remove specific method name in additional taint step
1 parent 19ff00b commit b56fe2b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

java/ql/src/experimental/Security/CWE/CWE-759/HashWithoutSalt.ql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,10 @@ class HashWithoutSaltConfiguration extends TaintTracking::Configuration {
7676
)
7777
}
7878

79-
/** Holds for additional steps that flow to a method call of `update` or `digest` declared in `java.security.MessageDigest`. */
79+
/** Holds for additional steps that flow to additional method calls of the type `java.security.MessageDigest`. */
8080
override predicate isAdditionalTaintStep(DataFlow::Node pred, DataFlow::Node succ) {
8181
exists(MethodAccess ma |
8282
ma.getMethod().getDeclaringType() instanceof MessageDigest and
83-
ma.getMethod().hasName(["digest", "update"]) and
8483
pred.asExpr() = ma.getAnArgument() and
8584
(succ.asExpr() = ma or succ.asExpr() = ma.getQualifier())
8685
)

0 commit comments

Comments
 (0)