Java/BrokenCryptoAlgorithmQuery

java/ql/src/Security/CWE/CWE-327/BrokenCryptoAlgorithm.ql
This commit is contained in:
Nora Dimitrijević
2025-10-08 14:59:49 +02:00
parent 1129230e10
commit b023880a0a

View File

@@ -36,6 +36,8 @@ module InsecureCryptoConfig implements DataFlow::ConfigSig {
predicate observeDiffInformedIncrementalMode() { any() }
Location getASelectedSinkLocation(DataFlow::Node sink) {
result = sink.getLocation()
or
exists(CryptoAlgoSpec c | sink.asExpr() = c.getAlgoSpec() | result = c.getLocation())
}
}