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

Security lack on signin error render #370

@camfou

Description

@camfou

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions