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

Insecure use of unauthenticated encryption - potential message forgery/plaintext recovery #14

Open
tarcieri opened this issue Sep 19, 2018 · 0 comments

Comments

@tarcieri
Copy link

This gem uses unauthenticated AES-CBC encryption:

https://github.com/chicks/aes/blob/master/lib/aes/aes.rb#L126

AES-CBC is not an authenticated encryption mode and is vulnerable to chosen ciphertext attacks including message forgery and potentially plaintext recovery.

At the very least, AES-GCM should be the default mode.

@tarcieri tarcieri changed the title Insecure use of unauthenticated encryption with potential for message forgery/plaintext recovery Insecure use of unauthenticated encryption - potential message forgery/plaintext recovery Sep 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant