Mako 'cgi.escape()' Cross-Site Scripting Vulnerability
🗓️ 16 Jul 2010 00:00:00Reported by Copyright (C) 2010 Greenbone AGType
openvas🔗 plugins.openvas.org👁 22 Views
| Reporter | Title | Published | Views | Family All 24 |
|---|---|---|---|---|
| Security fix for the ALT Linux 5 package python-module-mako version 0.2.5-alt1.M51.1 | 2 Oct 201000:00 | – | altlinux | |
| CVE-2010-2480 | 2 Jul 201018:30 | – | cve | |
| CVE-2010-2480 | 2 Jul 201018:30 | – | cvelist | |
| CVE-2010-2480 | 2 Jul 201018:30 | – | debiancve | |
| EUVD-2010-0002 | 7 Oct 202500:30 | – | euvd | |
| Mako contains Cross-site Scripting vulnerability | 17 May 202205:48 | – | github | |
| CVE-2010-2480 | 2 Jul 201019:00 | – | nvd | |
| Ubuntu: Security Advisory (USN-996-1) | 1 Oct 201000:00 | – | openvas | |
| Mako 'cgi.escape()' Cross-Site Scripting Vulnerability | 16 Jul 201000:00 | – | openvas | |
| Ubuntu Update for mako vulnerability USN-996-1 | 1 Oct 201000:00 | – | openvas |
10
| Source | Link |
|---|---|
| bugs | www.bugs.python.org/issue9061 |
| secunia | www.secunia.com/advisories/39935 |
# SPDX-FileCopyrightText: 2010 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
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.801402");
script_version("2023-07-28T16:09:07+0000");
script_tag(name:"last_modification", value:"2023-07-28 16:09:07 +0000 (Fri, 28 Jul 2023)");
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_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2010 Greenbone AG");
script_family("General");
script_mandatory_keys("login/SSH/success");
script_dependencies("gather-package-list.nasl");
script_exclude_keys("ssh/no_linux_shell");
script_xref(name:"URL", value:"http://bugs.python.org/issue9061");
script_xref(name:"URL", value:"http://secunia.com/advisories/39935");
script_tag(name:"insight", value:"The flaw exists due to an error in 'cgi.escape()' function which does not
properly filter single quotes.");
script_tag(name:"solution", value:"Upgrade to Mako version 0.3.4 or later.");
script_tag(name:"summary", value:"Mako is prone to a cross-site scripting (XSS) vulnerability.");
script_tag(name:"impact", value:"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.");
script_tag(name:"affected", value:"Mako version before 0.3.4");
script_tag(name:"solution_type", value:"VendorFix");
script_tag(name:"qod_type", value:"executable_version");
exit(0);
}
include("ssh_func.inc");
include("version_func.inc");
sock = ssh_login_or_reuse_connection();
if(!sock)
exit(0);
makoName = ssh_find_bin(prog_name:"mako-render", sock:sock);
if(!makoName){
ssh_close_connection();
exit(0);
}
foreach binaryName(makoName){
binaryName = chomp(binaryName);
if(!binaryName) continue;
makoVer = ssh_get_bin_version(full_prog_name:"cat", version_argv:binaryName, ver_pattern:"Mako==([0-9.]+)", sock:sock);
if(makoVer[1]){
if(version_is_less(version:makoVer[1], test_version:"0.3.4")){
report = report_fixed_ver(installed_version:makoVer[1], fixed_version:"0.3.4", install_path:binaryName);
security_message(port:0, data:report);
ssh_close_connection();
exit(0);
}
}
}
ssh_close_connection();
exit(0);
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
28 Jul 2023 00:00Current
5.4Medium risk
Vulners AI Score5.4
CVSS 24.3
EPSS0.01824