File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
javascript/ql/test/query-tests/Security/CWE-918 Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -106,15 +106,15 @@ import * as ws from 'ws';
106106new ws . Server ( { port : 8080 } ) . on ( 'connection' , function ( socket , request ) {
107107 socket . on ( 'message' , function ( message ) {
108108 const url = request . url ;
109- const socket = new ws ( url ) ;
109+ const socket = new ws ( url ) ; // $ Alert[js/request-forgery]
110110 } ) ;
111111} ) ;
112112
113113new ws . Server ( { port : 8080 } ) . on ( 'connection' , function ( socket , request ) {
114114 socket . on ( 'message' , function ( message ) {
115115 const url = new URL ( request . url , base ) ;
116116 const target = new URL ( url . pathname , base ) ;
117- const socket = new ws ( url ) ;
117+ const socket = new ws ( url ) ; // $ Alert[js/request-forgery]
118118 } ) ;
119119} ) ;
120120
You can’t perform that action at this time.
0 commit comments