I have written in a tiny node.js server for testing purposes:
require('http').createServer(function(req,res){
res.writeHead(200, {"Content-Type":"text/html"});
res.end(req.url);
}).listen(8888);
The idea is that the url:
http://localhost:8888/Guest
will output
"/Guest".
Numerous tutorials I have seen suggests that the URL:
http://localhost:8888/<script>alert("XSS");</script>
should perform XSS. Instead, I receive the URL-encoded output:
/%3Cscript%3Ealert(%22XSS%22);%3C/script%3E
Why is this? My server clearly has dozens of vulnerabilities, what am I missing?