Lucene search

K
openvasCopyright (C) 2012 Greenbone Networks GmbHOPENVAS:1361412562310802622
HistoryApr 04, 2012 - 12:00 a.m.

BackupPC < 3.2.1 Multiple XSS Vulnerabilities - Active Check

2012-04-0400:00:00
Copyright (C) 2012 Greenbone Networks GmbH
plugins.openvas.org
9

4.3 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

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

5.8 Medium

AI Score

Confidence

Low

0.005 Low

EPSS

Percentile

76.0%

BackupPC is prone to multiple cross-site scripting (XSS)
vulnerabilities.

# Copyright (C) 2012 Greenbone Networks GmbH
# 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
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# 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.

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.802622");
  script_version("2022-12-21T10:12:09+0000");
  script_tag(name:"last_modification", value:"2022-12-21 10:12:09 +0000 (Wed, 21 Dec 2022)");
  script_tag(name:"creation_date", value:"2012-04-04 14:49:38 +0530 (Wed, 04 Apr 2012)");
  script_tag(name:"cvss_base", value:"4.3");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:N/I:P/A:N");

  script_cve_id("CVE-2011-3361", "CVE-2011-5081", "CVE-2011-4923");

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

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

  script_name("BackupPC < 3.2.1 Multiple XSS Vulnerabilities - Active Check");

  script_category(ACT_ATTACK);

  script_copyright("Copyright (C) 2012 Greenbone Networks GmbH");
  script_family("Web application abuses");
  script_dependencies("find_service.nasl", "no404.nasl", "webmirror.nasl", "DDI_Directory_Scanner.nasl", "global_settings.nasl");
  script_require_ports("Services/www", 80);
  script_exclude_keys("Settings/disable_cgi_scanning");

  script_tag(name:"summary", value:"BackupPC is prone to multiple cross-site scripting (XSS)
  vulnerabilities.");

  script_tag(name:"vuldetect", value:"Sends a crafted HTTP GET request and checks the response.");

  script_tag(name:"insight", value:"Multiple flaws are due to improper validation of user-supplied
  input to 'num' and 'share' parameters in index.cgi, which allows attackers to execute arbitrary
  HTML and script code in a user's browser session in the context of an affected site.");

  script_tag(name:"impact", value:"Successful exploitation will allow remote attackers to insert
  arbitrary HTML and script code, which will be executed in a user's browser session in the context
  of an affected site.");

  script_tag(name:"affected", value:"BackupPC version 3.2.0 and prior.");

  script_tag(name:"solution", value:"Update to version 3.2.1 or later.");

  script_xref(name:"URL", value:"http://secunia.com/advisories/44259");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/47628");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/50406");
  script_xref(name:"URL", value:"http://secunia.com/advisories/44385");
  script_xref(name:"URL", value:"http://secunia.com/advisories/46615");
  script_xref(name:"URL", value:"http://www.ubuntu.com/usn/usn-1249-1");
  script_xref(name:"URL", value:"http://xforce.iss.net/xforce/xfdb/67170");
  script_xref(name:"URL", value:"http://xforce.iss.net/xforce/xfdb/71030");
  script_xref(name:"URL", value:"https://www.htbridge.com/advisory/multiple_xss_vulnerabilities_in_backuppc.html");

  exit(0);
}

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

port = http_get_port(default: 80);

foreach dir (make_list_unique("/backuppc", "/", http_cgi_dirs(port: port))) {
  if (dir == "/")
    dir = "";

  url = dir + "/index.cgi";

  res = http_get_cache(port: port, item: url);
  if (!res || res !~ "^HTTP/1\.[01] 200" || "<title>BackupPC" >!< res)
    continue;

  url += "?action=RestoreFile&host=localhost&num=1&share=<script>alert(document.cookie)</script>";

  if (http_vuln_check(port: port, url: url, check_header: TRUE,
                      pattern: "<script>alert\(document.cookie\)</script>", extra_check: "<title>BackupPC")) {
    report = http_report_vuln_url(port: port, url: url);
    security_message(port: port, data: report);
    exit(0);
  }
}

exit(99);

4.3 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

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

5.8 Medium

AI Score

Confidence

Low

0.005 Low

EPSS

Percentile

76.0%