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 e4775e0 commit 6d09db6Copy full SHA for 6d09db6
1 file changed
java/ql/src/Security/CWE/CWE-297/UnsafeHostnameVerification.ql
@@ -123,7 +123,12 @@ private predicate isFlag(DataFlow::Node source) {
123
)
124
}
125
126
-/** Holds if there is flow from `node1` to `node2` either due to local flow or due to custom flow steps. */
+/**
127
+ * Holds if there is flow from `node1` to `node2` either due to local flow or due to custom flow steps:
128
+ * 1. `Boolean.parseBoolean(taintedValue)` taints the return value of `parseBoolean`.
129
+ * 2. A call to an `EnvReadMethod` such as `System.getProperty` where a tainted value is used as an argument.
130
+ * The return value of such a method is then tainted.
131
+ */
132
private predicate flagFlowStep(DataFlow::Node node1, DataFlow::Node node2) {
133
DataFlow::localFlowStep(node1, node2)
134
or
0 commit comments