Lucene search

K
openvasCopyright (c) 2010 Greenbone Networks GmbHOPENVAS:800766
HistoryMay 19, 2010 - 12:00 a.m.

Moodle Multiple Vulnerabilities

2010-05-1900:00:00
Copyright (c) 2010 Greenbone Networks GmbH
plugins.openvas.org
9

0.003 Low

EPSS

Percentile

65.5%

This host is running Moodle and is prone to multiple
vulnerabilities.

###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_moodle_mult_vuln.nasl 5323 2017-02-17 08:49:23Z teissa $
#
# Moodle Multiple Vulnerabilities
#
# 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 inject arbitrary web
  script or HTML via a crafted URL.

  Impact level: System/Application";

tag_affected = "Moodle version 1.8.x prior to 1.8.12
  Moodle version 1.9.x prior to 1.9.8";
tag_insight = "- Input data passed to add_to_log() function in wiki module in
    'mod/wiki/view.php' and 'lib/form/selectgroups.php' is not properly
     sanitised before being used in SQL query.
  - Error in 'user/view.php', which fails to check role.
  - Error in 'phpCAS client library', allows remote attackers to inject
    arbitrary web script or HTML via a crafted URL.
  - Error in 'fix_non_standard_entities' function in the
    'KSES HTML text cleaning library', allows remote attackers to inject
    arbitrary web script or HTML via crafted HTML entities.";
tag_solution = "Upgrade to latest version 1.8.12, 1.9.8
  http://download.moodle.org/";
tag_summary = "This host is running Moodle and is prone to multiple
  vulnerabilities.";

if(description)
{
  script_id(800766);
  script_version("$Revision: 5323 $");
  script_tag(name:"last_modification", value:"$Date: 2017-02-17 09:49:23 +0100 (Fri, 17 Feb 2017) $");
  script_tag(name:"creation_date", value:"2010-05-19 14:50:39 +0200 (Wed, 19 May 2010)");
  script_cve_id("CVE-2010-1614", "CVE-2010-1615",
                "CVE-2010-1617", "CVE-2010-1618", "CVE-2010-1619");
  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_name("Moodle Multiple Vulnerabilities");
  script_xref(name : "URL" , value : "http://moodle.org/security/");
  script_xref(name : "URL" , value : "http://tracker.moodle.org/browse/MDL-17207");

  script_tag(name:"qod_type", value:"remote_banner");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (c) 2010 Greenbone Networks GmbH");
  script_family("Web application abuses");
  script_dependencies("gb_moodle_cms_detect.nasl");
  script_require_ports("Services/www", 80);
  script_require_keys("Moodle/Version");
  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);
  script_tag(name : "impact" , value : tag_impact);
  exit(0);
}


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

moodlePort = get_http_port(default:80);
if(!get_port_state(moodlePort)){
  exit(0);
}

# Get Moodle version from KB
moodleVer = get_kb_item("Moodle/Version");
if(!moodleVer){
  exit(0);
}

# Check for Moodle Version prior to 1.8.12, 1.9.8
if(version_in_range(version:moodleVer, test_version:"1.8",
   test_version2:"1.8.11") || version_in_range(version:moodleVer,
                     test_version:"1.9", test_version2:"1.9.7")){
  security_message(moodlePort);
}