-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 ============================================================================= pfSense-SA-23_08.webgui Security Advisory pfSense Topic: XSS vulnerability in the WebGUI Category: pfSense Base System Module: webgui Announced: 2023-10-31 Credits: Oskar Zeino-Mahmalat (Sonar) CVE ID: CVE-2023-42327 Affects: pfSense Plus software versions <= 23.05.1 pfSense CE software versions <= 2.7.0 Corrected: 2023-07-05 17:43:56 UTC (pfSense Plus master, 23.09) 2023-07-05 17:43:56 UTC (pfSense CE master, 2.7.1) 0. Revision History v1.1 2023-11-16 Updated with CE 2.7.1 release information v1.0 2023-10-31 Initial SA draft I. Background pfSense® software is a free network firewall distribution based on the FreeBSD operating system. The pfSense software distribution includes third- party free software packages for additional functionality, and provides most of the functionality of common commercial firewalls. pfSense® Plus is the productized version of pfSense software from Netgate®, previously referred to as pfSense Factory Edition (FE). It is available to Netgate appliance and CSP customers. The majority of users of pfSense software have never installed or used a stock FreeBSD system. Unlike similar GNU/Linux-based firewall distributions, there is no need for any UNIX knowledge. The command line is never used, and there is no need to ever manually edit any rule sets. Instead, pfSense software includes a web interface for the configuration of all included components. Users familiar with commercial firewalls will quickly understand the web interface, while those unfamiliar with commercial-grade firewalls may encounter a short learning curve. II. Problem Description A potential Cross-Site Scripting (XSS) vulnerability was found in getserviceproviders.php, a component of the pfSense Plus and pfSense CE software GUI. The page does not always validate or sanitize the value of the "connection" variable from user input, which then may be displayed without encoding. This problem is present on pfSense Plus version 23.05.1, pfSense CE version 2.7.0, and earlier versions of both. III. Impact Due to the lack of proper encoding on the affected parameters susceptible to XSS, arbitrary JavaScript could be executed in the user's browser. The user's session cookie or other information from the session may be compromised. The user must be logged in and have sufficient privileges to access getserviceproviders.php. The affected case requires a provider to only have one plan. IV. Workaround To help mitigate the problem on older releases, use one or more of the following: * Limit access to the affected pages to trusted administrators only. * Do not log into the firewall with the same browser used for non- administrative web browsing. V. Solution Users can upgrade to pfSense Plus software version 23.09 or later, or pfSense CE software version 2.7.1 or later. This upgrade may be performed in the web interface or from the console. See https://docs.netgate.com/pfsense/en/latest/install/upgrade-guide.html Users on pfSense Plus version 23.05.1 and pfSense CE version 2.7.0 may apply the fix from the recommended patches list in the System Patches package. Users may also manually apply the relevant revisions below using the System Patches package on earlier versions, or by manually making similar changes to the affected files if the patches do not apply directly. See https://docs.netgate.com/pfsense/en/latest/development/system-patches.html VI. Correction details The following list contains the correction revision commit ID for each affected item. Branch/path Revision - - ------------------------------------------------------------------------- plus/plus-master 543dc9253d6ab0e755ee043da2217d996a28ab5e pfSense/master 543dc9253d6ab0e755ee043da2217d996a28ab5e - - ------------------------------------------------------------------------- VII. References The latest revision of this advisory is available at -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE40XvjEU56XSUPIMdE7mH/ZIU+NoFAmVWgmoACgkQE7mH/ZIU +Nrw5A/8Dy+/K0j2buWgphcMPL8YNEEqmgKIykzUNI35EjeTY2eCrMJ319wrvGEL Ei6wHbQX8j2Nwr272OHX97KWgfdI2HTix/Bfxlxta7YrokGgS163uZUez93pFxo+ nst4UVH4uldu5C8mEH0+1f2MGxiz8cQPLs635cfuIaeYwBlvB2XHg5JExSNo2RSw ot+haw/J2B4NqB6JCD/+HVB7k+lMcnLqT088xZEgot0zzdjhCfWQvaEhLofo0RAu efcb0kfwuhsBYf3+FC4cl6WofzUNv0Z8H7bG9XzOWdpmqY1s+qvLHsKUD54h9+N/ PDtRj25AuPn+Q+BDEseLRZMzXX+l+XYeOx0QL7TQdQH9EJkIBE7wC+pcWKNdABba wr0TW5GYE++qYBQa1JA61jzOpHOMzX+lLvwx3UfhrxM6xJ/4FeJkuqQSMQY3uVNF oLyejMiEUEd+tpgVE3nx53el5B4d8jK6UGFIbuEsYCN705EDqLV6actO2b36WQ6R A8CHWB7OfY/nmXnkenh8ciaCYvXMpoEzoob+n9O5j6oRpcciZytl/KxUTIqGg2tn DOear93UW22LaHQnrCF2YsIORKy7hXl/VHWyx6/EsM4fZ3fTXNfqskgGY3BVNX2s jPjR0NfseEiiM+MPMVeXUpH7wI+ovMTcdxPmZNoyV4vB9AxN0jk= =80xM -----END PGP SIGNATURE-----