Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1593803 - (CVE-2018-10870) CVE-2018-10870 redhat-certification: rhcertStore.py:__saveResultsFile allows to write any file
CVE-2018-10870 redhat-certification: rhcertStore.py:__saveResultsFile allows ...
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
urgent Severity urgent
: ---
: ---
Assigned To: Red Hat Product Security
impact=critical,public=20180718,repor...
: Security
Depends On: 1608782
Blocks: 1593614
  Show dependency treegraph
 
Reported: 2018-06-21 11:30 EDT by Riccardo Schirone
Modified: 2018-08-10 02:12 EDT (History)
5 users (show)

See Also:
Fixed In Version: redhat-certification 5.15-20180717
Doc Type: If docs needed, set a value
Doc Text:
It has been discovered that redhat-certification does not properly sanitize paths in rhcertStore.py:__saveResultsFile. A remote attacker could use this flaw to overwrite any file, potentially gaining remote code execution.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-08-10 02:12:04 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:2373 None None None 2018-08-09 13:22 EDT

  None (edit)
Description Riccardo Schirone 2018-06-21 11:30:19 EDT
It has been discovered that redhat-certification does not properly sanitize paths in rhcertStore.py:__saveResultsFile. A remote attacker could use this flaw to overwrite any file, potentially gaining remote code execution.
Comment 1 Riccardo Schirone 2018-06-21 11:30:22 EDT
Acknowledgments:

Name: Riccardo Schirone (Red Hat Product Security)
Comment 2 Riccardo Schirone 2018-06-21 11:30:25 EDT
Mitigation:

If SELinux is enabled it further restricts the set of files an attacker may write to. This prevents some basic attacks that would allow to gain remote code execution, though it is not excluded other means are possible.
Comment 5 Riccardo Schirone 2018-06-25 09:06:42 EDT
resultsFileName in rhcertStore.py:__saveResultsFile creates the path on the server by concatenating some fixed strings with others that can be manipulated by an attacker. In particular, when uploading a "transfer" file in /save, the clientIP is used to construct the final path, however clientIP is under the attacker's control because taken from the X-Forwarded-For HTTP header.
Comment 8 errata-xmlrpc 2018-08-09 13:22:53 EDT
This issue has been addressed in the following products:

  Red Hat Certification for Red Hat Enterprise Linux 7

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

Note You need to log in before you can comment on or make changes to this bug.