ntopng Username Enumeration Vulnerability

2016-12-20T00:00:00
ID OPENVAS:1361412562310107111
Type openvas
Reporter Copyright (C) 2016 Greenbone Networks GmbH
Modified 2018-10-25T00:00:00

Description

The host is installed with ntopng and is prone to username enumeration vulnerability.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_ntopng_usr_enum.nasl 12070 2018-10-25 07:56:12Z cfischer $
#
# ntopng Username Enumeration Vulnerability
#
# Authors:
# Tameem Eissa <tameem.eissa@greenbone.net>
#
# Copyright:
# Copyright (C) 2016 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:ntop:ntopng";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.107111");
  script_version("$Revision: 12070 $");
  script_tag(name:"cvss_base", value:"6.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:S/C:P/I:P/A:P");
  script_tag(name:"last_modification", value:"$Date: 2018-10-25 09:56:12 +0200 (Thu, 25 Oct 2018) $");
  script_tag(name:"creation_date", value:"2016-12-20 06:40:16 +0200 (Tue, 20 Dec 2016)");
  script_name("ntopng Username Enumeration Vulnerability");
  script_copyright("Copyright (C) 2016 Greenbone Networks GmbH");
  script_category(ACT_GATHER_INFO);
  script_family("Web application abuses");
  script_dependencies("gb_ntopng_detect.nasl");
  script_mandatory_keys("ntopng/installed");
  script_require_ports("Services/www", 3000);

  script_xref(name:"URL", value:"https://www.exploit-db.com/exploits/40942/");
  script_xref(name:"URL", value:"http://www.ntop.org/");

  script_tag(name:"summary", value:"The host is installed with ntopng and is prone to username enumeration vulnerability.");

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

  script_tag(name:"impact", value:"Successful exploitation will allow
  attackers to enumerate usernames.");

  script_tag(name:"affected", value:"ntopng 2.5.160805");

  script_tag(name:"solution", value:"No known solution was made available for at least one year since the disclosure of this vulnerability.
  Likely none will be provided anymore. General solution options are to upgrade to a newer release, disable respective features, remove the
  product or replace the product by another one.");

  script_tag(name:"solution_type", value:"WillNotFix");
  script_tag(name:"qod_type", value:"remote_banner_unreliable");

  exit(0);
}

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

if(!appPort = get_app_port(cpe:CPE)){
  exit(0);
}

if(!ntopngVer = get_app_version(cpe:CPE, port:appPort)){
  exit(0);
}

if(version_is_equal(version:ntopngVer, test_version:"2.5.160805"))
{
  report = report_fixed_ver(installed_version:ntopngVer, fixed_version:"WillNotFix");
  security_message(port:appPort, data:report);
  exit(0);
}

exit(0);