Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reject HTTP/2 header values with invalid characters (#12760)
Motivation: In https://datatracker.ietf.org/doc/html/rfc7540#section-10.3 it says that only certain characters are valid in a header value: > Any request or response that contains a character not permitted > in a header field value MUST be treated as malformed (Section 8.1.2.6). > Valid characters are defined by the "field-content" ABNF rule in > Section 3.2 of [RFC7230]. Modification: Add a header value validation step to HpackDecoder. Result: Header values are now validated against the Section 10.3, etc. rules.
- Loading branch information
Showing
21 changed files
with
1,321 additions
and
300 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.