Update java/ql/src/Security/CWE/CWE-652/XQueryInjection.ql

Co-authored-by: Chris Smowton <smowton@github.com>
This commit is contained in:
haby0
2021-02-16 00:09:21 +08:00
committed by GitHub
parent f1e44bce4a
commit 92c00cb741

View File

@@ -30,7 +30,7 @@ class XQueryInjectionConfig extends TaintTracking::Configuration {
}
/**
* Conveys taint from the input to a `prepareExpression` call to the returned prepared expression.
* Holds if taint from the input `pred` to a `prepareExpression` call flows to the returned prepared expression `succ`.
*/
override predicate isAdditionalTaintStep(DataFlow::Node pred, DataFlow::Node succ) {
exists(XQueryParserCall parser | pred.asExpr() = parser.getInput() and succ.asExpr() = parser)