-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Milestone
Description
This gem does not use a MAC to verify data integrity. This can be problematic if ciphertexts are malleable by an attacker, i.e. an attacker gains access to the database and can perform chosen ciphertext attacks.
I'd suggest you add something like ActiveSupport::MessageVerifier (which uses HMAC and performs a timing-attack resistant MAC comparison) to ensure the ciphertexts are authentic:
https://github.com/rails/rails/blob/master/activesupport/lib/active_support/message_verifier.rb
Metadata
Metadata
Assignees
Labels
No labels