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 e43fafc commit 7f9dff2Copy full SHA for 7f9dff2
1 file changed
java/ql/lib/semmle/code/java/security/MaybeBrokenCryptoAlgorithmQuery.qll
@@ -44,10 +44,12 @@ module InsecureCryptoConfig implements DataFlow::ConfigSig {
44
predicate isSource(DataFlow::Node n) {
45
n.asExpr() instanceof InsecureAlgoLiteral
46
or
47
- exists(PropertiesGetPropertyMethodCall mc | n.asExpr() = mc |
+ exists(PropertiesGetPropertyMethodCall mc, string value |
48
+ n.asExpr() = mc and value = mc.getPropertyValue()
49
+ |
50
// Since properties pairs are not included in the java/weak-crypto-algorithm,
51
// The check for values from properties files can be less strict than `InsecureAlgoLiteral`.
- not mc.getPropertyValue().regexpMatch(getSecureAlgorithmRegex())
52
+ not value.regexpMatch(getSecureAlgorithmRegex())
53
)
54
}
55
0 commit comments