Tiki Wiki CMS Groupware 'fixedURLData' Local File Inclusion Vulnerability

2017-01-30T00:00:00
ID OPENVAS:1361412562310108064
Type openvas
Reporter Copyright (c) 2017 Greenbone Networks GmbH
Modified 2017-01-31T00:00:00

Description

The host is installed with Tiki Wiki CMS Groupware and is prone to a local file inclusion vulnerability.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_tiki_wiki_cms_152_lfi.nasl 5144 2017-01-31 09:55:46Z cfi $
#
# TTiki Wiki CMS Groupware 'fixedURLData' Local File Inclusion Vulnerability
#
# Authors:
# Christian Fischer <christian.fischer@greenbone.net>
#
# Copyright:
# Copyright (c) 2017 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:tiki:tikiwiki_cms/groupware";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.108064");
  script_version("$Revision: 5144 $");
  script_cve_id("CVE-2016-10143");
  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_tag(name:"last_modification", value:"$Date: 2017-01-31 10:55:46 +0100 (Tue, 31 Jan 2017) $");
  script_tag(name:"creation_date", value:"2017-01-30 16:00:00 +0100 (Mon, 30 Jan 2017)");
  script_name("Tiki Wiki CMS Groupware 'fixedURLData' Local File Inclusion Vulnerability");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (c) 2017 Greenbone Networks GmbH");
  script_family("Web application abuses");
  script_dependencies("secpod_tikiwiki_detect.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("TikiWiki/installed");

  script_xref(name:"URL", value:"http://tiki.org/article445-Security-updates-Tiki-16-2-15-4-and-Tiki-12-11-released");
  script_xref(name:"URL", value:"https://sourceforge.net/p/tikiwiki/code/60308/");

  script_tag(name:"summary", value:"The host is installed with Tiki Wiki CMS Groupware
  and is prone to a local file inclusion vulnerability.");

  script_tag(name:"vuldetect", value:"Get the installed version with the help of the detect NVT
  and check the version is vulnerable or not.");

  script_tag(name:"insight", value:"The Flaw is due to improper sanitization
  of input passed to the 'fixedURLData' parameter of the 'display_banner.php' script.");

  script_tag(name:"impact", value:"Successful exploitation will allow an user having access to the
  admin backend to gain access to arbitrary files and to compromise the application.

  Impact Level: System/Application");

  script_tag(name:"affected", value:"Tiki Wiki CMS Groupware versions:

  - below 12.11 LTS

  - 13.x, 14.x and 15.x below 15.4");

  script_tag(name:"solution", value:"Upgrade to Tiki Wiki CMS Groupware version 12.11 LTS, 15.4 or
  later. For updates refer to https://tiki.org");

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

  exit(0);
}

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

if( ! port = get_app_port( cpe:CPE ) ) exit( 0 );
if( ! vers = get_app_version( cpe:CPE, port:port ) ) exit( 0 );

# nb: CVE says only version 15.2 is vulnerable but thats currently wrong:
# the vulnerable code path exists down to 1.x and is fixed in the 12.11 LTS and 15.4

if( version_is_less( version:vers, test_version:"12.11" ) ) {
  vuln = TRUE;
  fix = "12.11";
}

if( version_in_range( version:vers, test_version:"13", test_version2:"15.3" ) ) {
  vuln = TRUE;
  fix = "15.4";
}

if( vuln ) {
  report = report_fixed_ver( installed_version:vers, fixed_version:fix );
  security_message( port:port, data:report );
  exit( 0 );
}

exit( 99 );