{{ message }}
Fix Header Dropping Vulnerability in reqs.c#1
Open
sam-rendell wants to merge 1 commit into
Open
Conversation
… check Co-authored-by: sam-rendell <73448031+sam-rendell@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Identify and fix a header dropping vulnerability in
src/reqs.ccaused by incorrect return value checking ofadd_header_to_connection. The functionpseudomap_appendreturns 0 when the header limit (256) is reached, butsrc/reqs.conly checked for< 0. This allowed headers beyond the limit (e.g.,Content-Length) to be silently dropped, potentially enabling HTTP Request Smuggling or Security Bypass.The fix changes the check to
<= 0to correctly handle the failure case.Vulnerability Details:
src/reqs.c:get_all_headers->add_header_to_connection->pseudomap_appendif (... <= 0)insrc/reqs.c.PR created automatically by Jules for task 8764017303393033696 started by @sam-rendell