Lucene search
K

Mako 'cgi.escape()' Cross-Site Scripting Vulnerability

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

Mako 'cgi.escape()' Cross-Site Scripting Vulnerability. Successful exploitation allows remote attackers to execute arbitrary HTML and script code in a user's browser session

Related
Refs
Code
ReporterTitlePublishedViews
Family
ALT Linux
Security fix for the ALT Linux 5 package python-module-mako version 0.2.5-alt1.M51.1
2 Oct 201000:00
altlinux
CVE
CVE-2010-2480
2 Jul 201018:30
cve
Cvelist
CVE-2010-2480
2 Jul 201018:30
cvelist
Debian CVE
CVE-2010-2480
2 Jul 201018:30
debiancve
EUVD
EUVD-2010-0002
7 Oct 202500:30
euvd
Github Security Blog
Mako contains Cross-site Scripting vulnerability
17 May 202205:48
github
NVD
CVE-2010-2480
2 Jul 201019:00
nvd
OpenVAS
Mako 'cgi.escape()' Cross-Site Scripting Vulnerability
16 Jul 201000:00
openvas
OpenVAS
Ubuntu: Security Advisory (USN-996-1)
1 Oct 201000:00
openvas
OpenVAS
Ubuntu Update for mako vulnerability USN-996-1
1 Oct 201000:00
openvas
Rows per page
###############################################################################
# Openvas Vulnerability Test
# $id: gb_mako_xss_vuln.nasl 10044 2010-07-12 13:10:35z jul $
#
# Description: Mako 'cgi.escape()' Cross-Site Scripting Vulnerability
#
# 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 in a user's browser session in the context of an affected
  site.
  Impact Level: Application.";
tag_affected = "Mako version before 0.3.4";

tag_insight = "The flaw exists due to an error in 'cgi.escape()' function which does not
  properly filter single quotes.";
tag_solution = "Upgrade to Mako version 0.3.4 or later,
  For updates refer to http://www.makotemplates.org/download.html";
tag_summary = "This host is installed with Mako and is prone to cross-site
  scripting vulnerability.";

if(description)
{
  script_id(801402);
  script_version("$Revision: 5306 $");
  script_tag(name:"last_modification", value:"$Date: 2017-02-16 10:00:16 +0100 (Thu, 16 Feb 2017) $");
  script_tag(name:"creation_date", value:"2010-07-16 18:57:03 +0200 (Fri, 16 Jul 2010)");
  script_cve_id("CVE-2010-2480");
  script_tag(name:"cvss_base", value:"4.3");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:N/I:P/A:N");
  script_name("Mako 'cgi.escape()' Cross-Site Scripting Vulnerability");
  script_xref(name : "URL" , value : "http://bugs.python.org/issue9061");
  script_xref(name : "URL" , value : "http://secunia.com/advisories/39935");

  script_tag(name:"qod_type", value:"executable_version");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2010 Greenbone Networks GmbH");
  script_family("General");
  script_mandatory_keys("login/SSH/success");
  script_dependencies("gather-package-list.nasl");
  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("ssh_func.inc");
include("version_func.inc");

sock = ssh_login_or_reuse_connection();
if(!sock){
  exit(0);
}

## Check for the file mako-render
makoName = find_bin(prog_name:"mako-render", sock:sock);
foreach binaryName (makoName)
{
  ## Grep for the version
  makoVer = get_bin_version(full_prog_name:"cat", version_argv:binaryName,
                            ver_pattern:"Mako==([0-9.]+)", sock:sock);
  if(makoVer[1] != NULL)
  {
    ## Check for the Mako version less than 0.3.4
    if(version_is_less(version:makoVer[1], test_version:"0.3.4")){
      security_message(0);
    }
  }
}
ssh_close_connection();

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

16 Feb 2017 00:00Current
6Medium risk
Vulners AI Score6
EPSS0.00361
13