-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 ============================================================================= pfSense-SA-23_09.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-42325 Affects: pfSense Plus software versions <= 23.05.1 pfSense CE software versions <= 2.7.0 Corrected: 2023-07-05 18:51:06 UTC (pfSense Plus master, 23.09) 2023-07-05 18:51:06 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 status_logs_filter_dynamic.php, a component of the pfSense Plus and pfSense CE software GUI. The page does not always validate or sanitize the value of the "interface" variable from user input when using RAW mode ("filtersubmit=1"), which then may be printed without encoding inside a block of JavaScript code. 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 status_logs_filter_dynamic.php. 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 f387c974a9a597bf01ab86ec049cca186a1e050c pfSense/master f387c974a9a597bf01ab86ec049cca186a1e050c - - ------------------------------------------------------------------------- VII. References The latest revision of this advisory is available at -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE40XvjEU56XSUPIMdE7mH/ZIU+NoFAmVWgm8ACgkQE7mH/ZIU +NpVTA/+IpbGLtFd+mzR8SCt0XvH3vmKss6hJpM/ebFJhKMlBRkkTymp00DcfM/H 6BWU8f7NDT6qan6WY1OSo6ypCw4iX3oK9BkfutEqc1IUVbqrzIFn526ztVb32wNU wZ4LjT8O3GkDGX+epawbgjtjUrN8C/V2Oc1o8de8x4VOFozl3R/EalEt/pIOtfDE QNGM2QJzJeQWbeHrgyNgudgiVeGZ8gsdEWGNQwT9RMDXZKciH3UQqr6J+Zjrghm9 B4T6McyGD9JXZyIoweTHqXO1yUPNDzPAHA6ti8wudfEhoTL5MZOvzYGzEgPZsMMR vqeg3QeEfcvN1Qea7jtdyP7TfpkmjoWa+p/jDaE5x8yOEGfBRgYO2b+q/T6Gg3Fk K+pq9JtoDxSBmpwgJTRZMtxJ/AC0YqixxnfUx+wr6Xr/Ag6zfljG2nZDwGG8np1/ gopontsPq1nygqALREoH9elBJg/1Ql0sG69MVSjzBEmRhnoxy5uNMZILoFXbrlsD W5VF544Uql2O1z3cE1zRML7V2D8em6Pwa33ZuJOU9VaPVAo9vP8nzSkHHnDrKb1N jSsf7vy4nWuC0bfjnLiT06c8ciVv92fK/jwshSTZxbPp6A3mWntx4up7s7VxkIjw ZQkh5E68jJSb/VOMmAOrcN8xjuIkaL2Ym5EIVueg9hAnbxfqbF8= =OVAQ -----END PGP SIGNATURE-----