Skip to content

fix: stop /v1/verify from acting as a decryption oracle - #2019

Merged
alvneiayu merged 1 commit into
mainfrom
fix-plaintext-vuln
Aug 17, 2026
Merged

fix: stop /v1/verify from acting as a decryption oracle#2019
alvneiayu merged 1 commit into
mainfrom
fix-plaintext-vuln

Conversation

@alvneiayu

Copy link
Copy Markdown
Collaborator

spec.template.data isn't covered by the AEAD label, so /v1/verify's full Unseal() (including template execution) let an attacker pair a victim's real metadata/encryptedData with a crafted template and leak plaintext one bit per request via the 200/409 response. AttemptUnseal now uses a new ValidateEncryptedData() that only checks decryptability and never renders templates.

agarcia-oss
agarcia-oss previously approved these changes Aug 17, 2026
spec.template.data isn't covered by the AEAD label, so /v1/verify's
full Unseal() (including template execution) let an attacker pair a
victim's real metadata/encryptedData with a crafted template and leak
plaintext one bit per request via the 200/409 response. AttemptUnseal
now uses a new ValidateEncryptedData() that only checks decryptability
and never renders templates.

Signed-off-by: Alvaro Neira <alvaro.neira@broadcom.com>
@alvneiayu
alvneiayu merged commit 66db186 into main Aug 17, 2026
15 checks passed
@alvneiayu
alvneiayu deleted the fix-plaintext-vuln branch August 17, 2026 10:50
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

Successfully merging this pull request may close these issues.

2 participants