|
|
b5bae8 |
From 3654abee6ead9f11f8bb9ba8fc71efd6fa4dabbc Mon Sep 17 00:00:00 2001
|
|
|
b5bae8 |
From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= <fidencio@redhat.com>
|
|
|
b5bae8 |
Date: Wed, 3 Jul 2019 14:59:07 +0200
|
|
|
b5bae8 |
Subject: [PATCH] tools,install-script: Deprecate --config
|
|
|
b5bae8 |
{user,admin}-password
|
|
|
b5bae8 |
MIME-Version: 1.0
|
|
|
b5bae8 |
Content-Type: text/plain; charset=UTF-8
|
|
|
b5bae8 |
Content-Transfer-Encoding: 8bit
|
|
|
b5bae8 |
|
|
|
b5bae8 |
Let's deprecate user-password and admin-password options of --config and
|
|
|
b5bae8 |
also warn out whenever they're passed to osinfo-install-script.
|
|
|
b5bae8 |
|
|
|
b5bae8 |
CVE-2019-13313
|
|
|
b5bae8 |
Libosinfo: osinfo-install-script option leaks password via command line
|
|
|
b5bae8 |
argument. 'osinfo-install-script' is used to generate a script for
|
|
|
b5bae8 |
automated guest installations. It accepts user and admin passwords via
|
|
|
b5bae8 |
command line arguments, thus leaking them via process listing.
|
|
|
b5bae8 |
|
|
|
b5bae8 |
Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com>
|
|
|
b5bae8 |
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
|
|
|
b5bae8 |
---
|
|
|
b5bae8 |
tools/osinfo-install-script.c | 10 ++++++++++
|
|
|
b5bae8 |
1 file changed, 10 insertions(+)
|
|
|
b5bae8 |
|
|
|
b5bae8 |
diff --git a/tools/osinfo-install-script.c b/tools/osinfo-install-script.c
|
|
|
b5bae8 |
index af58440..c0528e7 100644
|
|
|
b5bae8 |
--- a/tools/osinfo-install-script.c
|
|
|
b5bae8 |
+++ b/tools/osinfo-install-script.c
|
|
|
b5bae8 |
@@ -85,6 +85,12 @@ static gboolean handle_config(const gchar *option_name G_GNUC_UNUSED,
|
|
|
b5bae8 |
val++;
|
|
|
b5bae8 |
key = g_strndup(value, len);
|
|
|
b5bae8 |
|
|
|
b5bae8 |
+ if (g_str_equal(key, OSINFO_INSTALL_CONFIG_PROP_USER_PASSWORD) ||
|
|
|
b5bae8 |
+ g_str_equal(key, OSINFO_INSTALL_CONFIG_PROP_ADMIN_PASSWORD)) {
|
|
|
b5bae8 |
+ g_warning("When setting user or admin password, use --config-file "
|
|
|
b5bae8 |
+ "instead.\n");
|
|
|
b5bae8 |
+ }
|
|
|
b5bae8 |
+
|
|
|
b5bae8 |
osinfo_entity_set_param(OSINFO_ENTITY(config),
|
|
|
b5bae8 |
key,
|
|
|
b5bae8 |
val);
|
|
|
b5bae8 |
@@ -556,10 +562,14 @@ The local language
|
|
|
b5bae8 |
=item C<admin-password>
|
|
|
b5bae8 |
|
|
|
b5bae8 |
The administrator password
|
|
|
b5bae8 |
+This option has been deprecated, use B<--config-file>
|
|
|
b5bae8 |
+for setting the admin password.
|
|
|
b5bae8 |
|
|
|
b5bae8 |
=item C<user-password>
|
|
|
b5bae8 |
|
|
|
b5bae8 |
The user password
|
|
|
b5bae8 |
+This option has been deprecated, use B<--config-file>
|
|
|
b5bae8 |
+for setting the user password.
|
|
|
b5bae8 |
|
|
|
b5bae8 |
=item C<user-login>
|
|
|
b5bae8 |
|
|
|
b5bae8 |
--
|
|
|
b5bae8 |
2.21.0
|
|
|
b5bae8 |
|