Repository navigation
Improve HTTP header filtering - #87172
Merged
Algunenano merged 5 commits intoSep 29, 2025
Merged
Algunenano merged 5 commits into
Algunenano merged 5 commits into
Conversation
Contributor
|
Workflow [PR], commit [0837b05] Summary: ❌
|
Member
Author
|
yakov-olkhovskiy
approved these changes
Sep 28, 2025
Algunenano
enabled auto-merge
September 29, 2025 09:24
This was referenced Sep 29, 2025
robot-clickhouse
added a commit
that referenced
this pull request
Sep 29, 2025
This was referenced Sep 29, 2025
robot-clickhouse
added a commit
that referenced
this pull request
Sep 29, 2025
robot-clickhouse
added a commit
that referenced
this pull request
Sep 29, 2025
robot-clickhouse
added a commit
that referenced
this pull request
Sep 29, 2025
clickhouse-gh Bot
added a commit
that referenced
this pull request
Sep 29, 2025
Backport #87172 to 25.8: Improve HTTP header filtering
clickhouse-gh Bot
added a commit
that referenced
this pull request
Sep 29, 2025
Backport #87172 to 25.7: Improve HTTP header filtering
Algunenano
added a commit
that referenced
this pull request
Sep 29, 2025
Backport #87172 to 25.9: Improve HTTP header filtering
Algunenano
added a commit
that referenced
this pull request
Sep 30, 2025
Backport #87172 to 25.3: Improve HTTP header filtering
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.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
The function checkHeaders is now properly validating the provided headers and reject forbidden headers. Original author: Michael Anastasakis (@michael-anastasakis)
Detailed Description
The function
checkHeadersresponsible for filtering forbidden headers is not properly validating the provided headers. The function does not strip the entries from whitespace or special characters.This leads to situations where queries that are meant to fail like the ones below bypass the validation.
Expected blocked request
Query that bypass the check