We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nosql-injection
1 parent ced000a commit 86e9f15Copy full SHA for 86e9f15
go/ql/lib/semmle/go/frameworks/NoSQL.qll
@@ -24,6 +24,14 @@ module NoSql {
24
*/
25
abstract class Range extends DataFlow::Node { }
26
27
+ private class DefaultQueryString extends Range {
28
+ DefaultQueryString() {
29
+ exists(DataFlow::ArgumentNode arg | sinkNode(arg, "nosql-injection") |
30
+ this = arg.getACorrespondingSyntacticArgument()
31
+ )
32
+ }
33
34
+
35
/**
36
* Holds if method `name` of struct `Collection` from package
37
* [go.mongodb.org/mongo-driver/mongo](https://pkg.go.dev/go.mongodb.org/mongo-driver/mongo)
0 commit comments