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

only check the SCID for Initial packets #2857

Merged
merged 2 commits into from
Nov 10, 2020

Conversation

marten-seemann
Copy link
Member

This fixes a bug where we immediately use the DCID from the preferred address transport parameter during the handshake, and then reject incoming Handshake packets that use this CID as SCID.

There's no need to validate the SCID of Handshake packets, as Handshake packets are authenticated and thus can't be injected by an attacker. The spec only requires this check for Initial packets:

if subsequent Initial packets include a different Source Connection ID, they MUST be discarded.

@codecov
Copy link

codecov bot commented Nov 2, 2020

Codecov Report

Merging #2857 into master will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2857      +/-   ##
==========================================
- Coverage   85.67%   85.67%   -0.00%     
==========================================
  Files         134      134              
  Lines        9087     9086       -1     
==========================================
- Hits         7785     7784       -1     
  Misses        960      960              
  Partials      342      342              
Impacted Files Coverage Δ
session.go 77.22% <100.00%> (-0.02%) ⬇️

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 272229a...337e217. Read the comment docs.

@marten-seemann marten-seemann merged commit e8a9888 into master Nov 10, 2020
@marten-seemann marten-seemann deleted the fix-spa-conn-id-handling branch November 11, 2020 09:22
@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.

2 participants