Slashdot Mirror


Nasty Security Flaw In OAuth, OpenID

jones_supa writes: "A notable security vulnerability has been discovered which impacts both OAuth and OpenID, which are software packages that provide a secure delegated access to websites. Wang Jing, a Ph.D student at the Nanyang Technological University in Singapore, discovered that the 'Covert Redirect' flaw can masquerade as a login popup based on an affected site's domain. Covert Redirect is based on a well-known exploit parameter. For example, someone clicking on a malicious phishing link will get a popup window in Facebook, asking them to authorize the app. Instead of using a fake domain name that's similar to trick users, the Covert Redirect flaw uses the real site address for authentication. If a user chooses to authorize the login, personal data will be released to the attacker instead of to the legitimate website. Wang did already warn a handful of tech giants about the vulnerability, but they mostly dodged the issue. In all honesty, it is not trivial to fix, and any effective remedies would negatively impact the user experience. Users who wish to avoid any potential loss of data should be careful about clicking links that immediately ask you to log in to Facebook or Google, and be aware of this redirection attack."

18 comments

  1. Not an inherent problem. by kiite · · Score: 5, Informative

    Ehh...

    First of all, this isn't new. Hell, it's in the RFC. In fact, the RFC specifically details and recommends protecting against it in several places.

    This is an implementation problem, not really anything to do with OAuth 2.0 or OpenID-Connect. Authorization servers are supposed to match the redirect_uri against valid values that are registered by the client. This is inconvenient for redirecting users back to the right page, so some popular providers decided to match based on prefix or domain, instead. And some websites on the internet have open redirects (hard to believe, i know). If the client website's security is _really_ lousy^H^H^H^H^H lax, its OAuth2 callback module might also not validate the response URI when it gets the access code, and may even not strip the access code from the URI parameters when redirecting.

    The service providers are supposed to require clients to register a full redirection callback. The clients can keep track of whatever page people are on with the state parameter. But those same clients, with that same terrible security, will probably get that wrong, too.

    So, it's entirely a known problem, and what it boils down to is this: You can recommend best practices, but you can't fix stupid. That's why Google and Facebook are shrugging it off.

    That said, if they performed some meager sanitization, it could go a long way to improve the situation.

    1. Re:Not an inherent problem. by yakatz · · Score: 2

      Agreed. Not sure why this is news, or honestly, why it is worthy of being published at all. This is part of the design and if people choose to login even after - the as the example says - Google or Facebook OAuth prompt says You are sending the following information to this site: (as those login methods do), that is their own problem.

    2. Re:Not an inherent problem. by phantomfive · · Score: 1

      Agreed. Not sure why this is news, or honestly, why it is worthy of being published at all.

      If you hadn't noticed after the heartbleed bug, the media reporting on flaws these days has no clue what is going on.

      But they are looking for a story. Because it catches eyeballs. The iPhone SSL bug proved that bugs can provide hysteria, so expect to see more hysteria.

      --
      "First they came for the slanderers and i said nothing."
    3. Re:Not an inherent problem. by fisted · · Score: 1
  2. I thought everyone knew this by GoodNewsJimDotCom · · Score: 4, Insightful

    The instant I saw a Facebook login on a non Facebook website, I assumed it was a phisher.

    This phishing attack has been around as long as this flawed protocol has been around.

    Move along, nothing to see here, everyone knew this.

    1. Re:I thought everyone knew this by GoodNewsJimDotCom · · Score: 4, Insightful

      Heh, I see what they're saying now. This new phishing attack fools the person who "verifies" it is a Facebook.com URL. I guess it is somewhat worse. Your average Facebook user doesn't even know to check that so regular phishing attempts should work too. I guess someone of Slashdot style tech knowledge might have always checked to make sure the URL was Facebook. So I guess the warning is good for some of us. Personally I don't log in to Facebook from rogue sites.

      Oh snap, I just realized where this would get people real hard. Paypal. You click a link to buy with Paypal, but they send you to a PaypalURL to login, but keep your data... Yah, that one could bite. I guess it really is a good heads up. I'll no longer use anyone's paypal links unless I highly trust the site. Thankfully I at least have the 2nd factor security authentication, but not everyone has that.

    2. Re:I thought everyone knew this by phantomfive · · Score: 4, Informative

      Oh snap, I just realized where this would get people real hard. Paypal. You click a link to buy with Paypal, but they send you to a PaypalURL to login, but keep your data... Yah, that one could bite. I guess it really is a good heads up. I'll no longer use anyone's paypal links unless I highly trust the site. Thankfully I at least have the 2nd factor security authentication, but not everyone has that.

      I solve that problem by not linking my Paypal to a bank account. If someone hacks my paypal account, they can......use their own credit card to pay someone.

      Not linking Paypal to a bank account solves a lot of other problems too, where Paypal is known to be the rogue actor.

      --
      "First they came for the slanderers and i said nothing."
    3. Re:I thought everyone knew this by Anonymous Coward · · Score: 0

      People still use Paypal?

    4. Re:I thought everyone knew this by xelah · · Score: 1

      Mmm...I can't help thinking there's a hole in that somewhere. Couldn't they use the account to accept a bunch of payments for sales they don't intend to fulfil, transfer the money to themselves and then leave you with the chargebacks? Quite possibly PayPal will come after you if your account is negative.

    5. Re:I thought everyone knew this by Anonymous Coward · · Score: 0

      What else is there?

    6. Re:I thought everyone knew this by phantomfive · · Score: 2

      If that happens I will have the great pleasure of telling Paypal to please, take all the money in my account, and close it.

      --
      "First they came for the slanderers and i said nothing."
  3. Re:OT: Slashdot Beta on the rise again by Anonymous Coward · · Score: 0, Insightful

    Some people just can't take a hint.

    [Beta is unusable, unnecessary, and unwanted]

  4. Re:OT: Slashdot Beta on the rise again by psyclone · · Score: 1

    As a logged in user, I still get Classic view, but on a narrow but tall vertical monitor, Beta comments are completely unreadable for me. Thus, when beta hits, I will be a summary-only reader. (And might finally get around to creating an account on reddit.)

  5. Re:OT: Slashdot Beta on the rise again by Anonymous Coward · · Score: 0

    Yeah its sucks. Whats with this whitespace crap?

  6. I've been seeing this a LOT on Facebook by DadLeopard · · Score: 2

    I've been seeing this a LOT on Facebook. I myself am not stupid enough to log in to a site I am already logged into, but this has bitten a whole lot of my less savvy "friends"! Seems to be a regular Phishing feature where there is slightly risque picture and when you click to see full size they want you to prove you are over 13 by logging in ! Hah! Not happening!

  7. If you want people to care... by Anonymous Coward · · Score: 0

    ...you must come up with a better description of the problem.
    I read all the sites linked to from the summary and the article and I am not even convinced there is a problem.