File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
javascript/ql/test/query-tests/Security/CWE-918 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ var server = http.createServer(function(req, res) {
20
20
request . get ( tainted ) ; // NOT OK
21
21
22
22
var options = { } ;
23
- options . url = tainted ;
24
- request ( options ) ; // NOT OK
23
+ options . url = tainted ; // NOT OK
24
+ request ( options ) ;
25
25
26
26
request ( "http://" + tainted ) ; // NOT OK
27
27
@@ -44,7 +44,7 @@ var server = http.createServer(function(req, res) {
44
44
45
45
request ( 'http://example.com/' + base + '/' + tainted ) ; // NOT OK
46
46
47
- request ( 'http://example.com/' + base + ( '/' + tainted ) ) ; // NOT OK - but not flagged
47
+ request ( 'http://example.com/' + base + ( '/' + tainted ) ) ; // NOT OK - but not flagged [INCONSISTENCY]
48
48
49
49
request ( `http://example.com/?${ base } /${ tainted } ` ) ; // OK
50
50
You can’t perform that action at this time.
0 commit comments