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
AI Score
Confidence
High
EPSS
Percentile
60.2%
ViewVC is prone to a cross-site scripting vulnerability because the
application fails to sufficiently sanitize user-supplied data.
# SPDX-FileCopyrightText: 2010 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.100533");
script_version("2023-07-28T16:09:07+0000");
script_tag(name:"last_modification", value:"2023-07-28 16:09:07 +0000 (Fri, 28 Jul 2023)");
script_tag(name:"creation_date", value:"2010-03-15 19:33:39 +0100 (Mon, 15 Mar 2010)");
script_cve_id("CVE-2010-0736");
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_name("ViewVC 'lib/viewvc.py' Cross Site Scripting Vulnerability");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/38650");
script_xref(name:"URL", value:"http://viewvc.tigris.org/source/browse/viewvc/trunk/CHANGES?rev=HEAD");
script_tag(name:"qod_type", value:"remote_banner");
script_category(ACT_GATHER_INFO);
script_family("Web application abuses");
script_copyright("Copyright (C) 2010 Greenbone AG");
script_dependencies("viewvc_detect.nasl");
script_require_ports("Services/www", 80);
script_mandatory_keys("viewvc/detected");
script_tag(name:"solution_type", value:"VendorFix");
script_tag(name:"solution", value:"Vendor updates are available. Please see the references for details.");
script_tag(name:"summary", value:"ViewVC is prone to a cross-site scripting vulnerability because the
application fails to sufficiently sanitize user-supplied data.");
script_tag(name:"impact", value:"An attacker may leverage this issue to execute arbitrary script code
in the browser of an unsuspecting user in the context of the affected
site and steal cookie-based authentication credentials. Other attacks are also possible.");
script_tag(name:"affected", value:"Versions prior to ViewVC 1.1.4 and 1.0.10 are vulnerable.");
exit(0);
}
include("http_func.inc");
include("port_service_func.inc");
include("version_func.inc");
port = http_get_port(default:80);
if(!version = get_kb_item(string("www/", port, "/viewvc")))
exit(0);
if(!matches = eregmatch(string:version, pattern:"^(.+) under (/.*)$"))
exit(0);
vers = matches[1];
if(vers && "unknown" >!< vers) {
if(version_in_range(version: vers, test_version: "1.1", test_version2: "1.1.3") ||
version_in_range(version: vers, test_version: "1.0", test_version2: "1.0.9")) {
report = report_fixed_ver(installed_version:vers, fixed_version:"1.1.4/1.0.10");
security_message(port:port, data:report);
exit(0);
}
}
exit(0);