Last active
October 9, 2019 04:43
-
-
Save Jul10l1r4/34c20a979a7be4a185397100944b704c to your computer and use it in GitHub Desktop.
script node vulnerável
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var cookieParser = require('cookie-parser'); | |
var app = express(); | |
app.use(cookieParser()); | |
app.get('/', function(req, res) { | |
console.log(`Req ↓ \n Comment: ${req.query.comment}`); | |
res.cookie('fake-session-id', 'josivaldo:senha123:ngm-owna-sapoha'); | |
res.send(`Comment: ${req.query.comment}`); | |
}); | |
app.listen(80); | |
console.log('Listening on port 80'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment