Ipswitch WS_FTP Professional Local Buffer Overflow Vulnerability

2017-11-09T00:00:00
ID OPENVAS:1361412562310812071
Type openvas
Reporter Copyright (C) 2017 Greenbone Networks GmbH
Modified 2018-11-21T00:00:00

Description

This host is installed with Ipswitch WS_FTP Professional and is prone to local buffer overflow vulnerability.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_ipswitch_ws_ftp_bof_vuln_win.nasl 12467 2018-11-21 14:04:59Z cfischer $
#
# Ipswitch WS_FTP Professional Local Buffer Overflow Vulnerability
#
# Authors:
# Shakeel <bshakeel@secpod.com>
#
# Copyright:
# Copyright (C) 2017 Greenbone Networks GmbH, http://www.greenbone.net
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), 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.
###############################################################################

CPE = "cpe:/a:ipswitch:ws_ftp";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.812071");
  script_version("$Revision: 12467 $");
  script_cve_id("CVE-2017-16513");
  script_tag(name:"cvss_base", value:"4.6");
  script_tag(name:"cvss_base_vector", value:"AV:L/AC:L/Au:N/C:P/I:P/A:P");
  script_tag(name:"last_modification", value:"$Date: 2018-11-21 15:04:59 +0100 (Wed, 21 Nov 2018) $");
  script_tag(name:"creation_date", value:"2017-11-09 14:14:47 +0530 (Thu, 09 Nov 2017)");
  script_name("Ipswitch WS_FTP Professional Local Buffer Overflow Vulnerability");
  script_category(ACT_GATHER_INFO);
  script_family("General");
  script_copyright("Copyright (C) 2017 Greenbone Networks GmbH");
  script_dependencies("secpod_ws_ftp_client_detect.nasl");
  script_mandatory_keys("Ipswitch/WS_FTP_Pro/Client/Ver");

  script_xref(name:"URL", value:"https://www.exploit-db.com/exploits/43115");
  script_xref(name:"URL", value:"https://docs.ipswitch.com/WS_FTP126/ReleaseNotes/English/index.htm");
  script_xref(name:"URL", value:"https://www.ipswitch.com");

  script_tag(name:"summary", value:"This host is installed with Ipswitch WS_FTP
  Professional and is prone to local buffer overflow vulnerability.");

  script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");

  script_tag(name:"insight", value:"The flaw exists due to error in the
  application where some fields (local search and backup locations) allows
  users to input data and are not properly sanitized.");

  script_tag(name:"impact", value:"Successful exploitation will allow
  local attackers to conduct buffer overflow attacks on the affected system.");

  script_tag(name:"affected", value:"Ipswitch WS_FTP Professional prior to
  version 12.6.0.3");

  script_tag(name:"solution", value:"Upgrade to Ipswitch WS_FTP Professional
  version 12.6.0.3 or later.");

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

  exit(0);
}

include("version_func.inc");
include("host_details.inc");

if(!infos = get_app_version_and_location( cpe:CPE, exit_no_version:TRUE)) exit(0);
ftpVer = infos['version'];
ftpPath = infos['location'];

if(version_is_less(version:ftpVer, test_version:"12.6.0.3")){
  report = report_fixed_ver(installed_version:ftpVer, fixed_version:"12.6.0.3", install_path:ftpPath);
  security_message(port:0, data:report);
}

exit(0);