Password reset confirm message should discourage social engineering

The password reset logic confirms whether en email exists in the user database. This is generally considered bad practice as it enables malicious users to “query” discourse user db. DigitalOcean is a good example of being vague about the provided email, “if the email you specified exists in our system, we’ve sent a password reset link to it”

2 лайка

If you want this, enable it in site settings. Already exists.

By default we tell people since they can never remember which of their 10 email addresses they signed up with, so it is user hostile to force them to walk through all 10 emails to figure out which one they used on your site.

5 лайков

The signup form already gives away if an email address already exists (and turning that off doesn’t make sense) so it doesn’t really matter here, it doesn’t make that attack vector go away and it only makes things harder for users who actually forgot their password (or: forgot their email address)

6 лайков

@codinghorror thanks I didn’t know there’s a setting for it
@michaeld yes, it is true that the sign up form confirms for the existence of an email but one can reduce the email visibility by integrating Discourse with external identity providers or creating a custom sign up form with CAPTCHA.

There are already rate limits on these forms, try it yourself.

Полагаю, это был старый пост, но на случай, если кто-то ещё столкнётся с этой проблемой и беспокоится о том, что люди смогут выуживать адреса электронной почты участников сообщества, похоже, что Discourse внедрил простое решение. В настройках найдите «Скрывать подтверждение наличия адреса электронной почты» и включите эту опцию. Это предотвратит использование пользователями функции «Забыли пароль» для проверки наличия адресов электронной почты на вашем сервере.

1 лайк

Просто для связи: это было добавлено в этом коммите в рамках данной темы — Hide 'email account exists' for invites :partying_face:

Нет, я не обратил(а) внимания. :slight_smile: Это было сделано для того, чтобы расширить эту настройку и включить экран приглашений. Всё равно интересное дополнение, и я рад(а), что упомянул(а) об этом. :slight_smile:

Закрыто в пользу Email enumeration vulnerability on "Password Reset" dialogue