File tree Expand file tree Collapse file tree
test/query-tests/Security/CWE-943-NoSqlInjection Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -378,13 +378,13 @@ module SqlExecution {
378378 }
379379}
380380
381- /** Provides a class for modeling NoSql execution APIs. */
381+ /** Provides a class for modeling NoSQL execution APIs. */
382382module NoSqlExecution {
383383 /**
384384 * A data-flow node that executes NoSQL queries.
385385 *
386386 * Extend this class to model new APIs. If you want to refine existing API models,
387- * extend `NoSQLQuery ` instead.
387+ * extend `NoSqlExecution ` instead.
388388 */
389389 abstract class Range extends DataFlow:: Node {
390390 /** Gets the argument that specifies the NoSql query to be executed. */
@@ -402,7 +402,7 @@ module NoSqlExecution {
402402 * A data-flow node that executes NoSQL queries.
403403 *
404404 * 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.
406406 */
407407class NoSqlExecution extends DataFlow:: Node instanceof NoSqlExecution:: Range {
408408 /** 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
1111/**
1212 * A taint-tracking configuration for detecting NoSQL injection vulnerabilities.
1313 */
14- module NoSQLInjectionConfig implements DataFlow:: StateConfigSig {
14+ module NoSqlInjectionConfig implements DataFlow:: StateConfigSig {
1515 class FlowState = C:: FlowState ;
1616
1717 predicate isSource ( DataFlow:: Node source , FlowState state ) {
@@ -57,4 +57,4 @@ module NoSQLInjectionConfig implements DataFlow::StateConfigSig {
5757 }
5858}
5959
60- module Flow = TaintTracking:: GlobalWithState< NoSQLInjectionConfig > ;
60+ module NoSqlInjectionFlow = TaintTracking:: GlobalWithState< NoSqlInjectionConfig > ;
Original file line number Diff line number Diff line change 11import python
22import experimental.dataflow.TestUtil.DataflowQueryTest
33import 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