Message132080
As noted by security@python.org's response I'm filing this bug here.
In wsgiref.headers.Headers it is possible to include headers which
contain a newline (i.e. \n or \r) either through add_header or
__init__. It is not uncommon that developers provide web applications
to the public in which the HTTP response headers are not filtered for
newlines but are controlled by the user. In such scenarios a malicious
user can use a newline to inject another header or even initiate a
HTTP response body. The impact would be at least equivalent to XSS.
Therefore, I suggest to filter/warn/except header tuples which contain
the above characters upon assignment in wsgiref.headers. |
|
| Date |
User |
Action |
Args |
| 2011-03-25 12:14:58 | Felix.Gröbert | set | recipients:
+ Felix.Gröbert |
| 2011-03-25 12:14:58 | Felix.Gröbert | set | messageid: <1301055298.41.0.957962483368.issue11671@psf.upfronthosting.co.za> |
| 2011-03-25 12:14:57 | Felix.Gröbert | link | issue11671 messages |
| 2011-03-25 12:14:56 | Felix.Gröbert | create | |
|