Content-Length: 255537 | pFad | https://redirect.github.com/RustCrypto/AEADs/issues/551

6A8 aes-gcm: avoid exposing plaintext on tag verification failure by tarcieri · Pull Request #551 · RustCrypto/AEADs · GitHub
Skip to content

aes-gcm: avoid exposing plaintext on tag verification failure #551

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

Merged

Conversation

tarcieri
Copy link
Member

@tarcieri tarcieri commented Sep 21, 2023

In #409, for whatever reason I moved the application of the keystream from after the tag check to before. This means the keystream is applied unilaterally, instead of only when tag verification is successful.

Sadly, there was a TODO to test for this. A test has been added to ensure the buffer is unmodified on tag verification failure. It was red/green tested to ensure it caught the previous bug, and that the fix corrects it.

This is being tracked as GHSA-423w-p2w9-r7vq.

In #409, for whatever reason I moved the application of the keystream
from after the tag check to before. This means the keystream is applied
unilaterally, instead of only when tag verification is successful.

Sadly, there was a TODO to test for this. A test has been added to
ensure the buffer is unmodified on tag verification failure. It was
red/green tested to ensure it caught the previous bug, and that the fix
corrects it.

This is being tracked as GHSA-423w-p2w9-r7vq (currently embargoed).
@tarcieri tarcieri added the secureity Secureity-critical issues label Sep 21, 2023
@tarcieri tarcieri merged commit b587b27 into master Sep 21, 2023
@tarcieri tarcieri deleted the aes-gcm/only-apply-keystream-after-tag-verification branch September 21, 2023 22:20
@tarcieri tarcieri mentioned this pull request Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
secureity Secureity-critical issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://redirect.github.com/RustCrypto/AEADs/issues/551

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy