This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 899
Security Vulnerability "/_data_/…/storage/cfg/…/…/accounts" #2134
Comments
the-djmaze
pushed a commit
to the-djmaze/snappymail
that referenced
this issue
Nov 11, 2021
This also solves RainLoop/RainLoop#2134
This was referenced Aug 20, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
RainLoop version, browser, OS:
v1.16
Expected behavior:
File can't be decrypted on (backup) server.
actual behavior:
File can be decrypted on (backup) server.
Steps to reproduce the problem:
When calling \RainLoop\Actions->SetAccounts()
It will store an array of values from \RainLoop\Model\Account->GetAuthToken()
Which in turn calls \RainLoop\Utils::EncodeKeyValues()
And that calls \RainLoop\Utils::EncryptString(@\serialize($aValues), \md5(APP_SALT))
When someone/something has access to the SALT.php file,
it can decode the encrypted accounts and gain all passwords.
These days with server breaches, ransomware, other attacks and the increase of backup behavior, the chance of being listed on "have i been pwned" has increased and the above mentioned issue becomes a bigger vulnerability.
Solutions:
With (4) you could store an HMAC of the encrypted password to check if the account login works.
Same issue applies to the 'contacts_sync' file
The text was updated successfully, but these errors were encountered: