mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Python: fix query file
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user