Skip to content

Commit 3ee393b

Browse files
committed
Java/BrokenCryptoAlgorithmQuery
java/ql/src/Security/CWE/CWE-327/BrokenCryptoAlgorithm.ql
1 parent e5c8d6e commit 3ee393b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ module InsecureCryptoConfig implements DataFlow::ConfigSig {
3535
predicate observeDiffInformedIncrementalMode() { any() }
3636

3737
Location getASelectedSinkLocation(DataFlow::Node sink) {
38+
result = sink.getLocation()
39+
or
3840
exists(CryptoAlgoSpec c | sink.asExpr() = c.getAlgoSpec() | result = c.getLocation())
3941
}
4042
}

0 commit comments

Comments
 (0)