| Reporter | Title | Published | Views | Family All 5 |
|---|---|---|---|---|
| Aardvark Topsites CONFIG[path] Parameter Remote File Inclusion | 8 May 200600:00 | – | nessus | |
| CVE-2006-2149 | 3 May 200610:00 | – | cve | |
| CVE-2006-2149 | 3 May 200610:00 | – | cvelist | |
| CVE-2006-2149 | 3 May 200610:02 | – | nvd | |
| Remote file inclusion | 3 May 200610:02 | – | prion |
| Source | Link |
|---|---|
| secunia | www.secunia.com/advisories/19911/ |
| aardvarktopsitesphp | www.aardvarktopsitesphp.com/forums/viewtopic.php |
# SPDX-FileCopyrightText: 2008 Ferdy Riphagen
# 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
# Original advisory / discovered by :
# http://milw0rm.com/exploits/1732
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.200005");
script_version("2025-04-15T05:54:49+0000");
script_tag(name:"last_modification", value:"2025-04-15 05:54:49 +0000 (Tue, 15 Apr 2025)");
script_tag(name:"creation_date", value:"2008-08-22 16:09:14 +0200 (Fri, 22 Aug 2008)");
script_tag(name:"cvss_base", value:"6.4");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:N");
script_cve_id("CVE-2006-2149");
script_xref(name:"OSVDB", value:"25158");
script_name("Aardvark Topsites <= 4.2.2 Remote File Inclusion Vulnerability");
script_category(ACT_ATTACK);
script_tag(name:"qod_type", value:"remote_vul");
script_family("Web application abuses");
script_copyright("Copyright (C) 2008 Ferdy Riphagen");
script_dependencies("find_service.nasl", "no404.nasl", "webmirror.nasl", "DDI_Directory_Scanner.nasl", "gb_php_http_detect.nasl", "os_detection.nasl", "global_settings.nasl");
script_require_ports("Services/www", 80);
script_exclude_keys("Settings/disable_cgi_scanning");
script_tag(name:"solution_type", value:"VendorFix");
script_tag(name:"solution", value:"Disable PHP's 'register_globals' or upgrade to the latest release.");
script_tag(name:"summary", value:"The remote system contains a PHP application that is prone to
remote file inclusions attacks.
Description :
Aardvark Topsites PHP is installed on the remote host. It is
an open source Toplist management system written in PHP.
The application does not sanitize user-supplied input to
the 'CONFIG[PATH]' variable in some PHP files. This allows
an attacker to include arbitrary files from remote systems, and
execute them with privileges under which the webserver operates.
The flaw is exploitable if PHP's 'register_globals' is set to on.");
script_xref(name:"URL", value:"http://secunia.com/advisories/19911/");
script_xref(name:"URL", value:"http://www.aardvarktopsitesphp.com/forums/viewtopic.php?t=4301");
exit(0);
}
include("host_details.inc");
include("os_func.inc");
include("http_func.inc");
include("http_keepalive.inc");
include("port_service_func.inc");
include("list_array_func.inc");
include("misc_func.inc");
include("traversal_func.inc");
port = http_get_port(default:80);
if (!http_can_host_php(port:port)) exit(0);
files = traversal_files();
foreach dir( make_list_unique( "/topsites", "/aardvarktopsites", http_cgi_dirs( port:port ) ) ) {
if( dir == "/" ) dir = "";
res = http_get_cache(item:string(dir, "/index.php"), port:port);
if(res == NULL) continue;
if (egrep(pattern:"Powered By <a href[^>]+>Aardvark Topsites PHP<", string:res)) {
foreach pattern(keys(files)) {
uri = "FORM[url]=1&CONFIG[captcha]=1&CONFIG[path]=";
lfile = "/" + files[pattern];
req = http_get(item:string(dir, "/sources/join.php?", uri, lfile, "%00"), port:port);
recv = http_keepalive_send_recv(data:req, port:port, bodyonly:TRUE);
if (recv == NULL) continue;
if (egrep(pattern:pattern, string:recv) ||
egrep(pattern:"Warning.+main\(" + lfile + "\\0\/.+failed to open stream", string:recv)) {
security_message(port:port);
exit(0);
}
}
}
}
exit( 99 );
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