-
Notifications
You must be signed in to change notification settings - Fork 352
[BUG] [SECURITY] Password of emailaccount is plaintext and visible #1233
[BUG] [SECURITY] Password of emailaccount is plaintext and visible #1233
Comments
It can't be encoded in the database because it is used as it, not to verify a password... |
Shouldn´t it be obfuscated/hidden on the site nevertheless? |
For the UI effectively, it's better to don't see it and don't send it, but in the database it's not possible to store a hash as it made for a user password. |
That sounds like a good idea. |
Yes. I agree that the password should not be visable (at all). Today I asked a friend to enter his password while setting up an instance for him. |
This should be rather easy to accomplish. You can add a "Mail Account Form" that ignores the initial value for the password. Likely also want to add a help text saying "write only" or something. Then the form would never load the password from the DB, but still let you set it. I would also recommend encryption at rest as well using a Fernet field. https://docs.djangoproject.com/en/3.2/ref/contrib/admin/#django.contrib.admin.ModelAdmin.form |
Thanks for the hint but I'm afraid I don't have the knowledge to modify/add such a form. On the docker image and tried to change the logo/logo-colour to see on which session I'm loged in - I could not manage :-) |
Describe the bug
The password of the account to access the mailbox is visible in plaintext in the webinterface (and therefore also in the database)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A hidden/obscured representation (all asterisks or something)
And also stored as a hash in the database.
Screenshots
I do not think so ;)
Webserver logs
Relevant information
docker-compose.yml
,docker-compose.env
orpaperless.conf
.The text was updated successfully, but these errors were encountered: