Skip to content

Instantly share code, notes, and snippets.

@Jul10l1r4
Last active October 9, 2019 04:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jul10l1r4/34c20a979a7be4a185397100944b704c to your computer and use it in GitHub Desktop.
Save Jul10l1r4/34c20a979a7be4a185397100944b704c to your computer and use it in GitHub Desktop.
script node vulnerável
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