Skip to content
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

Add tests for HTTP request smuggling in headers #1126

Merged
merged 1 commit into from
Aug 18, 2020

Conversation

Scottmitch
Copy link
Member

Motivation:
HTTP uses a non-binary framing layer that is subject to request
smuggling. Our decoding relies upon the terminal newline characters to
frame requests and we should have tests to exercise behavior in cases
where a request is injected into a header value.

Modifications:

  • Add HttpObjectDecoder tests which attempt to smuggle
    requests/responses in headers

Result:
More tests verifying smuggling behavior.

Motivation:
HTTP uses a non-binary framing layer that is subject to request
smuggling. Our decoding relies upon the terminal newline characters to
frame requests and we should have tests to exercise behavior in cases
where a request is injected into a header value.

Modifications:
- Add HttpObjectDecoder tests which attempt to smuggle
requests/responses in headers

Result:
More tests verifying smuggling behavior.
Copy link
Member

@idelpivnitskiy idelpivnitskiy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥇

@Scottmitch Scottmitch merged commit f795959 into apple:main Aug 18, 2020
@Scottmitch Scottmitch deleted the request_smuggle_tests branch August 18, 2020 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants