Por que demora mais para um computador responder a uma senha incorreta ou a uma incorreta?

Índice:

Por que demora mais para um computador responder a uma senha incorreta ou a uma incorreta?
Por que demora mais para um computador responder a uma senha incorreta ou a uma incorreta?

Vídeo: Por que demora mais para um computador responder a uma senha incorreta ou a uma incorreta?

Vídeo: Por que demora mais para um computador responder a uma senha incorreta ou a uma incorreta?
Vídeo: How To Improve Windows Battery Life With A Power Report - YouTube 2024, Abril
Anonim
Você já digitou a senha errada no seu computador por acidente e percebeu que leva alguns minutos para responder em comparação com a correta? Por que é que? A postagem de perguntas e respostas do SuperUser de hoje tem a resposta para a pergunta de um leitor curioso.
Você já digitou a senha errada no seu computador por acidente e percebeu que leva alguns minutos para responder em comparação com a correta? Por que é que? A postagem de perguntas e respostas do SuperUser de hoje tem a resposta para a pergunta de um leitor curioso.

A sessão de perguntas e respostas de hoje nos é oferecida por cortesia do SuperUser, uma subdivisão do Stack Exchange, um agrupamento de sites de perguntas e respostas conduzido pela comunidade.

Screenshot cortesia de sully213 (Flickr).

A questão

Leitor de superusuário user3536548 quer saber por que há um tempo de resposta mais longo quando uma senha incorreta é digitada:

When you enter a password and it is correct, the response time is practically instantaneous. But when you enter an incorrect password (by accident or having forgotten the correct one), it takes a while (10-30 seconds) before it responds that the password is incorrect.

Why does it take so long (relatively) to say that the password is incorrect? This has always bugged me when entering incorrect passwords on Windows and Linux systems (regular and VM-based). I am not sure about Mac OSX since I cannot remember if it is the same (it has been a while since I last used a Mac).

I am asking in the context of a user logging in to the system physically on location rather than through SSH which could conceivably use somewhat different mechanisms to log in (validate credentials).

Por que há um tempo de resposta mais longo quando você digita uma senha incorreta?

A resposta

O colaborador do SuperUser Michael Kjorling tem a resposta para nós:

Why does it take so long (relatively) to say that the password is incorrect?

It does not. Or rather, it does not take the computer any longer to determine that your password is incorrect compared to it being correct. The work involved for the computer is, ideally, exactly the same. Any password verification scheme that takes a different amount of time based on whether the password is correct or incorrect can be exploited to gain knowledge, however small, of the password in less time than would otherwise be the case.

The delay is an artificial delay to make repeatedly trying to gain access by using different passwords infeasible, even if you have some idea of what the password is and automatic account lockout is disabled (which it should be in most scenarios as it would otherwise allow for a trivial denial of service against an arbitrary account).

The general term for this behavior is tarpitting. While the Wikipedia article talks more about network service tarpitting, the concept is generic. The Old New Thing is not an official source either, but the article “Why does it take longer to reject an invalid password than to accept a valid one?” does talk about this (near the end of the article).

Tem algo a acrescentar à explicação? Som desligado nos comentários. Quer ler mais respostas de outros usuários do Stack Exchange com experiência em tecnologia? Confira o tópico de discussão completo aqui.

Recomendado: