pfSense 2.3.x < 2.3.5 / 2.4.x < 2.4.2 Multiple XSS Vulnerabilites (SA-17_08 / SA-17_09) - Nessus

High   Plugin ID: 106506

This page contains detailed information about the pfSense 2.3.x < 2.3.5 / 2.4.x < 2.4.2 Multiple XSS Vulnerabilites (SA-17_08 / SA-17_09) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 106506
Name: pfSense 2.3.x < 2.3.5 / 2.4.x < 2.4.2 Multiple XSS Vulnerabilites (SA-17_08 / SA-17_09)
Filename: pfsense_SA-17_09.nasl
Vulnerability Published: 2017-11-14
This Plugin Published: 2018-01-31
Last Modification Time: 2018-07-25
Plugin Version: 1.7
Plugin Type: remote
Plugin Family: CGI abuses : XSS
Dependencies: pfsense_detect.nbin
Required KB Items [?]: Host/pfSense

Vulnerability Information


Severity: High
Vulnerability Published: 2017-11-14
Patch Published: 2017-10-31
CVE [?]: CVE-2017-1000479
CPE [?]: cpe:/a:bsdperimeter:pfsense, cpe:/a:pfsense:pfsense

Synopsis

The remote firewall host is affected by multiple vulnerabilities.

Description

According to its self-reported version number, the remote pfSense install is 2.3.x prior to 2.3.5 or 2.4.x prior to 2.4.2. It is, therefore, affected by multiple vulnerabilities as stated in the referenced vendor advisories.

Note: SA-17_09 only applies to 2.4.x.

Solution

Upgrade to pfSense version 2.3.5 / 2.4.2 or later.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework)
Exploit Ease: No exploit is required

Here's the list of publicly known exploits and PoCs for verifying the pfSense 2.3.x < 2.3.5 / 2.4.x < 2.4.2 Multiple XSS Vulnerabilites (SA-17_08 / SA-17_09) vulnerability:

  1. Metasploit: exploit/unix/http/pfsense_clickjacking
    [Clickjacking Vulnerability In CSRF Error Page pfSense]

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

Risk Information


CVSS V2 Vector [?]: AV:N/AC:M/Au:N/C:P/I:P/A:P/E:H/RL:OF/RC:C
CVSS Base Score:6.8 (Medium)
Impact Subscore:6.4
Exploitability Subscore:8.6
CVSS Temporal Score:5.9 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:5.9 (Medium)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:H/RL:O/RC:C
CVSS Base Score:8.8 (High)
Impact Subscore:5.9
Exploitability Subscore:2.8
CVSS Temporal Score:8.4 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.4 (High)

Go back to menu.

Plugin Source


This is the pfsense_SA-17_09.nasl nessus plugin source code. This script is Copyright (C) 2018 Tenable Network Security, Inc.

#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(106506);
  script_version("1.7");
  script_cvs_date("Date: 2018/07/25 14:27:29");

  script_cve_id("CVE-2017-1000479");

  script_name(english:"pfSense 2.3.x < 2.3.5 / 2.4.x < 2.4.2 Multiple XSS Vulnerabilites (SA-17_08 / SA-17_09)");
  script_summary(english:"Checks the version of pfSense.");

  script_set_attribute(attribute:"synopsis", value:
"The remote firewall host is affected by multiple vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"According to its self-reported version number, the remote pfSense
install is 2.3.x prior to 2.3.5 or 2.4.x prior to 2.4.2. It is,
therefore, affected by multiple vulnerabilities as stated in the
referenced vendor advisories.

Note: SA-17_09 only applies to 2.4.x.");
  # https://www.pfsense.org/security/advisories/pfSense-SA-17_08.webgui.asc
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?424391cb");
  # https://www.pfsense.org/security/advisories/pfSense-SA-17_09.webgui.asc
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?98d3ae56");
  script_set_attribute(attribute:"solution", value:
"Upgrade to pfSense version 2.3.5 / 2.4.2 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
  script_set_cvss_temporal_vector("CVSS2#E:H/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:H/RL:O/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
  script_set_attribute(attribute:"exploit_available", value:"false");
  script_set_attribute(attribute:"metasploit_name", value:'Clickjacking Vulnerability In CSRF Error Page pfSense');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2017/11/14");
  script_set_attribute(attribute:"patch_publication_date", value:"2017/10/31");
  script_set_attribute(attribute:"plugin_publication_date", value:"2018/01/31");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:pfsense:pfsense");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:bsdperimeter:pfsense");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"CGI abuses : XSS");

  script_copyright(english:"This script is Copyright (C) 2018 Tenable Network Security, Inc.");

  script_dependencies("pfsense_detect.nbin");
  script_require_keys("Host/pfSense");

  exit(0);
}

