. A developer writes in a post: “I am writing a login for a forum, and I would like to hash the password at the client side in JavaScript before sending it to the server. If the hash matches the one stored on the server, the user will be allowed to log in.” The developer believes that sending the hash of the password, instead of sending the password directly, can improve security. Do you agree or not, why?
Question
. A developer writes in a post: “I am writing a login for a forum, and I would like to hash the password at the client side in JavaScript before sending it to the server. If the hash matches the one stored on the server, the user will be allowed to log in.” The developer believes that sending the hash of the password, instead of sending the password directly, can improve security. Do you agree or not, why?
Solution
No estoy de acuerdo con el enfoque del desarrollador. Aunque puede parecer que enviar el hash de la contraseña en lugar de la contraseña en texto plano mejora la seguridad, en realidad introduce varios problemas de seguridad.
-
Ataques de repetición (Replay Attacks): Si un atacante intercepta el hash de la contraseña, puede reutilizar ese hash para autenticarse en el sistema sin necesidad de conocer la contraseña original. Esto es posible porque el hash actúa como un sustituto de la contraseña.
-
Hashing en el lado del cliente: El hashing de contraseñas debe realizarse en el servidor, no en el cliente. Esto se debe a que el código JavaScript en el cliente puede ser manipulado por un atacante. Además, el cliente no puede garantizar la misma seguridad que el servidor en términos de almacenamiento y procesamiento de datos sensibles.
-
Salting: Para proteger adecuadamente las contraseñas, es necesario usar un "salt" (un valor aleatorio) junto con la contraseña antes de hashearla. Esto asegura que incluso si dos usuarios tienen la misma contraseña, sus hashes serán diferentes. Implementar salting de manera segura en el cliente es complicado y propenso a errores
Similar Questions
Which of the following is an advantage of using a hash function for message authentication?OptionsThe hash function can be used to generate a random messageThe hash function can be used to verify that the message has not been tampered withThe hash function can be used to encrypt the messageThe hash function can be used to compress the message
What is a password hash?Select one:a.A representation of a password that is transmitted over a networkb.A representation of a password that is encrypted using a keyc.A representation of a password that is stored in a system or networkd.A representation of a password that is stored in a file
Which is true in using salting in hashing for passwords? salting impedes the use of weak passwords.salting makes it more difficult to guess online passwords with brute force.salting makes cracking brute force offline of password hashes more difficult.salting guarantees that hash collisions doesn’t occur.
In a multi-factor authentication scheme, a password can be thought of as:something you are.something you know.something you have.
What are the pros and cons of sharing your password with your partner?
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.