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

make sure to only pass handshake messages that keys are available for #2739

Merged
merged 1 commit into from
Sep 4, 2020

Conversation

marten-seemann
Copy link
Member

@marten-seemann marten-seemann commented Sep 4, 2020

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=25397.

What's happening here is that we're replacing the EncryptedExtensions message with a NewSessionTicket message (at the correct encryption level: 1-RTT). At this point, the handshake hasn't completed yet, so the client would wait for that.
This can never happen in practice: As the handshake is not yet complete, we wouldn't even be able to open a 1-RTT packet.

The fix for the fuzz-test is straightforward: Check if the corresponding AEAD opener is available before injecting a message at a given encryption level.

@codecov
Copy link

codecov bot commented Sep 4, 2020

Codecov Report

Merging #2739 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2739   +/-   ##
=======================================
  Coverage   86.52%   86.52%           
=======================================
  Files         128      128           
  Lines        9960     9960           
=======================================
  Hits         8617     8617           
  Misses       1010     1010           
  Partials      333      333           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cd78ea9...3f40b2f. Read the comment docs.

@marten-seemann marten-seemann merged commit bed802a into master Sep 4, 2020
@marten-seemann marten-seemann deleted the fix-handshake-fuzzer-enclevel branch September 5, 2020 04:16
@aschmahmann aschmahmann mentioned this pull request Feb 18, 2021
73 tasks
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.

1 participant