プロジェクト

全般

プロフィール

Vote #75507

完了

Password/Email address change should invalidate security tokens

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Security_51
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

90%

予定工数:
category_id:
51
version_id:
81
issue_org_id:
17717
author_id:
347
assigned_to_id:
1188
comments:
9
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

To improve user account security, we believe it is a good practice to:

invalidate the password reset token (sent via email) once an account's email address is changed.

(This prevents hackers who may be able to change a user's address (or trick him into doing it) to use an "old" password reset link previously sent via email once the email address has been changed back by the user.)

invalidate the password reset token and autologin token once an account's password is changed.

(This prevents hackers from being still able to login after a user has potentially discovered a breach into his/her account and changed their password.)

The attached patch against current Redmine trunk implements this; tests included.


journals

--------------------------------------------------------------------------------
Looks good, and I confirm tests pass! There's just a little typo in the comment but nothing serious.

I'd like to have details by Jean-Philippe about how we deal with that kind of security improvements: I was about to commit it but it may not be a good idea weeks or months before a new major version is released. Jean-Philippe ?
--------------------------------------------------------------------------------
Jean-Baptiste Barth wrote:
> Looks good, and I confirm tests pass! There's just a little typo in the comment but nothing serious.

Thanks.

> I'd like to have details by Jean-Philippe about how we deal with that kind of security improvements: I was about to commit it but it may not be a good idea weeks or months before a new major version is released. Jean-Philippe ?

Personally, I don't think it would be a problem since it's not a fix for a security issue per se. Both this and #17796 can only be exploited in conjunction with social engineering or other security problems and not by itself. But I agree, let's wait for Jean-Philippe's opinion on this!

--------------------------------------------------------------------------------
Jan from Planio www.plan.io wrote:

> Personally, I don't think it would be a problem since it's not a fix for a security issue per se. Both this and #17796 can only be exploited in conjunction with social engineering or other security problems and not by itself. But I agree, let's wait for Jean-Philippe's opinion on this!

Agreed, this change and #17796 can be committed now for 2.6. Thanks.
--------------------------------------------------------------------------------
Why are both issues in Security? Do you have any objection if we move them to public?

More generally, now that issues can be set as private, do we still need Security project?
--------------------------------------------------------------------------------
Etienne Massip wrote:
> Why are both issues in Security? Do you have any objection if we move them to public?

It was just a precautionary measure. In theory, the issues can be exploited (together with some other vector such as social engineering), so I wanted to be sure to not tell more people about this as necessary before a fix is available for Redmine admins.

It may make sense to mov security issues to the public Redmine project, once they're fixed and released, to increase transparency. (Or we use the private flag as you suggest and remove it once released.)

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Committed it in r13396.
--------------------------------------------------------------------------------
Thanks!
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリSecurity_51 にセット
  • 対象バージョン2.6.0_81 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0