GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Reject http header values with non SP / HTAB chars by normanmaurer · Pull Request #14178 · netty/netty

Conversation

@normanmaurer

@normanmaurer normanmaurer commented Jul 11, 2024

Copy link
Copy Markdown
Member

Motivation:

We should not allow any other whitespace chars then SP / HTAB

Modifications:

  • Reject other values
  • Add unit test to proof validation works as expected

Result:

Fixes #14167

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

kenballus reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@normanmaurer
Reject http header values with non SP / HTAB chars
eff2aac
Motivation:

We should not allow any other whitespace chars then SP / HTAB

Modifications:

- Reject other values
- Add unit test to proof validation works as expected

Result:

Fixes #14167
@normanmaurer
normanmaurer requested review from bryce-anderson, chrisvest, franz1981, idelpivnitskiy and violetagg July 11, 2024 14:26
@normanmaurer

normanmaurer commented Jul 11, 2024

Copy link
Copy Markdown
Member Author

@kenballus PTAL

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer normanmaurer added this to the 4.1.112.Final milestone Jul 11, 2024
@normanmaurer normanmaurer mentioned this pull request Jul 11, 2024
Netty incorrectly strips \r, \x0b, and \x0c bytes from the ends of header values #14167
Closed
bryce-anderson
bryce-anderson reviewed Jul 11, 2024
View reviewed changes
Comment thread codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

normanmaurer and others added 2 commits July 11, 2024 18:46
@normanmaurer @bryce-anderson
Update codec-http/src/main/java/io/netty/handler/codec/http/HttpObjec…
bd85b1e
…tDecoder.java

Co-authored-by: Bryce Anderson <[email protected]>
@normanmaurer
Update HttpObjectDecoder.java
ef7d543
normanmaurer
normanmaurer commented Jul 11, 2024
View reviewed changes
Comment thread codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestDecoderTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer
Update codec-http/src/test/java/io/netty/handler/codec/http/HttpReque…
73b0113
…stDecoderTest.java
bryce-anderson
bryce-anderson approved these changes Jul 11, 2024
View reviewed changes

@bryce-anderson bryce-anderson left a comment

Copy link
Copy Markdown
Contributor

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.

I like this approach as it keeps the job of validation solely with the validator. However, it's worth getting another opinion before shipping.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

normanmaurer reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
idelpivnitskiy
idelpivnitskiy approved these changes Jul 11, 2024
View reviewed changes
@normanmaurer

normanmaurer commented Jul 12, 2024

Copy link
Copy Markdown
Member Author

/cc @vietj

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

violetagg
violetagg approved these changes Jul 12, 2024
View reviewed changes
@normanmaurer
normanmaurer merged commit c5d3d72 into 4.1 Jul 15, 2024
@normanmaurer
normanmaurer deleted the http_invalid_value_suffix branch July 15, 2024 08:04
normanmaurer added a commit that referenced this pull request Jul 15, 2024
@normanmaurer @bryce-anderson
Reject http header values with non SP / HTAB chars (#14178)
7dbb437
Motivation:

We should not allow any other whitespace chars then SP / HTAB

Modifications:

- Reject other values
- Add unit test to proof validation works as expected

Result:

Fixes #14167

---------

Co-authored-by: Bryce Anderson <[email protected]>
normanmaurer added a commit that referenced this pull request Jul 15, 2024
@normanmaurer @bryce-anderson
Reject http header values with non SP / HTAB chars (#14178)
5b2a2b3
Motivation:

We should not allow any other whitespace chars then SP / HTAB

Modifications:

- Reject other values
- Add unit test to proof validation works as expected

Result:

Fixes #14167

---------

Co-authored-by: Bryce Anderson <[email protected]>
normanmaurer added a commit to yawkat/netty that referenced this pull request Jul 20, 2024
@normanmaurer @bryce-anderson
Reject http header values with non SP / HTAB chars (netty#14178)
2fed6b0
Motivation:

We should not allow any other whitespace chars then SP / HTAB

Modifications:

- Reject other values
- Add unit test to proof validation works as expected

Result:

Fixes netty#14167

---------

Co-authored-by: Bryce Anderson <[email protected]>
This was referenced Sep 14, 2026
Http2: Reserve promised stream for PUSH_PROMISE after local RST_STREAM #17471
Closed
cache failure 1233e4a5 #17565
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@violetagg violetagg violetagg approved these changes
@bryce-anderson bryce-anderson bryce-anderson approved these changes
@idelpivnitskiy idelpivnitskiy idelpivnitskiy approved these changes
@franz1981 franz1981 Awaiting requested review from franz1981
@chrisvest chrisvest Awaiting requested review from chrisvest

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

4.1.112.Final

Development

Successfully merging this pull request may close these issues.

Netty incorrectly strips \r, \x0b, and \x0c bytes from the ends of header values

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@normanmaurer @violetagg @bryce-anderson @idelpivnitskiy
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.