Lucene search

K
openvasCopyright (C) 2019 Greenbone AGOPENVAS:1361412562310113535
HistorySep 30, 2019 - 12:00 a.m.

D-Link DIR devices Authentication Bypass Vulnerability

2019-09-3000:00:00
Copyright (C) 2019 Greenbone AG
plugins.openvas.org
24

CVSS2

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS3

9.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

AI Score

9.8

Confidence

High

EPSS

0.006

Percentile

79.0%

Multiple D-Link DIR devices are prone to an authentication bypass
vulnerability.

# SPDX-FileCopyrightText: 2019 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-or-later

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.113535");
  script_version("2023-11-21T05:05:52+0000");
  script_tag(name:"last_modification", value:"2023-11-21 05:05:52 +0000 (Tue, 21 Nov 2023)");
  script_tag(name:"creation_date", value:"2019-09-30 11:55:55 +0200 (Mon, 30 Sep 2019)");
  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_tag(name:"severity_vector", value:"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
  script_tag(name:"severity_origin", value:"NVD");
  script_tag(name:"severity_date", value:"2021-04-23 17:20:00 +0000 (Fri, 23 Apr 2021)");

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

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

  script_cve_id("CVE-2019-16190");

  script_name("D-Link DIR devices Authentication Bypass Vulnerability");

  script_category(ACT_GATHER_INFO);

  script_copyright("Copyright (C) 2019 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_dlink_dsl_detect.nasl", "gb_dlink_dap_consolidation.nasl",
                      "gb_dlink_dir_consolidation.nasl", "gb_dlink_dwr_detect.nasl");
  script_mandatory_keys("d-link/http/detected"); # nb: Experiences in the past have shown that various different devices might be affected
  script_require_ports("Services/www", 80);

  script_tag(name:"summary", value:"Multiple D-Link DIR devices are prone to an authentication bypass
  vulnerability.");

  script_tag(name:"vuldetect", value:"Tries to access sensitive pages without authentication.");

  script_tag(name:"insight", value:"The SharePort Web Access on D-Link DIR devices allows
  authentication bypass through a direct request to folder_view.php or category_view.php.");

  script_tag(name:"impact", value:"Successful exploitation would allow an attacker to access sensitive
  data or execute php code contained in files on the target machine.");

  script_tag(name:"affected", value:"The following devices and firmwares are affected:

  - D-Link DIR-868L REVB through version 2.03

  - D-Link DIR-885L REVA through version 1.20

  - D-Link DIR-895L REVA through version 1.21

  Other devices and firmware versions may also be affected.");

  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_xref(name:"URL", value:"https://cyberloginit.com/2019/09/10/dlink-shareport-web-access-authentication-bypass.html");

  exit(0);
}

CPE_PREFIX = "cpe:/o:dlink";

include( "host_details.inc" );
include( "http_func.inc" );
include( "http_keepalive.inc" );

if( ! infos = get_app_port_from_cpe_prefix( cpe:CPE_PREFIX, service:"www" ) )
 exit( 0 );

port = infos["port"];
CPE  = infos["cpe"];

if( ! dir = get_app_location( cpe:CPE, port:port ) )
  exit( 0 );

if( dir == "/" )
  dir = "";

path_list = make_list ( '/folder_view.php', '/category_view.php',
                        '/webaccess/folder_view.php', '/webaccess/category_view.php' );

foreach path ( path_list ) {
  url = dir + path;

  buf = http_get_cache( port: port, item: url );

  if( buf =~ "^HTTP/1\.[01] 200" &&
      ( buf =~ 'alert\\("No HardDrive Connected"\\);' || buf =~ "location.href='doc.php" ) ) {
    report = http_report_vuln_url( port: port, url: url );
    security_message( data: report, port: port );
    exit( 0 );
  }
}

exit( 99 );

CVSS2

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS3

9.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

AI Score

9.8

Confidence

High

EPSS

0.006

Percentile

79.0%

Related for OPENVAS:1361412562310113535