CVE-2014-7823: dumpxml: security hole with migratable flag
Commit 28f8dfdc (v1.0.0) introduced a security hole: in at least the qemu implementation of virDomainGetXMLDesc, the use of the flag VIR_DOMAIN_XML_MIGRATABLE (which is usable from a read-only connection) triggers the implicit use of VIR_DOMAIN_XML_SECURE prior to calling qemuDomainFormatXML. However, the use of VIR_DOMAIN_XML_SECURE is supposed to be restricted to read-write clients only. This patch treats the migratable flag as requiring the same permissions, rather than analyzing what might break if migratable xml no longer includes secret information. Fortunately, the information leak is low-risk: all that is gated by the VIR_DOMAIN_XML_SECURE flag is the VNC connection password; but VNC passwords are already weak (FIPS forbids their use, and on a non-FIPS machine, anyone stupid enough to trust a max-8-byte password sent in plaintext over the network deserves what they get). SPICE offers better security than VNC, and all other secrets are properly protected by use of virSecret associations rather than direct output in domain XML. * src/remote/remote_protocol.x (REMOTE_PROC_DOMAIN_GET_XML_DESC): Tighten rules on use of migratable flag. * src/libvirt-domain.c (virDomainGetXMLDesc): Likewise. Signed-off-by: NEric Blake <eblake@redhat.com>
Showing
-
mentioned in commit 7b334c16
-
mentioned in commit 220c6b86
-
mentioned in commit 3b7ce055
-
mentioned in commit 107f1ff2
-
mentioned in commit 333c95c9
-
mentioned in commit 3d751cdc
-
mentioned in commit f8c77133
-
mentioned in commit 520ecab4
-
mentioned in commit bdbcf66a
-
mentioned in commit 4e3856c0
-
mentioned in commit 757292bf
-
mentioned in commit 11219f40
-
mentioned in commit 3adae530
-
mentioned in commit bd78e6f6
-
mentioned in commit 2a924d87
-
mentioned in commit 8c083ff0
-
mentioned in commit 2cfd147c
-
mentioned in commit 59fff7ff
-
mentioned in commit 0ea4cd2f
-
mentioned in commit c7500ce3
-
mentioned in commit 744ddb15
想要评论请 注册 或 登录