-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Fix http splitting vulnerabilities #24004
Fix http splitting vulnerabilities #24004
Conversation
Thanks for the release note entry! Suggest revising to follow the Order of changes in the Release Notes Guidelines. Maybe something like?
Please revise my suggestion if my phrasing doesn't correctly describe the work you've done. |
a2f47a6
to
d6b4b9e
Compare
d6b4b9e
to
8090138
Compare
presto-main/src/main/java/com/facebook/presto/server/AsyncPageTransportServlet.java
Outdated
Show resolved
Hide resolved
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.
Is it possible to write a test which can verify the new behavior?
bbcb63e
to
a329169
Compare
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.
Thanks @auden-woolfson.
I have an initial comment.
presto-main/src/main/java/com/facebook/presto/server/AsyncPageTransportServlet.java
Outdated
Show resolved
Hide resolved
194475e
to
b3bd151
Compare
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 think this approach is fine, but I wonder how much overhead this has. I'm curious about the impact on request throughput now that we're doing this additional header validation. I'm sure it won't be too high, but if we somehow happen to be sending tons of headers, it could slow things down. A microbenchmark would be nice, but not necessary
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.
LGTM, please squash the commits.
97ec9ff
to
1b5b26e
Compare
The release note doesn't seem quite accurate
We're not really "sanitizing" since we throw an exception. Also, we check the headers only, not the URI. Can you please update it to match? Additionally, is there an associated CVE for this? Or was this some generic check by the security scan? If there is a CVE related, please reference/link it |
1b5b26e
to
11c896f
Compare
11c896f
to
1b8716d
Compare
Description
Dealing with vulnerabilities found in static scan labeled http splitting vulnerability
https://cwe.mitre.org/data/definitions/113.html