pfSense Cross Site Scripting and Cross Site Request Forgery Vulnerabilities

2015-08-21T00:00:00
ID OPENVAS:1361412562310105329
Type openvas
Reporter This script is Copyright (C) 2015 Greenbone Networks GmbH
Modified 2018-10-26T00:00:00

Description

pfSense is prone to multiple cross-site scripting vulnerabilities and a cross-site request-forgery vulnerability.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_pfsense_73344.nasl 12106 2018-10-26 06:33:36Z cfischer $
#
# pfSense Cross Site Scripting and Cross Site Request Forgery Vulnerabilities
#
# Authors:
# Michael Meyer <michael.meyer@greenbone.net>
#
# Copyright:
# Copyright (c) 2015 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:pfsense:pfsense";

if (description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.105329");
  script_bugtraq_id(73344);
  script_cve_id("CVE-2015-2294", "CVE-2015-2295");
  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_version("$Revision: 12106 $");

  script_name("pfSense Cross Site Scripting and Cross Site Request Forgery Vulnerabilities");

  script_xref(name:"URL", value:"https://www.pfsense.org/security/advisories/pfSense-SA-15_04.webgui.asc");

  script_tag(name:"impact", value:"An attacker may exploit these issues to execute arbitrary script code in the browser of an unsuspecting
user in the context of the affected site, steal cookie-based authentication credentials, perform unauthorized actions, and disclose or modify
sensitive information. Other attacks may also be possible.");

  script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");

  script_tag(name:"insight", value:"A vulnerability was discovered in the pfSense WebGUI that could lead to arbitrary file deletion.

Insufficient validation of the HTTP request origin and the 'deletefile' HTTP GET parameter in the '/system_firmware_restorefullbackup.php' script
can lead to arbitrary file deletion. A remote attacker can trick a log-in administrator into visiting a malicious page with CSRF exploit and delete
arbitrary files on the target system with root privileges.");

  script_tag(name:"solution", value:"Upgrade to pfSense 2.2.1 or later.");
  script_tag(name:"summary", value:"pfSense is prone to multiple cross-site scripting vulnerabilities and a cross-site request-forgery vulnerability.");
  script_tag(name:"affected", value:"pfSense < 2.2.1");

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

  script_tag(name:"last_modification", value:"$Date: 2018-10-26 08:33:36 +0200 (Fri, 26 Oct 2018) $");
  script_tag(name:"creation_date", value:"2015-08-21 15:06:51 +0200 (Fri, 21 Aug 2015)");
  script_category(ACT_GATHER_INFO);
  script_family("General");
  script_copyright("This script is Copyright (C) 2015 Greenbone Networks GmbH");
  script_dependencies("gb_pfsense_detect.nasl");
  script_mandatory_keys("pfsense/installed");

  exit(0);
}

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

if( ! version = get_app_version( cpe:CPE, nofork:TRUE ) ) exit( 0 );

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

exit( 99 );