Quantcast
Viewing all articles
Browse latest Browse all 2663

Potential leak of data: Simple Password

Detected 1 occurrence(s) of ‘\s*pass[word]+\s*[:=]\s*["'][a-z0-9\-_\!\$]+["']‘: q, res, next) { if (!req.user._doc.admin) { res.status(404).json({}) return } next() } it('should should authorize when user is admin', function(done){ request(app) .post('/api/sessions/login') .send({email: "a@a.com", password: "a"}) .expect('Content-Type', /json/) .expect(200) .end(function(err,res){ if (err) throw err; request(app) .get('/api/organizations') .expect('Content-Type', /json/) Source: http://pastebin.com/raw.php?i=kDWjYUEs

Viewing all articles
Browse latest Browse all 2663

Trending Articles