Bug 1405416 (CVE-2016-9964)

Summary: CVE-2016-9964 python-bottle: redirect() doesn't filter "\r\n" which allows for CRLF attack
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: athmanem, metherid, msamia
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 03:04:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1405417, 1405418    
Bug Blocks:    

Description Andrej Nemec 2016-12-16 13:14:43 UTC
It was found that redirect() in bottle.py doesn't filter a "\r\n" sequence, which leads to a CRLF attack, as demonstrated by a redirect("233\r\nSet-Cookie: name=salt") call.

Upstream bug:

https://github.com/bottlepy/bottle/issues/913

Upstream patch:

https://github.com/bottlepy/bottle/commit/6d7e13da0f998820800ecb3fe9ccee4189aefb54

Comment 1 Andrej Nemec 2016-12-16 13:15:20 UTC
Created python-bottle tracking bugs for this issue:

Affects: fedora-all [bug 1405417]
Affects: epel-all [bug 1405418]

Comment 2 Product Security DevOps Team 2019-06-08 03:04:36 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.