Bug 1963985

Summary: glances: Unsafe XML parsing
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: madko, mail
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: 2021-05-24 17:32:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1963986, 1963987    
Bug Blocks:    

Description Pedro Sampaio 2021-05-24 14:16:48 UTC
Bandit output:

Issue: [B411:blacklist] Using Fault to parse untrusted XML data is known to be vulnerable to XML attacks. Use defused.xmlrpc.monkey_patch() function to monkey-patch xmlrpclib and mitigate XML vulnerabilities.
Severity: High Confidence: High
Location: glances/compat.py:91
90 from SimpleXMLRPCServer import SimpleXMLRPCRequestHandler, SimpleXMLRPCServer
91 from xmlrpclib import Fault, ProtocolError, ServerProxy, Transport
92 from urllib2 import urlopen, URLError


References:

https://github.com/nicolargo/glances/issues/1025

Comment 1 Pedro Sampaio 2021-05-24 14:17:20 UTC
Created glances tracking bugs for this issue:

Affects: epel-all [bug 1963987]
Affects: fedora-all [bug 1963986]

Comment 2 Product Security DevOps Team 2021-05-24 17:32:09 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.