Lucene search
+L

D-Link DIR Routers SharePort Authentication Bypass Vulnerability (Mar 2018) - Active Check

🗓️ 29 Mar 2018 00:00:00Reported by Copyright (C) 2018 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 54 Views

D-Link DIR Routers SharePort Authentication Bypass Vulnerability (Mar 2018) - Active Check. Prone to authentication bypass

Related
Refs
Code
# SPDX-FileCopyrightText: 2018 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-only

if( description )
{
  script_oid("1.3.6.1.4.1.25623.1.0.113146");
  script_version("2025-01-21T05:37:33+0000");
  script_tag(name:"last_modification", value:"2025-01-21 05:37:33 +0000 (Tue, 21 Jan 2025)");
  script_tag(name:"creation_date", value:"2018-03-29 09:53:55 +0200 (Thu, 29 Mar 2018)");
  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 15:48:00 +0000 (Fri, 23 Apr 2021)");

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

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

  script_cve_id("CVE-2018-9032");

  script_name("D-Link DIR Routers SharePort Authentication Bypass Vulnerability (Mar 2018) - Active Check");

  script_category(ACT_ATTACK);

  script_copyright("Copyright (C) 2018 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_dlink_dir_consolidation.nasl");
  script_require_ports("Services/www", 8080);
  script_mandatory_keys("d-link/dir/http/detected"); # TBD: Check all D-Link devices like in others?

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

  script_tag(name:"vuldetect", value:"Send a crafted HTTP GET request and tries to access protected
  information without authentication.");

  script_tag(name:"insight", value:"The directories '/category_view.php' and '/folder_view.php' can
  be accessed directly without authentication.");

  script_tag(name:"impact", value:"Successful exploitation would allow an attacker to access
  information about the target system that would normally require authentication.");

  script_tag(name:"affected", value:"D-Link DIR Routers with SharePort functionality and firmware
  versions through 2.06.");

  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://www.youtube.com/watch?v=Wmm4p8znS3s");
  script_xref(name:"URL", value:"https://www.exploit-db.com/exploits/44378");

  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 = "";

foreach vuln_file ( make_list( "/folder_view.php", "/category_view.php" ) ) {

  url = dir + vuln_file;
  req = http_get( port: port, item: url );
  res = http_keepalive_send_recv( port: port, data: req );

  if( res && res =~ "^HTTP/1\.[01] 200" && res =~ "<title>SharePort Web Access</title>" && res =~ 'href="webfile_css/layout\\.css"' ) {
    report = http_report_vuln_url( port: port, url: url );
    security_message( port: port, data: report );
    exit( 0 );
  }
}

exit( 99 );

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

21 Jan 2025 00:00Current
9.7High risk
Vulners AI Score9.7
CVSS 27.5
CVSS 3.19.8
EPSS0.27844
54