Movable Type Arbitrary Code Execution Vulnerability

2015-04-13T00:00:00
ID OPENVAS:1361412562310805368
Type openvas
Reporter Copyright (C) 2015 Greenbone Networks GmbH
Modified 2018-09-18T00:00:00

Description

The host is installed with movable type and is prone to arbitrary file upload vulnerability.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_movable_type_code_exec_vuln.nasl 11452 2018-09-18 11:24:16Z mmartin $
#
# Movable Type Arbitrary Code Execution Vulnerability
#
# Authors:
# Deependra Bapna <bdeepednra@secpod.com>
#
# Copyright:
# Copyright (C) 2015 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.
###############################################################################

CPE = "cpe:/a:sixapart:movable_type";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.805368");
  script_version("$Revision: 11452 $");
  script_cve_id("CVE-2013-2184");
  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_tag(name:"last_modification", value:"$Date: 2018-09-18 13:24:16 +0200 (Tue, 18 Sep 2018) $");
  script_tag(name:"creation_date", value:"2015-04-13 18:43:00 +0530 (Mon, 13 Apr 2015)");
  script_tag(name:"qod_type", value:"remote_banner");
  script_name("Movable Type Arbitrary Code Execution Vulnerability");

  script_tag(name:"summary", value:"The host is installed with movable type
  and is prone to arbitrary file upload vulnerability.");

  script_tag(name:"vuldetect", value:"Send a crafted data via HTTP POST request
  and check whether it is is able to upload file or not.");

  script_tag(name:"insight", value:"Flaw is due to he Perl Storable::thaw
  function which allows remote attackers to include and execute arbitrary
  local Perl files and possibly execute arbitrary code.");

  script_tag(name:"impact", value:"Successful exploitation will allow an
  unauthenticated remote attacker to upload files and execute arbitrary code
  in an affected site.");

  script_tag(name:"affected", value:"Movable Type before 5.2.6.");

  script_tag(name:"solution", value:"Upgrade to Movable Type 5.2.6,
  For updates refer https://movabletype.org");

  script_tag(name:"solution_type", value:"VendorFix");

  script_xref(name:"URL", value:"http://seclists.org/oss-sec/2013/q2/560");
  script_xref(name:"URL", value:"https://movabletype.org/documentation/appendices/release-notes/movable-type-526-release-notes.html");

  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2015 Greenbone Networks GmbH");
  script_family("Web application abuses");
  script_dependencies("mt_detect.nasl");
  script_mandatory_keys("movabletype/installed");
  exit(0);
}


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

if(!http_port = get_app_port(cpe:CPE)){
  exit(0);
}

if(!movVer = get_app_version(cpe:CPE, port:http_port)){
  exit(0);
}

if(version_is_less(version:movVer, test_version:"5.2.6"))
{
  report = 'Installed version: ' + movVer + '\n' +
           'Fixed version:     5.2.6'  + '\n';
  security_message(data:report, port:http_port);
  exit(0);
}