Frachtwerk / essencium-backend

Essencium Backend is a software library built on top of Spring Boot that allows developers to quickly get started on new software projects. Essencium provides, for example, a fully implemented role-rights concept as well as various field-tested solutions for access management and authentication.
GNU Lesser General Public License v3.0
15 stars 3 forks source link

Mail address can be changed without verification #94

Open pwannenmacher opened 1 year ago

pwannenmacher commented 1 year ago

Bug-Report

Via the profile I can enter any email address. This does not have to be confirmed by mail, but in the createdBy and updatedBy fields we only store mail addresses. So the following attack scenario is possible:

  1. Log in as user.
  2. Change my mail address to test@test.com
  3. Delete/manipulate data
  4. Change my mail address back to original mail address

As consequence it is not traceable who changed values since test@test.com is written to createdBy and updatedBy.

Steps to reproduce

see above

Expected behavior

Mail addresses should be verified before they are written to the user profile. Mail verification tokens should be time limited.

Additional information

pwannenmacher commented 7 months ago
JelmenGuhlke commented 6 months ago

After several discussions following functionality should be implemented: