The following flaw was found in python-requests:
The issue occurs when Requests is handling a HTTP response that is a redirection and that also sets cookies without an explicit domain parameter. Instead of the cookies only being set for the domain which sent the HTTP response, they are also sent to the redirection target, regardless of its domain.
The issue could be exploited in the following ways:
* If you are the redirection source (ie. you can make Requests hit your URL), you can make Requests perform a request to any third-party domain with cookies of your choosing. This may be useful in performing a session fixation attack.
* If you are the redirection target (ie. you can make a third-party site redirect to your URL), you are able to steal any cookies set by the third-party redirection.
This issue affects versions 2.1.0 and later, and is fixed in version 2.6.0:
Created python-requests tracking bugs for this issue:
Affects: fedora-21 [bug 1202906]
python-requests-2.5.3-2.fc21, python-urllib3-1.10.2-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
I think this one can be closed now. python-requests-2.6.0 is available in all active Fedora releases as well as rhel6-base and rhel7-base.
Created python-virtualenv tracking bugs for this issue:
Affects: epel-6 [bug 1778140]