Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit e377733

Browse files
committed
step 9
1 parent cec39ac commit e377733

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import javascript
2+
3+
predicate isSource(DataFlow::Node source) {
4+
exists(DataFlow::FunctionNode plugin |
5+
plugin = jquery().getAPropertyRead("fn").getAPropertySource() and
6+
source = plugin.getLastParameter()
7+
)
8+
}
9+
10+
from DataFlow::Node node
11+
where isSource(node)
12+
select node

courses/javascript/unsafe-jquery/image/config/config.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"dollar-arg-node.ql": "dollar-arg-node.csv",
88
"property-read.ql": "property-read.csv",
99
"jquery-plugins.ql": "jquery-plugins.csv",
10-
"plugin-options.ql": "plugin-options.csv"
10+
"plugin-options.ql": "plugin-options.csv",
11+
"sources.ql": "sources.csv"
1112
}
1213
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"node","URL for node"
2+
"option","file:///opt/src/js/affix.js:119:19:119:24"
3+
"option","file:///opt/src/js/alert.js:64:19:64:24"
4+
"option","file:///opt/src/js/button.js:78:19:78:24"
5+
"option","file:///opt/src/js/carousel.js:176:19:176:24"
6+
"option","file:///opt/src/js/collapse.js:170:19:170:24"
7+
"option","file:///opt/src/js/dropdown.js:130:19:130:24"
8+
"_relatedTarget","file:///opt/src/js/modal.js:292:27:292:40"
9+
"option","file:///opt/src/js/popover.js:82:19:82:24"
10+
"option","file:///opt/src/js/scrollspy.js:136:19:136:24"
11+
"option","file:///opt/src/js/tab.js:118:19:118:24"
12+
"option","file:///opt/src/js/tooltip.js:494:19:494:24"
13+
"duration","file:///opt/src/js/transition.js:36:41:36:48"

0 commit comments

Comments
 (0)