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.
1 parent f3a0161 commit 9769668Copy full SHA for 9769668
python/ql/lib/semmle/python/security/dataflow/NoSQLInjectionCustomizations.qll
@@ -77,7 +77,11 @@ module NoSqlInjection {
77
78
/** A NoSQL query that is vulnerable to user controlled dictionaries. */
79
class NoSqlExecutionAsDictSink extends DictSink {
80
- NoSqlExecutionAsDictSink() { this = any(NoSqlExecution noSqlExecution).getQuery() }
+ NoSqlExecutionAsDictSink() {
81
+ exists(NoSqlExecution noSqlExecution | this = noSqlExecution.getQuery() |
82
+ noSqlExecution.interpretsDict()
83
+ )
84
+ }
85
}
86
87
/** A JSON decoding converts a string to a dictionary. */
0 commit comments