-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 ============================================================================= pfSense-SA-26_27.webgui Security Advisory pfSense Topic: Privilege Bypass via Duplicate Parameters in URL Query Category: pfSense Base System Module: webgui Announced: 2026-11-17 Credits: Rafael Honorato (GitHub: @Rafael Honorato) Affects: pfSense Plus software versions <= 26.07 pfSense CE software versions <= 2.9.0 Corrected: 2026-11-06 16:27:49 UTC 0. Revision History v1.0 2026-11-17 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 privilege bypass vulnerability was discovered PHP GUI privilege checks when a privilege specification matches a URL containing a query parameter and a wildcard. If a URL contains duplicate query parameters, PHP only passes through the value of the last instance of a parameter in the URL. If a privilege matches based on a query parameter and also contains a wildcard, it is possible for an attacker to supply a URL which starts with a string matching the privilege, but then contains another instance later which loads content restricted by a different privilege. III. Impact Due to this behavior, an attacker with access to a page containing an affected privilege specification could potentially access a different page handled through the same mechanism, even if their account does not have a privilege to access the other content. This does not affect any privileges in the base system as none contain "?" and end with a wildcard. It only affects privileges in some add-on packages which utilize pkg.php and pkg_edit.php in the manner described. IV. Workaround To help mitigate the problem on older releases, use one or more of the following: * Do not grant privileges that match in the manner described. V. Solution Users can upgrade to the next available version of pfSense software when available. 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 currently supported versions of pfSense Plus software may apply the fix from the recommended patches list in the System Patches package after installing or updating the System Patches package. Users may also manually apply the relevant changes 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. Revision - - ------------------------------------------------------------------------- 951e089288c2e815c555718ed9ffcb747f4c55d3 - - ------------------------------------------------------------------------- VII. References The latest revision of this advisory is available at -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE40XvjEU56XSUPIMdE7mH/ZIU+NoFAmr2KwYACgkQE7mH/ZIU +NrecA/+IL56OG4rwmQHCzVOLjjBbzVhlWVtgICaarPKcUNzvUd5mT41Z8ctmxj6 qAMsQlrfESAcmd9K8sdKCChuANcw90aXvV9MUzcJIAePfHByp/NJCcWVmFT3AKrP hJwtt7p1Ode8eNZ2TzcVRUG/ddJUyyZk2uCHD8wjRs9O8SJjoA/vbFeCOR08n/T3 wFL2aCPjQCDU9i5N2HydTAlmMNzJQuWuXQlS5WVg7UJtUiKJR97J+KrK8GVNP5fn E2eSFmYqyYPwGA/f9tDjMZcsRJ6le09cToHmGXTDrMznFRnf0Mv74uW4SYh/zD8g n2nigfYI6quP8yu2Xwz7yKTi0l3/TetUpOA8Bnyv7+pgUQm54xg//RVPrio1sYNp DB3P64bO4c4TTONe5je28sgxeJU9RJKx43Z/14r9bps0Iqw9Wqfbmj/A4+ywZqKM OEEX3a93oDexXbcMmWkhhGIZKoIA0osOWOYV1uq3CD+tHaPWWGAY31R0w+7wUJep 7gJDVqHqd4MD0vkuputaZIo9PVSnuU+Ze1CZT/yiZ/yAeROD/POWrb//81D6KicW dPeZ1ez8PbZRTXV3Nw8wjOdzhR+1jhPBFI9ua1e/N5zw7mLqOKNcsjeBcF6mkCx6 iYt3yd93qXZcjIhn0b7s3fiAsQXHPxif0tzmFkalQrhpxHjEpD0= =xhT4 -----END PGP SIGNATURE-----