Skip to content

Github security vulnerability alert CVE-2015-9284 #960

Closed

Description

@bgwilson87

I received a security vulnerability alert from GitHub for omniauth, I am using 1.9.0

"The request phase of the OmniAuth Ruby gem is vulnerable to Cross-Site Request Forgery when used as part of the Ruby on Rails framework, allowing accounts to be connected without user intent, user interaction, or feedback to the user. This permits a secondary account to be able to sign into the web application as the primary account."

https://nvd.nist.gov/vuln/detail/CVE-2015-9284

Screen Shot 2019-05-29 at 4 27 11 PM

Activity

  1. bgwilson87 commented on May 29, 2019

    @bgwilson87
    Author

    Looks like some related discussion here #809

  2. gencer commented on May 29, 2019

    @gencer

    If this is considered as too risky and gets created in CVE why it isn't fixed since 2015? I hope this will be get fixed (or PR merged). Otherwise, alternatives...? Saying, What is our alternatives, by the way?

  3. cjheath commented on May 29, 2019

    @cjheath

    Github is flagging "vulnerable dependency" in any repo that has omniauth in its Gemfile.lock. That's a lot of maintainers getting hassled over this, so it's important that someone expedites a fix.

  4. arye-eidelman commented on May 30, 2019

    @arye-eidelman

    Is this still an issue if I only allow linking OmniAuth accounts that have the same email address as the logged in user?

    For example:

    if @current_user == User.find_by(email: omniauth_info['email'])
      @current_user.link_omniauth_account(omniauth_info)
  5. tmilewski commented on May 30, 2019

    @tmilewski
    Member

    Let's please continue the conversation over at #809 so that we don't wind up with diverging discourses.

    Thanks!

  6. aniketstiwari commented on Jun 24, 2019

    @aniketstiwari

    As I can see through the comments the PR(lunohodov/eventical@b017fcf) is not yet merged with the master so what we need to do in this case. I am also getting the same issue and below are my configuration

    Rails - 5.2.2
    Ruby - 2.5.3
    omniauth (1.4.3)
    omniauth-linkedin-oauth2 (1.0.0)
    omniauth-oauth2 (1.5.0)
    omniauth-google-oauth2 (0.6.1)

  7. mhamzajutt96 commented on Jul 2, 2019

    @mhamzajutt96

    This issue is not yet resolved, even I update all the gems and my Gemfile.lock also updated which is greater than 1.9
    My Repository is: https://github.com/mhamzajutt96/sportscenter

  8. mathieujobin commented on Sep 12, 2019

    @mathieujobin

    From the discussion above, it sounds like ...

    • omniauth by itself isn't vulnerable
    • rails by itself isn't vulnerable

    some apps that do something very specific can be vulnerable.
    like any apps that directly sends http query params to the database would be vulnerable to sql injection, would you blame MySQL for it?

    it sounds like the CVE should be clarified and all that omniauth can do, is offer some documentation about it and a nice warning this using authentication gems isn't a guaranty of preventing security vulnerability within our applications

    my two cents

  9. hakusaro commented on Sep 22, 2019

    @hakusaro

    @mathieujobin it is entirely unclear to me how anyone is supposed to contact NIST or GitHub to silence the alert on a site-wide scale or otherwise change the status of the alert to be more of an advisory warning against that behavior.

    Plain and simple, the alert is too broad and does not adequately provide meaningful steps that can be taken to mitigate the problem. Instead, it scares everyone into a frenzy and causes people to disregard security alerts.

  10. aspiers commented on Nov 10, 2019

    @aspiers

    The resolution is nicely documented here:

    https://github.com/omniauth/omniauth/wiki/Resolving-CVE-2015-9284

    A few days ago I contacted CVE requesting they add that URL as a reference, and they have obliged. So I think this issue can be closed now.

  11. ngoral commented on Nov 19, 2019

    @ngoral

    In #809 it was said that for rails we should just use https://github.com/omniauth/omniauth

    What's wrong with this solution over the one you suggest?

  12. aspiers commented on Nov 19, 2019

    @aspiers

    The solution I have linked does use omniauth/omniauth. The solution is to use it in the right way.

  13. 12 remaining items

  14. BobbyMcWho commented on Nov 14, 2020

    @BobbyMcWho
    Member

    @josh-m-sharpe there has been nothing new submitted that I haven't reviewed and/or merged since I've started to help maintain this. I'll reiterate again that I don't personally have the time to make this fix.

    I started helping out to maintain this library because new PRs and issues were being ignored, and I figured some maintenance was better than none. I've been pretty good at responding, reviewing, and merging new items coming in a timely manner.

    It is not my responsibility to "lead and direct the masses". I don't have the community clout nor the reach to try and do that. I'm happy with my scope of involvement in this project, and again, if you submit a PR that fixes this in a way that makes sense for the library, I'll work to get it reviewed, merged, and released under an appropriate version number for the change.

    Have a great weekend 🙂

  15. josh-m-sharpe commented on Nov 14, 2020

    @josh-m-sharpe

    I apologize if my first message wasn't clear. I'm absolutely not suggesting that you (or any other maintainer) is responsible to build the fix for this. But, as the maintainers, I would think that you know better than others what is in the best interest of the library.

    Set that stage and and the PR will follow :)

  16. Papipo commented on Nov 16, 2020

    @Papipo

    I apologize if my first message wasn't clear.

    I am afraid that your first message was pretty clear.

  17. BobbyMcWho commented on Dec 3, 2020

    @BobbyMcWho
    Member

    I'm open for comments/review on this PR: #1010

  18. BobbyMcWho commented on Dec 11, 2020

    @BobbyMcWho
    Member

    I've opened a discussion on a v2.0.0 release candidate: #1017

  19. BobbyMcWho commented on Jan 11, 2021

    @BobbyMcWho
    Member

    The vulnerable by default configuration has been removed in the v2.0.0 release

  20. jeremiemv commented on Jan 14, 2021

    @jeremiemv

    Thank you for all your work @BobbyMcWho

  21. robotarmy commented on Jun 8, 2022

    @robotarmy

    creating new issue

  22. added
    Breaking Change
    on Oct 17, 2026
  23. added theissue type on Oct 17, 2026
  24. unpinned this issue on Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Breaking Change

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions