Vulnerabilities > CVE-2004-0559
Attack vector
UNKNOWN Attack complexity
UNKNOWN Privileges required
UNKNOWN Confidentiality impact
UNKNOWN Integrity impact
UNKNOWN Availability impact
UNKNOWN Summary
The maketemp.pl script in Usermin 1.070 and 1.080 allows local users to overwrite arbitrary files at install time via a symlink attack on the /tmp/.usermin directory.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 9 | |
Application | 13 | |
OS | 6 |
Nessus
NASL family Debian Local Security Checks NASL id DEBIAN_DSA-544.NASL description Ludwig Nussel discovered a problem in webmin, a web-based administration toolkit. A temporary directory was used but without checking for the previous owner. This could allow an attacker to create the directory and place dangerous symbolic links inside. last seen 2020-06-01 modified 2020-06-02 plugin id 15381 published 2004-09-29 reporter This script is Copyright (C) 2004-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/15381 title Debian DSA-544-1 : webmin - insecure temporary directory code #%NASL_MIN_LEVEL 80502 # # (C) Tenable Network Security, Inc. # # The descriptive text and package checks in this plugin were # extracted from Debian Security Advisory DSA-544. The text # itself is copyright (C) Software in the Public Interest, Inc. # include("compat.inc"); if (description) { script_id(15381); script_version("1.21"); script_cvs_date("Date: 2019/08/02 13:32:18"); script_cve_id("CVE-2004-0559", "CVE-2004-1468"); script_xref(name:"DSA", value:"544"); script_name(english:"Debian DSA-544-1 : webmin - insecure temporary directory"); script_summary(english:"Checks dpkg output for the updated package"); script_set_attribute( attribute:"synopsis", value:"The remote Debian host is missing a security-related update." ); script_set_attribute( attribute:"description", value: "Ludwig Nussel discovered a problem in webmin, a web-based administration toolkit. A temporary directory was used but without checking for the previous owner. This could allow an attacker to create the directory and place dangerous symbolic links inside." ); script_set_attribute( attribute:"see_also", value:"http://www.debian.org/security/2004/dsa-544" ); script_set_attribute( attribute:"solution", value: "Upgrade the webmin packages. For the stable distribution (woody) this problem has been fixed in version 0.94-7woody3." ); script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:webmin"); script_set_attribute(attribute:"cpe", value:"cpe:/o:debian:debian_linux:3.0"); script_set_attribute(attribute:"patch_publication_date", value:"2004/09/14"); script_set_attribute(attribute:"plugin_publication_date", value:"2004/09/29"); script_set_attribute(attribute:"vuln_publication_date", value:"2004/09/05"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2004-2019 Tenable Network Security, Inc."); script_family(english:"Debian Local Security Checks"); script_dependencies("ssh_get_info.nasl"); script_require_keys("Host/local_checks_enabled", "Host/Debian/release", "Host/Debian/dpkg-l"); exit(0); } include("audit.inc"); include("debian_package.inc"); if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED); if (!get_kb_item("Host/Debian/release")) audit(AUDIT_OS_NOT, "Debian"); if (!get_kb_item("Host/Debian/dpkg-l")) audit(AUDIT_PACKAGE_LIST_MISSING); flag = 0; if (deb_check(release:"3.0", prefix:"webmin", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-apache", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-bind8", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-burner", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-cluster-software", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-cluster-useradmin", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-core", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-cpan", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-dhcpd", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-exports", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-fetchmail", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-grub", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-heartbeat", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-inetd", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-jabber", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-lpadmin", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-mon", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-mysql", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-nis", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-postfix", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-postgresql", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-ppp", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-qmailadmin", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-quota", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-raid", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-samba", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-sendmail", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-software", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-squid", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-sshd", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-ssl", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-status", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-stunnel", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-wuftpd", reference:"0.94-7woody3")) flag++; if (deb_check(release:"3.0", prefix:"webmin-xinetd", reference:"0.94-7woody3")) flag++; if (flag) { if (report_verbosity > 0) security_hole(port:0, extra:deb_report_get()); else security_hole(0); exit(0); } else audit(AUDIT_HOST_NOT, "affected");
NASL family FreeBSD Local Security Checks NASL id FREEBSD_WEBMIN_1150_5.NASL description The following package needs to be updated: webmin last seen 2016-09-26 modified 2004-09-16 plugin id 14760 published 2004-09-16 reporter Tenable source https://www.tenable.com/plugins/index.php?view=single&id=14760 title FreeBSD : webmin -- insecure temporary file creation at installation time (199) code #%NASL_MIN_LEVEL 999999 # @DEPRECATED@ # # This script has been deprecated by freebsd_pkg_ae7b7f6505c711d9b45d000c41e2cdad.nasl. # # Disabled on 2011/10/02. # # # (C) Tenable Network Security, Inc. # # This script contains information extracted from VuXML : # # Copyright 2003-2006 Jacques Vidrine and contributors # # Redistribution and use in source (VuXML) and 'compiled' forms (SGML, # HTML, PDF, PostScript, RTF and so forth) with or without modification, # are permitted provided that the following conditions are met: # 1. Redistributions of source code (VuXML) must retain the above # copyright notice, this list of conditions and the following # disclaimer as the first lines of this file unmodified. # 2. Redistributions in compiled form (transformed to other DTDs, # published online in any format, converted to PDF, PostScript, # RTF and other formats) must reproduce the above copyright # notice, this list of conditions and the following disclaimer # in the documentation and/or other materials provided with the # distribution. # # THIS DOCUMENTATION IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT # OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS DOCUMENTATION, # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # # include('compat.inc'); if ( description ) { script_id(14760); script_version("1.8"); script_cve_id("CVE-2004-0559"); script_name(english:"FreeBSD : webmin -- insecure temporary file creation at installation time (199)"); script_set_attribute(attribute:'synopsis', value: 'The remote host is missing a security update'); script_set_attribute(attribute:'description', value:'The following package needs to be updated: webmin'); script_set_attribute(attribute: 'cvss_vector', value: 'CVSS2#AV:L/AC:L/Au:N/C:N/I:P/A:N'); script_set_attribute(attribute:'solution', value: 'Update the package on the remote host'); script_set_attribute(attribute: 'see_also', value: 'http://drupal.org/node/184315 http://drupal.org/node/184316 http://drupal.org/node/184320 http://drupal.org/node/184348 http://drupal.org/node/184354 http://secunia.com/advisories/21721 http://secunia.com/advisories/27292 http://www.mozilla.org/security/announce/2006/mfsa2006-09.html http://www.mozilla.org/security/announce/2006/mfsa2006-10.html http://www.mozilla.org/security/announce/2006/mfsa2006-11.html http://www.mozilla.org/security/announce/2006/mfsa2006-12.html http://www.mozilla.org/security/announce/2006/mfsa2006-13.html http://www.mozilla.org/security/announce/2006/mfsa2006-14.html http://www.mozilla.org/security/announce/2006/mfsa2006-15.html http://www.mozilla.org/security/announce/2006/mfsa2006-16.html http://www.mozilla.org/security/announce/2006/mfsa2006-17.html http://www.openldap.org/its/index.cgi/Software%20Bugs?id=4587 http://www.openldap.org/lists/openldap-announce/200608/msg00000.html http://www.webmin.com/changes-1.160.html'); script_set_attribute(attribute:'see_also', value: 'http://www.FreeBSD.org/ports/portaudit/ae7b7f65-05c7-11d9-b45d-000c41e2cdad.html'); script_set_attribute(attribute:"plugin_publication_date", value: "2004/09/16"); script_end_attributes(); script_summary(english:"Check for webmin"); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2009-2018 Tenable Network Security, Inc."); family["english"] = "FreeBSD Local Security Checks"; script_family(english:family["english"]); script_dependencies("ssh_get_info.nasl"); script_require_keys("Host/FreeBSD/pkg_info"); exit(0); } # Deprecated. exit(0, "This plugin has been deprecated. Refer to plugin #37792 (freebsd_pkg_ae7b7f6505c711d9b45d000c41e2cdad.nasl) instead."); global_var cvss_score; cvss_score=2; include('freebsd_package.inc'); pkg_test(pkg:"webmin<1.150_5");
NASL family FreeBSD Local Security Checks NASL id FREEBSD_PKG_AE7B7F6505C711D9B45D000C41E2CDAD.NASL description The Webmin developers documented a security issue in the release notes for version 1.160 : Fixed a security hole in the maketemp.pl script, used to create the /tmp/.webmin directory at install time. If an un-trusted user creates this directory before Webmin is installed, he could create in it a symbolic link pointing to a critical file on the system, which would be overwritten when Webmin writes to the link filename. last seen 2020-06-01 modified 2020-06-02 plugin id 37792 published 2009-04-23 reporter This script is Copyright (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/37792 title FreeBSD : webmin -- insecure temporary file creation at installation time (ae7b7f65-05c7-11d9-b45d-000c41e2cdad) code #%NASL_MIN_LEVEL 80502 # # (C) Tenable Network Security, Inc. # # The descriptive text and package checks in this plugin were # extracted from the FreeBSD VuXML database : # # Copyright 2003-2018 Jacques Vidrine and contributors # # Redistribution and use in source (VuXML) and 'compiled' forms (SGML, # HTML, PDF, PostScript, RTF and so forth) with or without modification, # are permitted provided that the following conditions are met: # 1. Redistributions of source code (VuXML) must retain the above # copyright notice, this list of conditions and the following # disclaimer as the first lines of this file unmodified. # 2. Redistributions in compiled form (transformed to other DTDs, # published online in any format, converted to PDF, PostScript, # RTF and other formats) must reproduce the above copyright # notice, this list of conditions and the following disclaimer # in the documentation and/or other materials provided with the # distribution. # # THIS DOCUMENTATION IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT # OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS DOCUMENTATION, # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # include("compat.inc"); if (description) { script_id(37792); script_version("1.10"); script_cvs_date("Date: 2019/08/02 13:32:36"); script_cve_id("CVE-2004-0559"); script_name(english:"FreeBSD : webmin -- insecure temporary file creation at installation time (ae7b7f65-05c7-11d9-b45d-000c41e2cdad)"); script_summary(english:"Checks for updated package in pkg_info output"); script_set_attribute( attribute:"synopsis", value:"The remote FreeBSD host is missing a security-related update." ); script_set_attribute( attribute:"description", value: "The Webmin developers documented a security issue in the release notes for version 1.160 : Fixed a security hole in the maketemp.pl script, used to create the /tmp/.webmin directory at install time. If an un-trusted user creates this directory before Webmin is installed, he could create in it a symbolic link pointing to a critical file on the system, which would be overwritten when Webmin writes to the link filename." ); script_set_attribute( attribute:"see_also", value:"http://www.webmin.com/changes-1.160.html" ); # https://vuxml.freebsd.org/freebsd/ae7b7f65-05c7-11d9-b45d-000c41e2cdad.html script_set_attribute( attribute:"see_also", value:"http://www.nessus.org/u?c3fe554d" ); script_set_attribute(attribute:"solution", value:"Update the affected package."); script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:N/C:N/I:P/A:N"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:webmin"); script_set_attribute(attribute:"cpe", value:"cpe:/o:freebsd:freebsd"); script_set_attribute(attribute:"vuln_publication_date", value:"2004/09/05"); script_set_attribute(attribute:"patch_publication_date", value:"2004/09/14"); script_set_attribute(attribute:"plugin_publication_date", value:"2009/04/23"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof."); script_family(english:"FreeBSD Local Security Checks"); script_dependencies("ssh_get_info.nasl"); script_require_keys("Host/local_checks_enabled", "Host/FreeBSD/release", "Host/FreeBSD/pkg_info"); exit(0); } include("audit.inc"); include("freebsd_package.inc"); if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED); if (!get_kb_item("Host/FreeBSD/release")) audit(AUDIT_OS_NOT, "FreeBSD"); if (!get_kb_item("Host/FreeBSD/pkg_info")) audit(AUDIT_PACKAGE_LIST_MISSING); flag = 0; if (pkg_test(save_report:TRUE, pkg:"webmin<1.150_5")) flag++; if (flag) { if (report_verbosity > 0) security_note(port:0, extra:pkg_report_get()); else security_note(0); exit(0); } else audit(AUDIT_HOST_NOT, "affected");
NASL family Mandriva Local Security Checks NASL id MANDRAKE_MDKSA-2004-101.NASL description A vulnerability in webmin was discovered by Ludwig Nussel. A temporary directory was used in webmin, however it did not check for the previous owner of the directory. This could allow an attacker to create the directory and place dangerous symbolic links inside. The updated packages are patched to prevent this problem. last seen 2020-06-01 modified 2020-06-02 plugin id 14795 published 2004-09-23 reporter This script is Copyright (C) 2004-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/14795 title Mandrake Linux Security Advisory : webmin (MDKSA-2004:101) code #%NASL_MIN_LEVEL 80502 # # (C) Tenable Network Security, Inc. # # The descriptive text and package checks in this plugin were # extracted from Mandrake Linux Security Advisory MDKSA-2004:101. # The text itself is copyright (C) Mandriva S.A. # include("compat.inc"); if (description) { script_id(14795); script_version ("1.17"); script_cvs_date("Date: 2019/08/02 13:32:47"); script_cve_id("CVE-2004-0559"); script_xref(name:"MDKSA", value:"2004:101"); script_name(english:"Mandrake Linux Security Advisory : webmin (MDKSA-2004:101)"); script_summary(english:"Checks rpm output for the updated package"); script_set_attribute( attribute:"synopsis", value:"The remote Mandrake Linux host is missing a security update." ); script_set_attribute( attribute:"description", value: "A vulnerability in webmin was discovered by Ludwig Nussel. A temporary directory was used in webmin, however it did not check for the previous owner of the directory. This could allow an attacker to create the directory and place dangerous symbolic links inside. The updated packages are patched to prevent this problem." ); script_set_attribute( attribute:"solution", value:"Update the affected webmin package." ); script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:N/C:N/I:P/A:N"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:webmin"); script_set_attribute(attribute:"cpe", value:"cpe:/o:mandrakesoft:mandrake_linux:10.0"); script_set_attribute(attribute:"cpe", value:"cpe:/o:mandrakesoft:mandrake_linux:9.2"); script_set_attribute(attribute:"patch_publication_date", value:"2004/09/22"); script_set_attribute(attribute:"plugin_publication_date", value:"2004/09/23"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2004-2019 Tenable Network Security, Inc."); script_family(english:"Mandriva Local Security Checks"); script_dependencies("ssh_get_info.nasl"); script_require_keys("Host/local_checks_enabled", "Host/cpu", "Host/Mandrake/release", "Host/Mandrake/rpm-list"); exit(0); } include("audit.inc"); include("global_settings.inc"); include("rpm.inc"); if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED); if (!get_kb_item("Host/Mandrake/release")) audit(AUDIT_OS_NOT, "Mandriva / Mandake Linux"); if (!get_kb_item("Host/Mandrake/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING); cpu = get_kb_item("Host/cpu"); if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH); if (cpu !~ "^(amd64|i[3-6]86|x86_64)$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Mandriva / Mandrake Linux", cpu); flag = 0; if (rpm_check(release:"MDK10.0", cpu:"amd64", reference:"webmin-1.121-4.2.100mdk", yank:"mdk")) flag++; if (rpm_check(release:"MDK10.0", reference:"webmin-1.121-4.2.100mdk", yank:"mdk")) flag++; if (rpm_check(release:"MDK9.2", cpu:"amd64", reference:"webmin-1.100-3.2.92mdk", yank:"mdk")) flag++; if (rpm_check(release:"MDK9.2", reference:"webmin-1.100-3.2.92mdk", yank:"mdk")) flag++; if (flag) { if (report_verbosity > 0) security_note(port:0, extra:rpm_report_get()); else security_note(0); exit(0); } else audit(AUDIT_HOST_NOT, "affected");
NASL family Gentoo Local Security Checks NASL id GENTOO_GLSA-200409-15.NASL description The remote host is affected by the vulnerability described in GLSA-200409-15 (Webmin, Usermin: Multiple vulnerabilities in Usermin) There is an input validation bug in the webmail feature of Usermin. Additionally, the Webmin and Usermin installation scripts write to /tmp/.webmin without properly checking if it exists first. Impact : The first vulnerability allows a remote attacker to inject arbitrary shell code in a specially crafted e-mail. This could lead to remote code execution with the privileges of the user running Webmin or Usermin. The second could allow local users who know Webmin or Usermin is going to be installed to have arbitrary files be overwritten by creating a symlink by the name /tmp/.webmin that points to some target file, e.g. /etc/passwd. Workaround : There is no known workaround at this time. last seen 2020-06-01 modified 2020-06-02 plugin id 14705 published 2004-09-12 reporter This script is Copyright (C) 2004-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/14705 title GLSA-200409-15 : Webmin, Usermin: Multiple vulnerabilities in Usermin