This commit is contained in:
Ed Minnix
2023-11-15 13:07:27 -05:00
parent 8e55ced288
commit 1c3993e632

View File

@@ -50,6 +50,12 @@ private class GetPropertyMethodCall extends MethodCall {
}
}
/**
* Get the string value represented by the given expression.
*
* If the value is a string literal, return the literal value.
* If the value is a call to `java.util.Properties::getProperty`, return the potential values of the property.
*/
string insecureAlgorithmName(DataFlow::Node algo) {
result = algo.asExpr().(StringLiteral).getValue()
or