Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^3: What happened? (https)

by tye (Sage)
on Aug 03, 2009 at 04:49 UTC ( #785340=note: print w/replies, xml ) Need Help??

in reply to Re^2: What happened?
in thread What happened?

True, for our current cookies.

But the cookie shouldn't depend on the password itself. The cookie should be more like a cryptographic hash of something including the hashed password. So sniffing the cookie would not get you very far. You'd have to learn the "secret" string and then reverse a hash function and that would then only get you the hashed password.

The 'login' page should be https://. I've long wanted that. That'd also mean getting rid of the "login nodelet".

Also, a good password hashing function takes significant CPU time. There is a balance to be struck there. Making op=login a very convenient denial-of-service attack point is a bad idea. We might want to implement a "you recently tried to log in (from this IP address or for this username), please wait before trying again" response, which means we only need to worry about attacks from botnets. Surely that would never happen. /:

- tye        

Replies are listed 'Best First'.
Re^4: What happened? (https)
by gwadej (Chaplain) on Aug 03, 2009 at 13:49 UTC

    I'm pretty sure you are aware of this, but to avoid confusion from people reading this later...

    You'd have to learn the "secret" string and then reverse a hash function and that would then only get you the hashed password.

    If we are really talking about the cookie being a cryptographic hash of something and a hashed password, the phrase reverse the hash describes an extremely hard problem. Reversing any cryptographic hash should be computationally infeasible.

    G. Wade

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://785340]
[Corion]: thezip: If you want to open vim and can live with opening a second console window, use start "The results" vim.exe c:\path\to\logfile .log
[thezip]: Ooops... I lied. I guess Cygwin is back. I'll just do a tail -f instead. Better. Sorry for the noise.
[Corion]: Once more, I'm looking for a sane client-side framework, but I guess these don't exist. Everything I look at either uses a weirdo home-grown templating language (like Angular in all its incarnations) or uses weirdo Javascript incarnations (like ...
[Corion]: ... Inferno.js, which uses ES2015) or uses some horrible amount of Javascript infrastructure before you can even render a single file.

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (13)
As of 2017-03-27 18:56 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (321 votes). Check out past polls.