-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Test control characters in Set-Cookie header values #28290
base: annevk/cookie-non-utf-8
Are you sure you want to change the base?
Test control characters in Set-Cookie header values #28290
Conversation
I think there are some issues with httpwg/http-extensions#1420 and this PR:
cc @chlily1 |
The PR in httpwg/http-extensions#1420 addresses this:
I agree that a header value shouldn't contain any of these characters. The set-cookie-string is not always a header value, though. (i.e. when it's set by
Can you explain what you mean by "mask injections"? If the text after 0x00 or 0x0A or 0x0D is always ignored, I don't see how it gets injected anywhere.
The original WPTs that I landed in #27886 did. |
@chlily1 ah okay, I got the impression from this PR that it was mainly about the HTTP header. I still think truncating is bad though. If a site naïvely does (I do think we want to test 0x0D further as unlike 0x0A it alone might not be sufficient to terminate a header value.) |
Adding to #26170. I didn't see any tests for control characters in set-cookie headers, but would like some to verify changes we're making in httpwg/http-extensions#1420. This can be merged into Anne's PR.
@annevk PTAL