News for hackers. Stuff that matters.
Re:How I Hacked Facebook’s Secure Files Transfer Service for... by recuter on Tuesday January 08, 2013 @10:10AM (#5026490)
tptacek will be shortly along to explain how password reset links are typical and one of the most common mistakes.

How you should just "take the hit" (the cost is trivial) and store a randomly generated nounce in your database rather then do shenanigans like encoding user information in the url with secrets and bad cryptography and what not.

See? We listen! :)

Re:How I Hacked Facebook’s Secure Files Transfer Service for... by lbotos on Tuesday January 08, 2013 @10:30AM (#5026617)
Do you have any examples of someone further explaining what you are suggesting? Or if you have time, can you further elaborate on this point? I glanced at the nounce article on wikipedia and if I understand correctly you are suggesting:

1) user creates account (which generates nounce)

2) when password resetting via email auth via nounce.

3) when password is reset regen nounce

Is that right? Just trying to better understand what appears to be a good approach to password resets.

Re:How I Hacked Facebook’s Secure Files Transfer Service for... by recuter on Tuesday January 08, 2013 @11:08AM (#5026822)
Here's a recent post of somebody else channeling tptacek: http://news.ycombinator.com/item?id=4940291

I got it from a quick 'password reset' search here, I recall a lot of these discussions, if you're curios click around on a few more results. :)

Re:How I Hacked Facebook’s Secure Files Transfer Service for... by ahlatimer on Tuesday January 08, 2013 @11:10AM (#5026838)
That's basically right. Generally you generate the nonce when someone clicks the 'forgot password' link, but I suppose you could do it when someone creates the account as well.
Re:How I Hacked Facebook’s Secure Files Transfer Service for... by pyre on Tuesday January 08, 2013 @10:44AM (#5026704)
I'm confused. How exactly is the nonce to be used if without a link?

I was under the impression that best practice was a link with a randomly generated key that has an expiration date (and is expired as soon as it is used). The only security hole here is if the email is intercepted (and you've got other problems at that point).

Re:How I Hacked Facebook’s Secure Files Transfer Service for... by superuser2 on Tuesday January 08, 2013 @10:56AM (#5026762)
This system didn't use a nonce or a key referenced against a database. It simply base-64 encoded the email address.
Re:How I Hacked Facebook’s Secure Files Transfer Service for... by andrewcooke on Tuesday January 08, 2013 @07:44PM (#5029440)
i think you're actually agreeing. what one of you is calling a key the other calls a no[u]nce.

the implicit (worse) alternative is that you encrypt or sign additional state in the url (and in this case, base64 was the "encryption").

Re:How I Hacked Facebook’s Secure Files Transfer Service for... by pyre on Wednesday January 09, 2013 @12:49AM (#5030386)
I realize that key == nonce in my post. My point was against the statement "emailing password reset links is bad and not best practice." You need an password link to make use of the key/nonce. The point of the nonce isn't to eliminate links. It's to make the attack surface that much smaller by limiting their power.