Skip to content

Commit 3d59f5b

Browse files
committed
Java/MaybeBrokenCryptoAlgorithmQuery
java/ql/src/Security/CWE/CWE-327/MaybeBrokenCryptoAlgorithm.ql
1 parent e152b9b commit 3d59f5b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ module InsecureCryptoConfig implements DataFlow::ConfigSig {
8181
predicate observeDiffInformedIncrementalMode() { any() }
8282

8383
Location getASelectedSinkLocation(DataFlow::Node sink) {
84-
exists(CryptoAlgoSpec c | result = c.getLocation() | sink.asExpr() = c.getAlgoSpec())
84+
exists(CryptoAlgoSpec c | result = sink.getLocation() or result = c.getLocation() |
85+
sink.asExpr() = c.getAlgoSpec()
86+
)
8587
}
8688
}
8789

0 commit comments

Comments
 (0)