Bug 1563993 (CVE-2018-1103) - CVE-2018-1103 source-to-image: Unsanitized paths in tar.go:ExtractTarStreamFromTarReader() allow malicious containers to overwrite files on the client machine
Summary: CVE-2018-1103 source-to-image: Unsanitized paths in tar.go:ExtractTarStreamFr...
Status: NEW
Alias: CVE-2018-1103
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard: impact=moderate,public=20180612,repor...
Keywords: Security
Depends On: 1590175 1577289 1577290 1577291
Blocks: 1569669
TreeView+ depends on / blocked
 
Reported: 2018-04-05 06:47 UTC by Sam Fowler
Modified: 2019-06-08 22:47 UTC (History)
17 users (show)

(edit)
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.
Clone Of:
(edit)
Last Closed:


Attachments (Terms of Use)

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]


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