We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9760965 commit 764eb98Copy full SHA for 764eb98
1 file changed
javascript/ql/test/query-tests/Security/CWE-918/serverSide.js
@@ -20,8 +20,8 @@ var server = http.createServer(function(req, res) {
20
request.get(tainted); // $ Alert[js/request-forgery]
21
22
var options = {};
23
- options.url = tainted; // $ Alert
24
- request(options);
+ options.url = tainted;
+ request(options); // $ Alert[js/request-forgery]
25
26
request("http://" + tainted); // $ Alert[js/request-forgery]
27
@@ -124,8 +124,8 @@ var server2 = http.createServer(function(req, res) {
124
125
axios({
126
method: 'get',
127
- url: tainted // $ Alert
128
- })
+ url: tainted
+ }) // $ Alert[js/request-forgery]
129
130
var myUrl = `${something}/bla/${tainted}`;
131
axios.get(myUrl); // $ Alert[js/request-forgery]
0 commit comments