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.
* @kind path-problem
* @problem.severity error
* @security-severity 8.8
* @id py/nosql-injection
* @tags security
* experimental
* external/cwe/cwe-943
*/
import python
import semmle.python.security.dataflow.NoSQLInjectionQuery
import Flow::PathGraph
import NoSqlInjectionFlow::PathGraph
from Flow::PathNode source, Flow::PathNode sink
where Flow::flowPath(source, sink)
from NoSqlInjectionFlow::PathNode source, NoSqlInjectionFlow::PathNode sink
where NoSqlInjectionFlow::flowPath(source, sink)
select sink.getNode(), source, sink, "This NoSQL query contains an unsanitized $@.", source,
"user-provided value"