Skip to content

security issue in returning post parameters from session in callback phase - #867

Merged
sferik merged 1 commit into
omniauth:masterfrom
lalithr95:fix-params-security-issue
Jan 17, 2017
Merged

sferik merged 1 commit into
omniauth:masterfrom
lalithr95:fix-params-security-issue

Conversation

@lalithr95

@lalithr95 lalithr95 commented Jan 11, 2017 •

Copy link
Copy Markdown
Contributor

Request phase of omniauth store request.params in session which are later assigned in env of callback phase. According do docs we should only store query params but in this case both GET and POST params get stored. POST params can contain authenticity_token of application to protect form CSRF issues. We shouldn't leak such tokens from POST params.

@sferik @jamesarosen @md5

@lalithr95

Copy link
Copy Markdown
Contributor Author

ping ? due to security concern

@jamesarosen

Copy link
Copy Markdown
Contributor

I haven't been involved in this project in years and know nothing about this.

@sferik
sferik merged commit 61df4e8 into omniauth:master Jan 17, 2017
@sferik

sferik commented Jan 17, 2017

Copy link
Copy Markdown
Contributor

@lalithr95 Thanks!

stevendanna added a commit to chef/chef-server that referenced this pull request Jan 18, 2017
Recently, omniauth shipped a fix to a security vulnerability:

  omniauth/omniauth#867

I haven't investigated whether this is a serious issue for us, but it
seemed prudent to just try an update.

Signed-off-by: Steven Danna <[email protected]>
robbkidd added a commit to chef/supermarket that referenced this pull request Jan 18, 2017
marcparadise pushed a commit to chef/chef-server that referenced this pull request Jan 20, 2017
Recently, omniauth shipped a fix to a security vulnerability:

  omniauth/omniauth#867

I haven't investigated whether this is a serious issue for us, but it
seemed prudent to just try an update.

Signed-off-by: Steven Danna <[email protected]>
@carnil

carnil commented Jan 26, 2018

Copy link
Copy Markdown

This issue has been assigned CVE-2017-18076 by MITRE.

sferik added a commit that referenced this pull request Oct 20, 2026
Since 2.0 the request phase is a POST, but omniauth.params only held
the query string, so params an app sent in the form were lost by the
callback phase. Store the form params too.

#867 stopped storing POST
params so the authenticity token wouldn't end up in omniauth.params.
Leave it out explicitly instead.

#975
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants