Skip to content

Commit fd02745

Browse files
committed
JS: Fix StoresXss example query
1 parent 020d65b commit fd02745

File tree

1 file changed

+2
-3
lines changed
  • javascript/ql/examples/queries/dataflow/StoredXss

1 file changed

+2
-3
lines changed

javascript/ql/examples/queries/dataflow/StoredXss/StoredXss.ql

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
*/
99

1010
import javascript
11-
import DataFlow
1211
import semmle.javascript.security.dataflow.StoredXssQuery
1312
import DataFlow::PathGraph
1413

@@ -24,14 +23,14 @@ import DataFlow::PathGraph
2423
class MysqlSource extends Source {
2524
MysqlSource() {
2625
this =
27-
moduleImport("mysql")
26+
DataFlow::moduleImport("mysql")
2827
.getAMemberCall("createConnection")
2928
.getAMethodCall("query")
3029
.getCallback(1)
3130
.getParameter(1)
3231
}
3332
}
3433

35-
from Configuration cfg, PathNode source, PathNode sink
34+
from Configuration cfg, DataFlow::PathNode source, DataFlow::PathNode sink
3635
where cfg.hasFlowPath(source, sink)
3736
select sink.getNode(), source, sink, "Stored XSS from $@.", source.getNode(), "database value."

0 commit comments

Comments
 (0)