7.5 High
CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:N/AC:L/Au:N/C:P/I:P/A:P
9.8 High
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
9.6 High
AI Score
Confidence
High
0.004 Low
EPSS
Percentile
73.3%
Zikula is prone to a directory traversal vulnerability.
# SPDX-FileCopyrightText: 2016 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:zikula:zikula_application_framework";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.809746");
script_version("2023-07-20T05:05:17+0000");
script_cve_id("CVE-2016-9835");
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-07-20 05:05:17 +0000 (Thu, 20 Jul 2023)");
script_tag(name:"severity_vector", value:"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
script_tag(name:"severity_origin", value:"NVD");
script_tag(name:"severity_date", value:"2016-12-27 14:44:00 +0000 (Tue, 27 Dec 2016)");
script_tag(name:"creation_date", value:"2016-12-09 18:25:21 +0530 (Fri, 09 Dec 2016)");
script_name("Zikula 'jcss.php' Directory Traversal Vulnerability");
script_category(ACT_ATTACK);
script_copyright("Copyright (C) 2016 Greenbone AG");
script_family("Web application abuses");
script_dependencies("secpod_zikula_detect.nasl", "os_detection.nasl");
script_mandatory_keys("zikula/detected", "Host/runs_windows");
script_require_ports("Services/www", 80);
script_xref(name:"URL", value:"https://github.com/zikula/core/issues/3237");
script_xref(name:"URL", value:"https://github.com/zikula/core/blob/1.3/CHANGELOG-1.3.md");
script_xref(name:"URL", value:"https://github.com/zikula/core/blob/1.4/CHANGELOG-1.4.md");
script_tag(name:"summary", value:"Zikula is prone to a directory traversal vulnerability.");
script_tag(name:"vuldetect", value:"Send a crafted HTTP GET request
and determine based on response if it is vulnerable to directory traversal.");
script_tag(name:"insight", value:"The flaw exists due to insufficient
sanitization of input passed via 'f' parameter to 'jcss.php' script.");
script_tag(name:"impact", value:"Successful exploitation will allow remote
attackers to launch a PHP object injection by uploading a serialized file.");
script_tag(name:"affected", value:"Zikula 1.3.x before 1.3.11 and 1.4.x
before 1.4.4 on Windows.");
script_tag(name:"solution", value:"Upgrade to Zikula 1.3.11 or 1.4.4 or later.");
script_tag(name:"qod_type", value:"remote_analysis");
script_tag(name:"solution_type", value:"VendorFix");
exit(0);
}
include("http_func.inc");
include("http_keepalive.inc");
include("host_details.inc");
if(!port = get_app_port(cpe:CPE, service:"www"))
exit(0);
if(!dir = get_app_location(cpe:CPE, port:port))
exit(0);
if(dir == "/")
dir = "";
url = dir + "/jcss.php?f=..\..\..\..\..\jcss.php";
req = http_get(item:url, port:port);
res = http_keepalive_send_recv(port:port, data:req);
# nb: For patched version response is "Requested file not readable" and non patched "Corrupted file"
if(res =~ "^HTTP/1\.[01] 500" && "ERROR: Corrupted file" >< res && "ERROR: Requested file not readable" >!< res) {
report = http_report_vuln_url(port:port, url:url);
security_message(port:port, data:report);
exit(0);
}
exit(99);
7.5 High
CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:N/AC:L/Au:N/C:P/I:P/A:P
9.8 High
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
9.6 High
AI Score
Confidence
High
0.004 Low
EPSS
Percentile
73.3%