Reflected XSS in Netgate pfSense CE firewall rules WebGUI

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-111233?

CVE-2026-111233 is a vulnerability classified as Improper Neutralization of Input During Web Page Generation, affecting pfSense CE (affected versions: 2.7.1 – ≤ 2.9.0). This vulnerability is rated Low, with a CVSS score of 2.3. Public exploit code or evidence is available for this vulnerability, but that does not confirm exploitation in the wild.

Overview

Original source data

Netgate pfSense CE 2.7.1 through 2.9.0 contains a reflected cross-site scripting vulnerability in firewall_rules.php that allows remote attackers to inject script via the unencoded if parameter. When the non-default Require Firewall Interface option is enabled, attackers can lure users with firewall rules privileges into opening a crafted GET link to execute script in the WebGUI with their privileges.

Affected products and scope

  • Netgate pfSense CE: versions 2.7.1 through 2.9.0, inclusive under semver, are recorded as affected.
  • The documented exposure condition is that the non-default Require Firewall Interface option is enabled and the victim has firewall-rules privileges in the WebGUI.
  • The normalized record marks the default status as unaffected for versions outside the stated affected range.
  • The available evidence does not identify a parallel branch or a specific release as the fixed version.

Technical details

The vulnerable component is firewall_rules.php, which copies the request-controlled if parameter into the interface value used by the page. When Require Firewall Interface is disabled, an unknown if value is replaced with the first configured interface; when the option is enabled, the unknown value is retained. In the affected code, that value is emitted without contextual encoding into a hidden input attribute and a JavaScript string, creating two separate HTML and JavaScript reflection sinks. An attacker controls if in a crafted GET link; if a user with firewall-rules privileges opens the link, the browser can interpret the injected content in the WebGUI origin. Other $if locations on the page use encoding, and the disabled-option behavior replaces an unknown value, which limits the documented path. The exact fixed implementation in a particular release is not established by the available evidence.

Exploitability

  • The vulnerability is reachable over the network through the pfSense WebGUI.
  • The attacker does not need a pfSense account of their own according to the record's attack characteristics, but the victim must be logged in and have firewall-rules privileges.
  • Exploitation requires the non-default Require Firewall Interface option to be enabled and the victim to open a specially crafted GET link.
  • User interaction is required. This is not a direct unauthenticated request that executes without a victim.
  • A public proof-of-concept repository is available for the issue. The available evidence does not establish whether the vulnerability has been used in real-world campaigns.

Technical impact

The flaw allows script to execute in the WebGUI origin under the victim's authenticated session. The technical outcome may include access to data displayed in that session and submission of actions the victim's account is already authorized to perform, so a firewall-rules user could be exposed to unauthorized configuration changes within that permission scope. A limited account is not shown to become an administrator or to gain arbitrary server-side code execution solely through this issue. Available evidence also does not establish an availability impact. Organisational consequences depend on WebGUI exposure, the number of users with firewall-rules privileges, and whether victims can be induced to open attacker-controlled links.

Business impact

  • Malicious script may execute in the WebGUI origin using the victim's authenticated session.
  • Depending on the granted permissions, an attacker may be able to read data exposed to that session or submit actions as the user, including firewall-rule operations when the account has the relevant privileges.
  • The flaw does not automatically turn a limited account into an administrator account; impact remains dependent on the victim's permissions.
  • Available evidence does not establish operating-system-level server-side code execution or service disruption from this issue alone.
  • Operational risk is greater where the WebGUI is reachable from broad networks or firewall-rules privileges are assigned to many users.

Remediation

  1. Apply the vendor patch for the deployed branch. The record indicates that a patch is available, but it does not identify an exact fixed release; do not infer that the upper affected boundary is itself a fix.
  2. If immediate patching is not possible, consider disabling Require Firewall Interface where operationally acceptable. This is a temporary risk reduction inferred from the documented precondition, not a confirmed vendor workaround.
  3. Restrict WebGUI access to trusted administration networks or a VPN, and minimize the number of accounts granted firewall-rules privileges.
  4. When validating a source-level fix, confirm that both $if sinks use context-appropriate encoding such as htmlspecialchars($if, ENT_QUOTES), and that if is allowlisted against configured interfaces. Prefer a vendor-maintained patch over local edits.
  5. After remediation, re-inventory each instance and verify the option state, user permissions, and corrected implementation across every deployed branch.

Detection

  • Inventory Netgate pfSense CE instances, record the installed release, and check whether Require Firewall Interface is enabled.
  • Identify accounts granted access to the firewall-rules page or equivalent WebGUI privileges, since those users are the direct victim population described by the advisory.
  • Review WebGUI access logs for requests to firewall_rules.php with unexpected if values, especially values containing URL-encoded delimiters or markup-like content. This is a precautionary review based on the affected input, not a confirmed IOC.
  • Correlate user reports of suspicious links, unexpected firewall-rule changes, or unusual WebGUI activity by accounts with firewall-rules privileges.
  • After remediation, verify that both $if sinks use context-appropriate encoding and that if is restricted to configured interfaces, or compare the implementation with the vendor's official fix guidance.
  • The absence of suspicious requests in available logs does not prove that a system is safe.
Sources (14)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.