Bug 1245200 (CVE-2015-5159)

Summary: CVE-2015-5159 python-kdcproxy: Missing request size limit allows denial of service
Product: [Other] Security Response Reporter: Florian Weimer <fweimer>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: cheimes, dkholia, nalin, nathaniel, npmccallum, security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-19 08:11:06 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: 1245221, 1245222, 1245223, 1249762    
Bug Blocks: 1222950, 1245256    

Description Florian Weimer 2015-07-21 12:59:00 UTC
It was discovered that python-kdcproxy did not reject overly large POST
requests in the recommend default configuration, allocating arbitrary
amounts of memory, eventually triggering the OOM killer, leading to a
denial of service.

Acknowledgements:

This issue was discovered by Florian Weimer of Red Hat Product Security.

Comment 1 Florian Weimer 2015-07-21 13:56:10 UTC
Mitigation:

Add “LimitRequestBody 100000” to the <Location> stanza, like this:

    <Location "/KdcProxy">
        Satisfy Any
        Order Deny,Allow
        Allow from all
        WSGIProcessGroup kdcproxy
        WSGIApplicationGroup kdcproxy
        LimitRequestBody 100000
    </Location>

Comment 3 Florian Weimer 2015-07-21 14:02:35 UTC
Created python-kdcproxy tracking bugs for this issue:

Affects: fedora-all [bug 1245223]

Comment 4 Florian Weimer 2015-07-21 14:11:13 UTC
Upstream bug report: https://github.com/npmccallum/kdcproxy/issues/20

Comment 6 Stefan Cornelius 2015-08-03 18:02:32 UTC
Created python-kdcproxy tracking bugs for this issue:

Affects: epel-7 [bug 1249762]