include("vcf.inc");
include("vcf_extras.inc");

if (!get_kb_item("Host/pfSense")) audit(AUDIT_HOST_NOT, "pfSense");

app_info = vcf::pfsense::get_app_info();
constraints = [
  { "min_version" : "2.4.0", "fixed_version" : "2.4.2" },
  { "min_version" : "2.3.0", "fixed_version" : "2.3.5" }
];

vcf::pfsense::check_version_and_report(
  app_info:app_info,
  constraints:constraints,
  severity:SECURITY_WARNING,
  flags:{xss:TRUE}
);

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/pfsense_SA-17_09.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\pfsense_SA-17_09.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/pfsense_SA-17_09.nasl

Go back to menu.

How to Run


Here is how to run the pfSense 2.3.x < 2.3.5 / 2.4.x < 2.4.2 Multiple XSS Vulnerabilites (SA-17_08 / SA-17_09) as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select CGI abuses : XSS plugin family.
  6. On the right side table select pfSense 2.3.x < 2.3.5 / 2.4.x < 2.4.2 Multiple XSS Vulnerabilites (SA-17_08 / SA-17_09) plugin ID 106506.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl pfsense_SA-17_09.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a pfsense_SA-17_09.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - pfsense_SA-17_09.nasl -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state pfsense_SA-17_09.nasl -t <IP/HOST>

Go back to menu.

References


See also: Similar and related Nessus plugins:
  • 109037 - pfSense < 2.3.5 Multiple Vulnerabilities (KRACK)
  • 146433 - pfSense < 2.4.5 Multiple Vulnerabilities
  • 106488 - pfSense < 2.1.1 Multiple Vulnerabilities (SA-14_02 / SA-14_03)
  • 108515 - pfSense < 2.1.4 Multiple Vulnerabilities ( SA-14_07 )
  • 106490 - pfSense < 2.1.4 Multiple Vulnerabilities (SA-14_08 - SA-14_12)
  • 108516 - pfSense < 2.1.5 Multiple Vulnerabilities ( SA-14_14 )
  • 106493 - pfSense < 2.2.1 Multiple Vulnerabilities (SA-15_02 - SA-15_04)
  • 106495 - pfSense < 2.2.3 Multiple Vulnerabilities (SA-15_07) (Logjam)
  • 106496 - pfSense < 2.2.4 Multiple Vulnerabilities (SA-15_07)
  • 106497 - pfSense < 2.2.5 Multiple Vulnerabilities (SA-15_08)
  • 106498 - pfSense < 2.2.6 Multiple Vulnerabilities (SA-15_09 / SA-15_10 / SA-15_11)
  • 106499 - pfSense < 2.3 Multiple Vulnerabilities (SA-16_01 - SA-16_02)
  • 106500 - pfSense < 2.3.1 Multiple Vulnerabilities (SA-16_03 / SA-16-04)
  • 106503 - pfSense < 2.3.3 Multiple Vulnerabilities (SA-17_01 - SA-17_03)
  • 109038 - pfSense < 2.4.3 Multiple Vulnerabilities (SA-18_01 / SA-18_02 / SA-18_03) (Meltdown) (Spectre)
  • 119886 - pfSense 2.3.x < 2.3.5-p2 / 2.4.x < 2.4.3-p1 Multiple Vulnerabilities (SA-18_04 / SA-18_05)
  • 119887 - pfSense 2.3.x <= 2.3.5-p2 / 2.4.x < 2.4.4 Multiple Vulnerabilities (SA-18_06 / SA-18_07 / SA-18_08)

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file pfsense_SA-17_09.nasl version 1.7. For more plugins, visit the Nessus Plugin Library.

Go back to menu.