Lucene search
K

Task Freak Cross Site Scripting and SQL Injection Vulnerabilities

🗓️ 07 Jul 2010 00:00:00Reported by Copyright (C) 2010 Greenbone Networks GmbHType 
openvas
 openvas
🔗 plugins.openvas.org👁 20 Views

Task Freak Cross Site Scripting and SQL Injection Vulnerabilities

Related
Refs
Code
ReporterTitlePublishedViews
Family
CVE
CVE-2010-1520
30 Jun 201018:00
cve
CVE
CVE-2010-1521
30 Jun 201018:00
cve
Cvelist
CVE-2010-1520
30 Jun 201018:00
cvelist
Cvelist
CVE-2010-1521
30 Jun 201018:00
cvelist
EUVD
EUVD-2010-1547
7 Oct 202500:30
euvd
EUVD
EUVD-2010-1548
7 Oct 202500:30
euvd
NVD
CVE-2010-1520
30 Jun 201018:30
nvd
NVD
CVE-2010-1521
30 Jun 201018:30
nvd
OpenVAS
TaskFreak! < 0.6.4 Multiple Vulnerabilities
7 Jul 201000:00
openvas
Prion
Cross site scripting
30 Jun 201018:30
prion
Rows per page
##############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_task_freak_xss_n_sql_inj_vuln.nasl 7573 2017-10-26 09:18:50Z cfischer $
#
# Task Freak Cross Site Scripting and SQL Injection Vulnerabilities
#
# Authors:
# Madhuri D <[email protected]>
#
# Copyright:
# Copyright (c) 2010 Greenbone Networks GmbH, http://www.greenbone.net
#
# 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 execute arbitrary HTML
  and script code and manipulate SQL queries by injecting arbitrary SQL code
  in a user's browser session in the context of an affected site.
  Impact Level: Application.";
tag_affected = "TaskFreak version prior to 0.6.4";

tag_insight = "The flaws are due to:
  - Improper validation of user supplied input to 'tznMessage' parameter in
    'logout.php'.
  - Input passed via the 'password' parameter to 'login.php' (when username is
    set to a valid user), which is not properly sanitised before being used in a
    SQL query in 'include/classes/tzn_user.php'.";
tag_solution = "Upgrade to the TaskFreak version 0.6.4 or later
  For updates refer to http://www.taskfreak.com/download.php";
tag_summary = "This host is running Task Freak and is prone to Cross Site Scripting
  and SQL Injection vulnerabilities.";

if(description)
{
  script_id(800788);
  script_version("$Revision: 7573 $");
  script_tag(name:"last_modification", value:"$Date: 2017-10-26 11:18:50 +0200 (Thu, 26 Oct 2017) $");
  script_tag(name:"creation_date", value:"2010-07-07 07:04:19 +0200 (Wed, 07 Jul 2010)");
  script_cve_id("CVE-2010-1520", "CVE-2010-1521");
  script_bugtraq_id(41221, 41218);
  script_tag(name:"cvss_base", value:"7.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_name("Task Freak Cross Site Scripting and SQL Injection Vulnerabilities");
  script_xref(name : "URL" , value : "http://secunia.com/advisories/40025");
  script_xref(name : "URL" , value : "http://www.securityfocus.com/archive/1/archive/1/512078/100/0/threaded");

  script_tag(name:"qod_type", value:"remote_vul");
  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2010 Greenbone Networks GmbH");
  script_family("Web application abuses");
  script_dependencies("secpod_task_freak_detect.nasl");
  script_require_ports("Services/www", 80);
  script_tag(name : "insight" , value : tag_insight);
  script_tag(name : "solution" , value : tag_solution);
  script_tag(name : "summary" , value : tag_summary);
  script_tag(name : "impact" , value : tag_impact);
  script_tag(name : "affected" , value : tag_affected);
  exit(0);
}


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

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

## Get Task Freak path from KB
if(!dir = get_dir_from_kb(port:tfPort, app:"TaskFreak")){
  exit(0);
}

## Try an exploit
sndReq = http_get(item:string(dir, "/logout.php?tznMessage=<script>alert" +
                        "('OpenVAS-XSS-Testing')</script>"), port:tfPort);
rcvRes = http_send_recv(port:tfPort, data:sndReq);

## Check the response to confirm vulnerability
if(rcvRes =~ "HTTP/1\.. 200" && "<script>alert('OpenVAS-XSS-Testing'i)</script>" >< rcvRes){
  security_message(tfPort);
}

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