mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
18 lines
417 B
JavaScript
18 lines
417 B
JavaScript
var liveServer = require("live-server");
|
|
|
|
const middleware = [function(req, res, next) {
|
|
const tainted = req.url; // $ Source
|
|
|
|
res.end(`<html><body>${tainted}</body></html>`); // $ Alert
|
|
}];
|
|
|
|
middleware.push(function(req, res, next) {
|
|
const tainted = req.url; // $ Source
|
|
|
|
res.end(`<html><body>${tainted}</body></html>`); // $ Alert
|
|
});
|
|
|
|
var params = {
|
|
middleware
|
|
};
|
|
liveServer.start(params); |