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

Fix UDP header in IPSec NAT-Traversal. #4125

Merged
merged 2 commits into from
Oct 23, 2023
Merged

Conversation

ppachocki
Copy link
Contributor

By the statement on line 1051 (ip_header = ip_header.__class__(raw(ip_header))), the value of the len field in the UDP header was set to 8 and the ESP layer in the packet was seen as padding.

@codecov
Copy link

codecov bot commented Sep 15, 2023

Codecov Report

Merging #4125 (3d068aa) into master (63838a3) will decrease coverage by 0.01%.
Report is 4 commits behind head on master.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #4125      +/-   ##
==========================================
- Coverage   81.95%   81.95%   -0.01%     
==========================================
  Files         330      330              
  Lines       76200    76211      +11     
==========================================
+ Hits        62449    62456       +7     
- Misses      13751    13755       +4     
Files Changed Coverage Δ
scapy/layers/ipsec.py 90.38% <100.00%> (+1.58%) ⬆️

... and 8 files with indirect coverage changes

@guedou
Copy link
Member

guedou commented Sep 18, 2023

Could you share an example of the issue reproducer and add it as a unit test?

@gpotter2 gpotter2 merged commit 9ca3cc9 into secdev:master Oct 23, 2023
18 of 19 checks passed
@gpotter2 gpotter2 added this to the 2.6.0 milestone Nov 28, 2023
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