On Fri, 5 Mar 2004, Mark Gardner wrote:
> I think I figured something out. I just wanted to secure up the
> authentication module a little bit, I'm in an environment where ssl is
> not possible. And I don't want the password sent plaintext over the net.
> So I found this little snippet (thanks to Andrew J. ) From BYU's
> Blackboard program.
SSL is almost always possible; you should really make sure that option is
exhausted completely before going to questionable stuff like this.
[...]
> var final_to_encode = passwd_enc + form.one_time_token.value;
> form.encoded_pw.value = calcMD5(final_to_encode);
[...]
> This way the password cannot be "sniffed" and the page is not vulnerable
> to a replay attack.
Firstly, you'd lose to any kind of active attack, which isn't too much harder
than passively listening.
But secondly, no, replay is still possible. form.one_time_token.value
corresponds to the output of calcMD5, so I just replay both values. Keeping
track of which value you specified on the server side can help, but is also
trouble-prone.
-J
____________________
BYU Unix Users Group
http://uug.byu.edu/
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list