TFTP file detection (HP Ignite-UX passwd)

2006-03-26T00:00:00
ID OPENVAS:136141256231019509
Type openvas
Reporter Copyright (C) 2005 Corsaire Limited.
Modified 2020-03-10T00:00:00

Description

The remote host has a vulnerable version of the HP Ignite-UX application installed that exposes the /etc/passwd file to anonymous TFTP access.

                                        
                                            # OpenVAS Vulnerability Test
# Description: TFTP file detection (HP Ignite-UX passwd)
#
# Authors:
# Martin O'Neal of Corsaire (http://www.corsaire.com)
#
# Copyright:
# Copyright (C) 2005 Corsaire Limited
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2,
# as published by the Free Software Foundation
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.19509");
  script_version("2020-03-10T07:47:53+0000");
  script_tag(name:"last_modification", value:"2020-03-10 07:47:53 +0000 (Tue, 10 Mar 2020)");
  script_tag(name:"creation_date", value:"2006-03-26 17:55:15 +0200 (Sun, 26 Mar 2006)");
  script_bugtraq_id(14568);
  script_cve_id("CVE-2004-0951");
  script_tag(name:"cvss_base", value:"7.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_name("TFTP file detection (HP Ignite-UX passwd)");
  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2005 Corsaire Limited.");
  script_family("Remote file access");
  script_dependencies("tftpd_detect.nasl", "tftpd_backdoor.nasl", "global_settings.nasl", "os_detection.nasl");
  script_require_udp_ports("Services/udp/tftp", 69);
  script_mandatory_keys("tftp/detected");
  script_require_keys("Host/runs_unixoide");
  script_exclude_keys("keys/TARGET_IS_IPV6");

  script_xref(name:"URL", value:"http://www.corsaire.com/advisories/c041123-001.txt");

  script_tag(name:"summary", value:"The remote host has a vulnerable version of the HP Ignite-UX application installed
  that exposes the /etc/passwd file to anonymous TFTP access.");

  script_tag(name:"solution", value:"Upgrade to a version of the Ignite-UX application that does not exhibit this
  behaviour. If it is not required, disable or uninstall the TFTP server. Otherwise restrict access to trusted sources only.");

  script_tag(name:"solution_type", value:"VendorFix");
  script_tag(name:"qod_type", value:"remote_vul");

  exit(0);
}

if(TARGET_IS_IPV6())
  exit(0);

include("tftp.inc");
include("misc_func.inc");

port = get_port_for_service(default:69, proto:"tftp", ipproto:"udp");

if(!tftp_has_reliable_get(port:port))
  exit(0);

file_name = "/var/opt/ignite/recovery/passwd.makrec";
if(tftp_get(port:port, path:file_name)) {
  report = 'The detected filename is:\n\n' + file_name;
  security_message(port:port, data:report, proto:"udp");
  exit(0);
}

exit(99);