Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19ff00b commit b56fe2bCopy full SHA for b56fe2b
1 file changed
java/ql/src/experimental/Security/CWE/CWE-759/HashWithoutSalt.ql
@@ -76,11 +76,10 @@ class HashWithoutSaltConfiguration extends TaintTracking::Configuration {
76
)
77
}
78
79
- /** Holds for additional steps that flow to a method call of `update` or `digest` declared in `java.security.MessageDigest`. */
+ /** Holds for additional steps that flow to additional method calls of the type `java.security.MessageDigest`. */
80
override predicate isAdditionalTaintStep(DataFlow::Node pred, DataFlow::Node succ) {
81
exists(MethodAccess ma |
82
ma.getMethod().getDeclaringType() instanceof MessageDigest and
83
- ma.getMethod().hasName(["digest", "update"]) and
84
pred.asExpr() = ma.getAnArgument() and
85
(succ.asExpr() = ma or succ.asExpr() = ma.getQualifier())
86
0 commit comments