This repository was archived by the owner on Sep 1, 2022. It is now read-only.
File tree 3 files changed +27
-1
lines changed
courses/javascript/unsafe-jquery
3 files changed +27
-1
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 7
7
"dollar-arg-node.ql" : " dollar-arg-node.csv" ,
8
8
"property-read.ql" : " property-read.csv" ,
9
9
"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"
11
12
}
12
13
}
Original file line number Diff line number Diff line change
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"
You can’t perform that action at this time.
0 commit comments