Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-34182: CWE-79 Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') in Deciso OPNsense

0
Medium
VulnerabilityCVE-2025-34182cvecve-2025-34182cwe-79
Published: Wed Oct 01 2025 (10/01/2025, 17:01:08 UTC)
Source: CVE Database V5
Vendor/Project: Deciso
Product: OPNsense

Description

In Deciso OPNsense before 25.7.4, when creating an "Interfaces: Devices: Point-to-Point" entry, the value of the parameter ptpid is not sanitized of HTML-related characters/strings. This value is directly displayed when visiting the page/interfaces_assign.php, which can result in stored cross-site scripting. The attacker must be authenticated with at-least "Interfaces: PPPs: Edit" permission. This vulnerability has been addressed by the vendor in the product release notes as "ui: legacy_html_escape_form_data() was not escaping keys only data elements."

AI-Powered Analysis

AILast updated: 10/01/2025, 17:04:12 UTC

Technical Analysis

CVE-2025-34182 is a stored cross-site scripting (XSS) vulnerability affecting Deciso's OPNsense firewall software versions prior to 25.7.4. The vulnerability arises from improper sanitization of the 'ptpid' parameter when creating an "Interfaces: Devices: Point-to-Point" entry. Specifically, HTML-related characters and strings in the 'ptpid' parameter are not properly escaped before being rendered on the page /interfaces_assign.php. This allows an authenticated attacker with at least "Interfaces: PPPs: Edit" permission to inject malicious scripts that are stored and executed in the context of the victim's browser when visiting the affected page. The root cause is that the legacy function ui: legacy_html_escape_form_data() was escaping only data elements but not keys, allowing injection through keys such as 'ptpid'. The vulnerability has been addressed in OPNsense version 25.7.4 by correcting the escaping mechanism. The CVSS 4.0 base score is 5.1 (medium severity), reflecting that the attack vector is network-based, requires low privileges but no user interaction, and results in low confidentiality impact with no integrity or availability impact. No known exploits are reported in the wild as of now. This vulnerability falls under CWE-79 (Improper Neutralization of Input During Web Page Generation), a common web application security issue that can lead to session hijacking, credential theft, or unauthorized actions if exploited successfully. Since the attacker must be authenticated with specific permissions, the threat is limited to insiders or compromised accounts with PPP editing rights.

Potential Impact

For European organizations using OPNsense as their firewall or network security appliance, this vulnerability poses a moderate risk. Successful exploitation could allow an attacker with authenticated access to execute arbitrary JavaScript in the context of the OPNsense web interface. This could lead to session hijacking, theft of administrative credentials, or unauthorized configuration changes if combined with other vulnerabilities or social engineering. Given that OPNsense is popular among small to medium enterprises and public sector organizations in Europe for its open-source and flexible firewall capabilities, exploitation could compromise network perimeter defenses. However, the requirement for authenticated access with specific permissions limits the attack surface primarily to internal users or attackers who have already gained some foothold. The vulnerability does not directly impact confidentiality, integrity, or availability of the firewall system itself but could facilitate further attacks or privilege escalation. Organizations in sectors with strict regulatory requirements for network security, such as finance, healthcare, and critical infrastructure, should consider this vulnerability significant enough to warrant prompt remediation to avoid potential lateral movement or insider threats.

Mitigation Recommendations

1. Upgrade OPNsense installations to version 25.7.4 or later, where the vulnerability has been fixed by proper escaping of the 'ptpid' parameter. 2. Restrict and audit user permissions to ensure only trusted administrators have "Interfaces: PPPs: Edit" rights, minimizing the number of accounts that could exploit this vulnerability. 3. Implement strong authentication mechanisms such as multi-factor authentication (MFA) for accessing the OPNsense web interface to reduce the risk of compromised credentials. 4. Monitor web interface logs and user activities for unusual behavior or unauthorized changes related to point-to-point interface configurations. 5. Consider network segmentation and access controls to limit administrative interface access to trusted networks or VPNs. 6. Educate administrators about the risks of XSS and the importance of validating input even in internal management interfaces. 7. If upgrading immediately is not feasible, apply temporary compensating controls such as disabling or restricting access to the affected interface pages or limiting the ability to create or edit point-to-point devices.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
VulnCheck
Date Reserved
2025-04-15T19:15:22.568Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 68dd5ef5ebdfe95d2e1694d8

Added to database: 10/1/2025, 5:03:49 PM

Last enriched: 10/1/2025, 5:04:12 PM

Last updated: 11/17/2025, 10:48:49 AM

Views: 331

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats