-
Notifications
You must be signed in to change notification settings - Fork 409
Add onion failure packet length check to prevent out of bounds error #3686
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
Add onion failure packet length check to prevent out of bounds error #3686
Conversation
👋 Thanks for assigning @valentinewallace as a reviewer! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3686 +/- ##
==========================================
- Coverage 89.25% 89.24% -0.02%
==========================================
Files 155 155
Lines 119959 119982 +23
Branches 119959 119982 +23
==========================================
+ Hits 107069 107077 +8
- Misses 10276 10283 +7
- Partials 2614 2622 +8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
👋 The first review has been submitted! Do you think this PR is ready for a second reviewer? If so, click here to assign a second reviewer. |
Fixes an oversight in the refactor in commit ea0f099 when moving the decoding of the packet.
62c1205
to
10fe63d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed offline, log DoS not a concern here
Fixes an oversight in the refactor in commit ea0f099 when moving the decoding of the packet.
This created a serious problem where a too short failure message received from downstream could crash the node. Added test coverage also.
Found via fuzzing.