Skip to content

Revert "Allow constructed strings in BER parsing (#2015)"#2278

Merged
samuel40791765 merged 1 commit intoaws:mainfrom
samuel40791765:revert-ber
Mar 18, 2025
Merged

Revert "Allow constructed strings in BER parsing (#2015)"#2278
samuel40791765 merged 1 commit intoaws:mainfrom
samuel40791765:revert-ber

Conversation

@samuel40791765
Copy link
Copy Markdown
Contributor

This reverts commit 2a72226.

Issues:

Addresses CryptoAlg-3037

Description of changes:

We've ran into issues with parsing indefinite BER with PKCS7 and it turns out our support for parsing is not as complete. Instead of parsing BER to an invalid unusable state that's confusing, we should outright disallow parsing of constructed strings in BER until we fix the issue.

Call-outs:

N/A

Testing:

Original tests.

Ruby CI is expected to fail. I'll update the patches in another PR.

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.

@samuel40791765 samuel40791765 requested a review from a team as a code owner March 18, 2025 21:36
@samuel40791765 samuel40791765 enabled auto-merge (squash) March 18, 2025 21:40
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.02%. Comparing base (8a9ebcf) to head (2a9e8d7).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2278      +/-   ##
==========================================
- Coverage   79.04%   79.02%   -0.03%     
==========================================
  Files         612      612              
  Lines      106630   106633       +3     
  Branches    15098    15099       +1     
==========================================
- Hits        84291    84269      -22     
- Misses      21685    21711      +26     
+ Partials      654      653       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@samuel40791765 samuel40791765 merged commit 1a1eb18 into aws:main Mar 18, 2025
106 of 108 checks passed
@samuel40791765 samuel40791765 deleted the revert-ber branch March 18, 2025 23:15
@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.

4 participants