JS: Move two alerts and add query ID

This commit is contained in:
Asger F
2025-02-25 16:52:27 +01:00
parent 976096540f
commit 764eb98809

View File

@@ -20,8 +20,8 @@ var server = http.createServer(function(req, res) {
request.get(tainted); // $ Alert[js/request-forgery]
var options = {};
options.url = tainted; // $ Alert
request(options);
options.url = tainted;
request(options); // $ Alert[js/request-forgery]
request("http://" + tainted); // $ Alert[js/request-forgery]
@@ -124,8 +124,8 @@ var server2 = http.createServer(function(req, res) {
axios({
method: 'get',
url: tainted // $ Alert
})
url: tainted
}) // $ Alert[js/request-forgery]
var myUrl = `${something}/bla/${tainted}`;
axios.get(myUrl); // $ Alert[js/request-forgery]