Python: fix query file

This commit is contained in:
Rasmus Lerchedahl Petersen
2023-09-28 12:34:10 +02:00
parent 3fb579eaff
commit d90630aa66

View File

@@ -4,17 +4,17 @@
* malicious NoSQL code by the user. * malicious NoSQL code by the user.
* @kind path-problem * @kind path-problem
* @problem.severity error * @problem.severity error
* @security-severity 8.8
* @id py/nosql-injection * @id py/nosql-injection
* @tags security * @tags security
* experimental
* external/cwe/cwe-943 * external/cwe/cwe-943
*/ */
import python import python
import semmle.python.security.dataflow.NoSQLInjectionQuery import semmle.python.security.dataflow.NoSQLInjectionQuery
import Flow::PathGraph import NoSqlInjectionFlow::PathGraph
from Flow::PathNode source, Flow::PathNode sink from NoSqlInjectionFlow::PathNode source, NoSqlInjectionFlow::PathNode sink
where Flow::flowPath(source, sink) where NoSqlInjectionFlow::flowPath(source, sink)
select sink.getNode(), source, sink, "This NoSQL query contains an unsanitized $@.", source, select sink.getNode(), source, sink, "This NoSQL query contains an unsanitized $@.", source,
"user-provided value" "user-provided value"