Encryption of TOTP secrets
-
I recently installed your plugin and enforced 2fa authentication for my superadmins and admins. Wanted to extract the TOTP tokens to import in a different internal software, so the users use their token on both places. In the process I had to look in your code as to extract the current tokens and noticed they were SSL encrypted( data is in format “ssl_{key}”), and the decryption key is kept in the wp_sitemeta table as a meta_key wp_2fa_secret_key. I implemented a decryptor, but the question arises as why the encryption key is kept in the same database as encrypted material. This to my opinion is faux security.
Do you plan on keeping the key in a different place, so a possible attacker dumping the database will not be able to decrypt the TOTP keys easily?Otherwise, greetings for the great work thus far.
Daniel
The topic ‘Encryption of TOTP secrets’ is closed to new replies.