Bug 1563993 (CVE-2018-1103)

Summary: CVE-2018-1103 source-to-image: Unsanitized paths in tar.go:ExtractTarStreamFromTarReader() allow malicious containers to overwrite files on the client machine
Product: [Other] Security Response Reporter: Sam Fowler <sfowler>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: abhgupta, ahardin, bleanhar, ccoleman, dbaker, dedgar, hhorak, jchaloup, jgoulding, jokerman, mchappel, mfojtik, pkubat, security-response-team, sthangav, thrcka, trankin
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: source-to-image 1.1.10 Doc Type: If docs needed, set a value
Doc Text:
An improper validation of user input flaw was found in the source-to-image component of Openshift. An attacker who could trick a user into using the command to copy files locally, from a pod, could override files outside of the target directory of the command.
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 1577289, 1577290, 1577291, 1590175    
Bug Blocks: 1569669    

Description Sam Fowler 2018-04-05 06:47:43 UTC
Openshift Enterprise through version 3.6 has does not properly sanitize archived filenames in source-to-image/pkg/tar/tar.go:ExtractTarStreamFromTarReader(). An attacker can exploit this with a malicous container to overwrite files on client machines when clients use "oc rsync" to connect to that container.

This is a related but separate issue to CVE-2018-1102.

Comment 1 Sam Fowler 2018-04-05 06:47:51 UTC
Acknowledgments:

Name: Michael Hanselmann (Independent)

Comment 6 Doran Moppert 2018-06-12 06:57:24 UTC
Created source-to-image tracking bugs for this issue:

Affects: fedora-all [bug 1590175]