File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
javascript/ql/src/experimental/Security/CWE-079 Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import DataFlow::PathGraph
23
23
24
24
SourceNode clipboardDataTransferSource ( TypeTracker t ) {
25
25
t .start ( ) and
26
- exists ( DataFlow:: PropRead pr | pr .getPropertyName ( ) = "clipboardData" and pr . flowsTo ( result ) )
26
+ exists ( DataFlow:: PropRead pr | pr .getPropertyName ( ) = "clipboardData" and result = pr )
27
27
or
28
28
exists ( TypeTracker t2 | result = clipboardDataTransferSource ( t2 ) .track ( t2 , t ) )
29
29
}
@@ -39,7 +39,7 @@ SourceNode clipboardDataTransferSource() {
39
39
40
40
SourceNode clipboardDataSource ( TypeTracker t ) {
41
41
t .start ( ) and
42
- clipboardDataTransferSource ( ) .getAMethodCall ( "getData" ) . flowsTo ( result )
42
+ result = clipboardDataTransferSource ( ) .getAMethodCall ( "getData" )
43
43
or
44
44
exists ( TypeTracker t2 | result = clipboardDataSource ( t2 ) .track ( t2 , t ) )
45
45
}
You can’t perform that action at this time.
0 commit comments