Bug 1791534
Summary: | OpenShift: containers modify /etc/passwd group writable | ||
---|---|---|---|
Product: | [Other] Security Response | Reporter: | Mark Cooper <mcooper> |
Component: | vulnerability | Assignee: | Red Hat Product Security <security-response-team> |
Status: | CLOSED ERRATA | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | unspecified | CC: | abenaiss, bmontgom, eparis, jburrell, jlanford, jokerman, nstielau, security-response-team, sponnaga, tflannag |
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: | 2020-02-20 00:42:48 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: | |||
Bug Blocks: | 1776664 |
Description
Mark Cooper
2020-01-16 04:58:59 UTC
Overall the following 17 OpenShift containers contain the incorrect /etc/passwd permissions (some are built from the same repo): * hadoop-container * hive-container * jenkins-slave-base-rhel7-container * openshift-enterprise-ansible-operator-container * openshift-enterprise-ansible-service-broker-operator-container * openshift-enterprise-apb-base-container * openshift-enterprise-apb-tools-container * openshift-enterprise-mariadb-apb * openshift-enterprise-mediawiki-apb * openshift-enterprise-mediawiki-container * openshift-enterprise-mysql-apb * openshift-enterprise-postgresql-apb * openshift-enterprise-template-service-broker-operator-container * openshift-enterprise-tests-container * ose-metering-ansible-operator-container * presto-container * openshift-istio-kiali-rhel7-operator-container Unembargoed. Have filed separate flaws for each container listed with a separate CVE. Flaws filed for each container: * hadoop-container - https://bugzilla.redhat.com/show_bug.cgi?id=1793278 * hive-container - https://bugzilla.redhat.com/show_bug.cgi?id=1793279 * jenkins-slave-base-rhel7-container - https://bugzilla.redhat.com/show_bug.cgi?id=1793282 * openshift-enterprise-ansible-operator-container - https://bugzilla.redhat.com/show_bug.cgi?id=1793277 * openshift-enterprise-ansible-service-broker-operator-container - https://bugzilla.redhat.com/show_bug.cgi?id=1793283 * openshift-enterprise-apb-base-container - https://bugzilla.redhat.com/show_bug.cgi?id=1793286 * openshift-enterprise-apb-tools-container - https://bugzilla.redhat.com/show_bug.cgi?id=1793302 * openshift-enterprise-mariadb-apb - https://bugzilla.redhat.com/show_bug.cgi?id=1793289 * openshift-enterprise-mediawiki-apb - https://bugzilla.redhat.com/show_bug.cgi?id=1793296 * openshift-enterprise-mediawiki-container - https://bugzilla.redhat.com/show_bug.cgi?id=1793297 * openshift-enterprise-mysql-apb - https://bugzilla.redhat.com/show_bug.cgi?id=1793299 * openshift-enterprise-postgresql-apb - https://bugzilla.redhat.com/show_bug.cgi?id=1793301 * openshift-enterprise-template-service-broker-operator-container - https://bugzilla.redhat.com/show_bug.cgi?id=1793304 * openshift-enterprise-tests-container - https://bugzilla.redhat.com/show_bug.cgi?id=1793287 * ose-metering-ansible-operator-container - https://bugzilla.redhat.com/show_bug.cgi?id=1793284 * presto-container - https://bugzilla.redhat.com/show_bug.cgi?id=1793281 * openshift-istio-kiali-rhel7-operator-container - https://bugzilla.redhat.com/show_bug.cgi?id=1793305 Acknowledgments: Name: Joseph LaMagna-Reiter (SPR Inc.) Noting for future reference, openshift4/ose-baremetal-installer-rhel8 also suffers from these weak permissions: https://catalog.redhat.com/software/containers/openshift4/ose-baremetal-installer-rhel8/5d94b782d70cc50ebeaa5950?container-tabs=dockerfile - line 25: chmod g+w /etc/passwd Seen here in container layer content: $ podman save openshift4/ose-baremetal-installer-rhel8 | tar -xvf - ... $ tar vtf 3e1bc69229c4f2c3c631d68524091f7f2452e5f3fb86b3f9967e201785051d23.tar | grep etc/passwd -rw-rw-r-- 0/0 765 2020-11-18 08:55 etc/passwd -rw-r--r-- 0/0 703 2020-10-30 06:09 etc/passwd- I'll clone one of the existing BZs for this container image shortly. |