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
2323
2424SourceNode clipboardDataTransferSource ( TypeTracker t ) {
2525 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 )
2727 or
2828 exists ( TypeTracker t2 | result = clipboardDataTransferSource ( t2 ) .track ( t2 , t ) )
2929}
@@ -39,7 +39,7 @@ SourceNode clipboardDataTransferSource() {
3939
4040SourceNode clipboardDataSource ( TypeTracker t ) {
4141 t .start ( ) and
42- clipboardDataTransferSource ( ) .getAMethodCall ( "getData" ) . flowsTo ( result )
42+ result = clipboardDataTransferSource ( ) .getAMethodCall ( "getData" )
4343 or
4444 exists ( TypeTracker t2 | result = clipboardDataSource ( t2 ) .track ( t2 , t ) )
4545}
You can’t perform that action at this time.
0 commit comments