Skip to content

Commit f743742

Browse files
author
Timo Mueller
committed
InstanceOf check instead of comparing classnames
1 parent fd52135 commit f743742

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/ql/src/experimental/Security/CWE/CWE-665/InsecureRmiJmxEnvironmentConfiguration.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ class MapToPutCredentialstypeConfiguration extends DataFlow2::Configuration {
5757
put.getKey().toString() = "RMIConnectorServer.CREDENTIALS_FILTER_PATTERN" // This can probably be solved more nicely
5858
|
5959
put.getQualifier() = qualifier and
60-
put.getMethod().(MapMethod).getReceiverKeyType().getName() = "String" and
61-
put.getMethod().(MapMethod).getReceiverValueType().getName() = "Object"
60+
put.getMethod().(MapMethod).getReceiverKeyType() instanceof TypeString and
61+
put.getMethod().(MapMethod).getReceiverValueType() instanceof TypeObject
6262
)
6363
}
6464
}

0 commit comments

Comments
 (0)