Project

General

Profile

Actions

Feature #1840

closed

non-ascii cookie value get Bad request response

Added by moo over 15 years ago. Updated almost 8 years ago.

Status:
Invalid
Priority:
Normal
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:

Description

i'm not sure if it's validate in RFC, but it seems legal and easy to do setcookie (setrawcookie?) in php or document.cookie = .. in javascript without escaping/urlencoding the name/value pair. i did it by "mistake" and never had a chance to fix it from server side

well yes i can remove spcified cookie in firefox for specified site or clear all cookie in IE, but this is not a way for end users

chance that your server or pages may have set such header:
1. software (that generate web pages) that didn't aware of this problem and you studdently lost all users once you have non-ascii cookie sent
2. same as above but 3rd party plugins for your software
3. cookie and session fixation that's not fixed

Actions #1

Updated by gstrauss about 8 years ago

  • Tracker changed from Bug to Feature

lighttpd does not currently perform strict validation on the headers returned by CGI, FastCGI, SCGI. Also, for that matter, lighttpd does not strictly validate the contents of headers set by modules.

Changing ticket to feature request. Personally, I do not think that this should be done in lighttpd, as it belongs in developer testing tools or in an IDS or application-level firewall.

Actions #2

Updated by gstrauss almost 8 years ago

  • Status changed from New to Invalid

If I understand correctly what is being requested, I don't think that this belongs in the core.

If implemented as an optional module, I can see how this might be useful to those who want to scrub incoming request headers or outgoing response headers.

Actions

Also available in: Atom