Bug 1613861 (CVE-2018-10931)

Summary: CVE-2018-10931 cobbler: CobblerXMLRPCInterface exports all its methods over XMLRPC
Product: [Other] Security Response Reporter: Cedric Buissart <cbuissar>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: urgent Docs Contact:
Priority: urgent    
Version: unspecifiedCC: abergmann, adujicek, athmanem, bkearney, cperry, ggainey, jimi, kwizart, meissner, michael, mkorbel, orion, psampaio, rdrazny, rjerrido, scott, security-response-team, slong, tkasparek, tlestach, vanmeeuwen+fedora, wmealing
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
An API-exposure flaw was found in cobbler, where it exported CobblerXMLRPCInterface private functions over XMLRPC. A remote, unauthenticated attacker could use this flaw to gain important privileges within cobbler, as well as upload files to an arbitrary location in the daemon context.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-14 08:24:18 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: 1613484, 1613485, 1613829, 1614431, 1614433, 1614434    
Bug Blocks: 1612108    
Attachments:
Description Flags
fix none

Description Cedric Buissart 2018-08-08 12:38:28 UTC
Cobbler CobblerXMLRPCInterface object exposes all its functions over XMLRPC. This allows an attacker to use internal the internal functions of the class, such as creating a token, or upload files.

Upstream issue:

https://github.com/cobbler/cobbler/issues/1916

Upstream patch:

https://github.com/cobbler/cobbler/pull/1921

References:

https://movermeyer.com/2018-08-02-privilege-escalation-exploits-in-cobblers-api/

Comment 4 Cedric Buissart 2018-08-08 15:23:38 UTC
Acknowledgments:

Name: Cedric Buissart (Red Hat)

Comment 6 Cedric Buissart 2018-08-08 20:39:31 UTC
Created attachment 1474535 [details]
fix

Comment 12 Cedric Buissart 2018-08-09 14:52:40 UTC
Created cobbler tracking bugs for this issue:

Affects: epel-all [bug 1614431]
Affects: fedora-all [bug 1614433]

Comment 15 errata-xmlrpc 2018-08-09 15:44:21 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 5.6
  Red Hat Satellite 5.7
  Red Hat Satellite 5.8

Via RHSA-2018:2372 https://access.redhat.com/errata/RHSA-2018:2372

Comment 19 Summer Long 2018-08-13 01:21:03 UTC
Mitigation:

If SELinux is enabled, it might prevent some locations from accepting uploaded files from the attacker. This prevents some basic attacks allowing remote code execution, although it would not exclude all other possibilities.

Comment 23 Wade Mealing 2018-12-05 04:52:22 UTC
Oddly, i never got this needinfo.. that was WIERD.