Skip to content

Reject DSA trailing garbage in EVP layer, add test cases#2289

Merged
skmcgrail merged 1 commit intoaws:mainfrom
skmcgrail:dsa_trailing_garbage
Mar 24, 2025
Merged

Reject DSA trailing garbage in EVP layer, add test cases#2289
skmcgrail merged 1 commit intoaws:mainfrom
skmcgrail:dsa_trailing_garbage

Conversation

@skmcgrail
Copy link
Copy Markdown
Member

Description

The EVP API layer was not rejecting signatures that contained trailing garbage after the DSA_SIG ASN.1 encoding (note it correctly reject invalid signatures regardless). This did not match the behavior of the DSA_verify and DSA_check_signature APIs which explicitly check and reject trailing garbage. This aligns the EVP layer with this behavior.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

@skmcgrail skmcgrail requested a review from a team as a code owner March 24, 2025 19:25
@skmcgrail skmcgrail force-pushed the dsa_trailing_garbage branch 2 times, most recently from 7a7c8ea to 63f4876 Compare March 24, 2025 19:31
@skmcgrail skmcgrail requested a review from nebeid March 24, 2025 19:42
justsmth
justsmth previously approved these changes Mar 24, 2025
@skmcgrail skmcgrail force-pushed the dsa_trailing_garbage branch from 97b42da to a4edc3e Compare March 24, 2025 20:00
@skmcgrail skmcgrail merged commit c80720c into aws:main Mar 24, 2025
105 of 108 checks passed
@skmcgrail skmcgrail deleted the dsa_trailing_garbage branch March 24, 2025 22:30
@skmcgrail skmcgrail mentioned this pull request Mar 28, 2025
skmcgrail added a commit that referenced this pull request Mar 28, 2025
## What's Changed
* Revert "Allow constructed strings in BER parsing (#2015)" by
@samuel40791765 in #2278
* Add the rehash utility to the openssl CLI tool by @smittals2 in
#2258
* Documentation on service indicator by @justsmth in
#2281
* Update patches in Ruby CI by @samuel40791765 in
#2233
* Reject DSA trailing garbage in EVP layer, add test cases by @skmcgrail
in #2289
* Add support for verifying PKCS7 signed attributes by @samuel40791765
in #2264
* Add support for more SSL BIO functions by @samuel40791765 in
#2273
* Wire-up rust-openssl into GitHub CI (for the time being) by @skmcgrail
in #2291
* Adding detection of out-of-bound pre-bound memory read to AES-XTS
tests. by @nebeid in #2286
* AES: Add function pointer trampoline to avoid delocator issue by
@hanno-becker in #2294
* Bump mysql CI to 9.2.0 by @samuel40791765 in
#2161
* Cherrypick hardening DSA param checks from BoringSSL by @smittals2 in
#2293

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license and the ISC license.
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.

3 participants