Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b023880

Browse files
committed
Java/BrokenCryptoAlgorithmQuery
java/ql/src/Security/CWE/CWE-327/BrokenCryptoAlgorithm.ql
1 parent 1129230 commit b023880

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

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

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

0 commit comments

Comments
 (0)