Serendipity <= 2.0.5 Multiple Vulnerabilities

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

Description

Serendipity is prone to multiple vulnerabilities because of insufficient CSRF protection / sanitized user-supplied input.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_serendipity_205.nasl 6257 2017-05-31 14:33:17Z cfi $
#
# Serendipity <= 2.0.5 Multiple Vulnerabilities
#
# Authors:
# Christian Fischer <christian.fischer@greenbone.net>
#
# Copyright:
# Copyright (c) 2017 Greenbone Networks GmbH
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# 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:s9y:serendipity";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.108060");
  script_version("$Revision: 6257 $");
  script_bugtraq_id(95652, 95656, 95659);
  script_cve_id("CVE-2017-5474", "CVE-2017-5475", "CVE-2017-5476", "CVE-2017-5609");
  script_tag(name:"cvss_base", value:"6.8");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:P/I:P/A:P");
  script_tag(name:"last_modification", value:"$Date: 2017-05-31 16:33:17 +0200 (Wed, 31 May 2017) $");
  script_tag(name:"creation_date", value:"2017-01-30 11:00:00 +0100 (Mon, 30 Jan 2017)");
  script_name("Serendipity <= 2.0.5 Multiple Vulnerabilities");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (c) 2017 Greenbone Networks GmbH");
  script_family("Web application abuses");
  script_dependencies("serendipity_detect.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("Serendipity/installed");

  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/95652");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/95656");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/95659");
  script_xref(name:"URL", value:"https://blog.s9y.org/archives/272-Serendipity-2.1-First-Release-Candidate.html");

  script_tag(name:"summary", value:"Serendipity is prone to multiple vulnerabilities because of
  insufficient CSRF protection / sanitized user-supplied input.");

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

  script_tag(name:"insight", value:"Multiple flaws are due to:

  - Cross-site request forgery (CSRF) for the installation of an event plugin or a sidebar plugin

  - Cross-site request forgery (CSRF) in deleting any comments

  - Open redirect vulnerability in comment.php

  - SQL injection vulnerability in include/functions_entries.inc.php");

  script_tag(name:"impact", value:"Successfully exploiting this issues allows remote attacker to:

  - redirect users to arbitrary web sites and conduct phishing attacks via a URL in the HTTP Referer header

  - perform certain unauthorized actions and gain access to the affected application

  - execute arbitrary SQL commands via the cat parameter

  Other attacks are also possible.

  Impact Level: Application");

  script_tag(name:"affected", value:"Serendipity versions up to 2.0.5.");

  script_tag(name:"solution", value:"Update to version 2.1-rc1 or later. For updates refer to
  http://www.s9y.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 );

if( version_is_less_equal( version:vers, test_version:"2.0.5" ) ) {
  report = report_fixed_ver( installed_version:vers, fixed_version:"2.1-rc1 or later" );
  security_message( port:port, data:report );
  exit( 0 );
}

exit( 99 );