File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
javascript/ql/lib/semmle/javascript/security/dataflow Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ module XssThroughDom {
219
219
220
220
221
221
/**
222
- * A source for text from the DOM from a Selection object toString method call
222
+ * A call to window.getSelection
223
223
* https://developer.mozilla.org/en-US/docs/Web/API/Selection
224
224
*/
225
225
DataFlow:: SourceNode getSelectionCall ( DataFlow:: TypeTracker t ) {
@@ -233,6 +233,10 @@ module XssThroughDom {
233
233
exists ( DataFlow:: TypeTracker t2 | result = getSelectionCall ( t2 ) .track ( t2 , t ) )
234
234
}
235
235
236
+ /**
237
+ * A source for text from the DOM from a Selection object toString method call
238
+ * https://developer.mozilla.org/en-US/docs/Web/API/Selection
239
+ */
236
240
class SelectionSource extends Source {
237
241
SelectionSource ( ) {
238
242
this = getSelectionCall ( DataFlow:: TypeTracker:: end ( ) ) .getAMethodCall ( "toString" )
You can’t perform that action at this time.
0 commit comments