ruby-advisory-db icon indicating copy to clipboard operation
ruby-advisory-db copied to clipboard

"encryptor" gem v2.0.0: AES-GCM nonce reuse vulnerability

Open tarcieri opened this issue 6 years ago • 1 comments

I'm not sure this vulnerability ever received a CVE. It's described in the project's README:

https://github.com/attr-encrypted/encryptor#upgrading-from-v200-to-v300

This gem was encrypting all messages using the same key/nonce. This not only exposes the XOR of the plaintexts if you XOR together two ciphertexts, but it also leaks the AES-GCM authentication key, allowing an attacker to forge messages and potentially perform chosen ciphertext attacks, which could potentially enable full plaintext recovery (especially if they've e.g. compromised the database, which is the threat model attr_encrypted is designed to defend against).

tarcieri avatar Oct 03 '17 03:10 tarcieri

More information on this vulnerability can be found here: https://github.com/attr-encrypted/encryptor/pull/22

saghaulor avatar Oct 16 '17 17:10 saghaulor