Skip to content
This repository has been archived by the owner on Feb 25, 2019. It is now read-only.

Security lack on signin error render #370

Open
camfou opened this issue Nov 20, 2017 · 0 comments
Open

Security lack on signin error render #370

camfou opened this issue Nov 20, 2017 · 0 comments

Comments

@camfou
Copy link
Contributor

camfou commented Nov 20, 2017

Hi,

params: qs.stringify(req.body),

In case of authenticator.dispatch error or missing user, we put the entire body as query string in the render attributes. Then in the signin.jade template we use it to create URLs

a(href='/connect/' + provider + '?' + params, title=providerInfo[provider].name, class='provider protocol-' + providerInfo[provider].protocol + ' '+ provider)

In this case the password could appears in the URL. Even if SSL encrypt the qs, I don't think it's a good idea to keep the password after usage (referer leakage, browser history, proxy logs ...)!

Regards,
Camille

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant