File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
test/query-tests/Security/CWE-943-NoSqlInjection Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -378,13 +378,13 @@ module SqlExecution {
378
378
}
379
379
}
380
380
381
- /** Provides a class for modeling NoSql execution APIs. */
381
+ /** Provides a class for modeling NoSQL execution APIs. */
382
382
module NoSqlExecution {
383
383
/**
384
384
* A data-flow node that executes NoSQL queries.
385
385
*
386
386
* Extend this class to model new APIs. If you want to refine existing API models,
387
- * extend `NoSQLQuery ` instead.
387
+ * extend `NoSqlExecution ` instead.
388
388
*/
389
389
abstract class Range extends DataFlow:: Node {
390
390
/** Gets the argument that specifies the NoSql query to be executed. */
@@ -402,7 +402,7 @@ module NoSqlExecution {
402
402
* A data-flow node that executes NoSQL queries.
403
403
*
404
404
* Extend this class to refine existing API models. If you want to model new APIs,
405
- * extend `NoSQLQuery ::Range` instead.
405
+ * extend `NoSqlExecution ::Range` instead.
406
406
*/
407
407
class NoSqlExecution extends DataFlow:: Node instanceof NoSqlExecution:: Range {
408
408
/** Gets the argument that specifies the NoSql query to be executed. */
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ private import NoSQLInjectionCustomizations::NoSqlInjection as C
11
11
/**
12
12
* A taint-tracking configuration for detecting NoSQL injection vulnerabilities.
13
13
*/
14
- module NoSQLInjectionConfig implements DataFlow:: StateConfigSig {
14
+ module NoSqlInjectionConfig implements DataFlow:: StateConfigSig {
15
15
class FlowState = C:: FlowState ;
16
16
17
17
predicate isSource ( DataFlow:: Node source , FlowState state ) {
@@ -57,4 +57,4 @@ module NoSQLInjectionConfig implements DataFlow::StateConfigSig {
57
57
}
58
58
}
59
59
60
- module Flow = TaintTracking:: GlobalWithState< NoSQLInjectionConfig > ;
60
+ module NoSqlInjectionFlow = TaintTracking:: GlobalWithState< NoSqlInjectionConfig > ;
Original file line number Diff line number Diff line change 1
1
import python
2
2
import experimental.dataflow.TestUtil.DataflowQueryTest
3
3
import semmle.python.security.dataflow.NoSQLInjectionQuery
4
- import FromTaintTrackingStateConfig< NoSQLInjectionConfig >
4
+ import FromTaintTrackingStateConfig< NoSqlInjectionConfig >
You can’t perform that action at this time.
0 commit comments