Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tarcieri opened this issue Oct 3, 2017 · 1 comment
Open

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

tarcieri opened this issue Oct 3, 2017 · 1 comment

Comments

@tarcieri
Copy link

tarcieri commented Oct 3, 2017

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).

@saghaulor
Copy link

More information on this vulnerability can be found here: attr-encrypted/encryptor#22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants