Share

6 Responses to “How *Not* To Implement A Web Application That Handles External Authentication, Using BeTwittered.com As An Example”

    6 Comments:
  1. Iain says:

    "note that passing this data in a POST request would change nothing, security-wise"

    At least using POST would mean the plain text passwords weren't quite so likely to end up in webserver logs or proxy server logs… But yeah, as the kiddies say "yr doin it wrong!"…

  2. Just wanted to point out that oauth tokens aren't much different than a user's username and password. If you grant an application, on Twitter for example, with read and write access then anyone with the tokens and the private secret can have their way with your account.

    This is far better than handing over a username and password but it's important to remember that oAuth alone doesn't solve security problems. It still takes common sense to implement oAuth correctly (albiet some of that is taken care of by the oAuth spec).

    Tokens should be treated like passwords that need to be decrypted using salt or other means to secure them.

    • Umm… not really… you would also need the consumer secret!

      Of course, nothing is completely safe, but this can make it a little more difficult :)

      • Consumer secret is what I meant by "private secret". I agree that security by obfuscation is very valid as long as you're aware that's partly what it is. I'm a huge fan of oAuth. It's just that I think it's important not to get to comfortable with anything security related.

Leave a Reply

Connect with Facebook