mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
11 lines
286 B
JavaScript
11 lines
286 B
JavaScript
var http = require('http');
|
|
var url = require('url');
|
|
|
|
var server = http.createServer(function(req, res) {
|
|
var userVal = req.url; // $ Source
|
|
var newProp = "$" + userVal;
|
|
x[newProp] = 23;
|
|
res.setHeader(userVal, 'text/html'); // $ Alert
|
|
res.write("foo");
|
|
res.end("bar");
|
|
}) |