-
Notifications
You must be signed in to change notification settings - Fork 147
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
HTTP header parser incorrectly accepts CR and NUL within header values #25128
Comments
The link to the example servlet |
Thanks for the follow-up. I'm actually going to close this issue, because this bug is caused by an underlying bug in Grizzly. This is also why the link was broken; I have stopped fuzzing Glassfish and have begun fuzzing Grizzly directly. Seems like someone probably noticed this, because a couple weeks after I made this issue, someone opened a corresponding one in Grizzly: eclipse-ee4j/grizzly#2212 |
Environment Details
master
at 2d9ff32openjdk 21.0.4 2024-07-16
Linux 5c2fd4990cdb 6.10.2-arch1-2 #1 SMP PREEMPT_DYNAMIC Sat, 03 Aug 2024 17:56:17 +0000 x86_64 GNU/Linux
Problem Description
From RFC 9110:
Glassfish does not enforce this rule for CR and NUL.
Steps to reproduce
Impact of Issue
Mishandling of NUL and CR have been used as primitives in parsing discrepancy-related attacks, such as request smuggling, response splitting, and some forms of cache poisoning.
Footnotes
One interesting thing here is that the
a
byte after the CR is not interpreted by the parser. I'm not sure what's causing this, but it could be indicative of a second parsing problem. ↩The text was updated successfully, but these errors were encountered: