The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2019-25371

CVE-2019-25371: OPNsense 19.1 XSS Vulnerability

CVE-2019-25371 is a reflected cross-site scripting vulnerability in OPNsense 19.1 allowing unauthenticated attackers to inject malicious scripts. This article covers technical details, affected versions, impact, and mitigation.

Published: February 20, 2026

CVE-2019-25371 Overview

CVE-2019-25371 is a reflected cross-site scripting (XSS) vulnerability affecting OPNsense 19.1, an open-source firewall and routing platform. The vulnerability allows unauthenticated attackers to inject malicious scripts by exploiting insufficient input validation in the host parameter of the diag_ping.php endpoint. When a victim accesses a crafted URL or submits a malicious form, arbitrary JavaScript executes in their browser context, potentially leading to session hijacking, credential theft, or further attacks against the firewall management interface.

Critical Impact

Unauthenticated attackers can execute arbitrary JavaScript in users' browsers by exploiting insufficient input validation in the diagnostic ping functionality, potentially compromising firewall administrator sessions.

Affected Products

  • OPNsense 19.1

Discovery Timeline

  • 2026-02-15 - CVE-2019-25371 published to NVD
  • 2026-02-18 - Last updated in NVD database

Technical Details for CVE-2019-25371

Vulnerability Analysis

This reflected XSS vulnerability exists in the diagnostic ping functionality of OPNsense 19.1. The diag_ping.php endpoint accepts user-supplied input through the host parameter without proper sanitization or encoding before reflecting it back in the HTTP response. This allows attackers to craft malicious requests containing JavaScript payloads that execute in the context of an authenticated user's browser session.

The attack requires user interaction, as the victim must be tricked into clicking a malicious link or submitting a crafted form. However, given that OPNsense is a firewall management interface typically accessed by administrators with elevated privileges, successful exploitation could lead to significant security implications including session hijacking, administrative credential theft, or unauthorized configuration changes to the firewall.

Root Cause

The root cause is improper input validation and output encoding in the diag_ping.php script. The host parameter is processed and reflected in the HTTP response without adequate sanitization, violating the security principle of treating all user input as untrusted. The application fails to implement proper context-aware output encoding when rendering user-supplied data in HTML contexts.

Attack Vector

The attack is network-based and requires no authentication. An attacker crafts a malicious POST request to the diag_ping.php endpoint with a script payload embedded in the host parameter. The attacker then distributes this payload via phishing emails, malicious websites, or other social engineering techniques to trick OPNsense administrators into executing the request. When the vulnerable page processes the request and reflects the unsanitized input, the malicious JavaScript executes in the victim's browser with the same privileges as their authenticated session.

The vulnerability can be exploited by submitting crafted POST requests containing JavaScript payloads in the host parameter. When the server processes these requests and reflects the unsanitized input back to the user's browser, the injected script executes in the context of the authenticated session. Detailed technical information is available in the Exploit-DB #46351 entry and the VulnCheck Advisory for OPNsense.

Detection Methods for CVE-2019-25371

Indicators of Compromise

  • Suspicious POST requests to diag_ping.php containing script tags or JavaScript event handlers in the host parameter
  • Web server logs showing encoded characters like %3Cscript%3E or %22onmouseover%3D in requests to diagnostic endpoints
  • Unusual administrative session activity following user interaction with external links

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block requests containing common XSS payloads targeting the host parameter
  • Deploy browser-based security controls such as Content Security Policy (CSP) headers to mitigate script injection attacks
  • Enable detailed logging for the OPNsense web interface and monitor for anomalous POST requests to diag_ping.php

Monitoring Recommendations

  • Review web server access logs for requests to diag_ping.php with unusual or encoded payload characters
  • Monitor authentication events for suspicious session activity following potential XSS exploitation
  • Implement real-time alerting for requests containing known XSS patterns targeting OPNsense administrative endpoints

How to Mitigate CVE-2019-25371

Immediate Actions Required

  • Upgrade OPNsense to a version newer than 19.1 that addresses this vulnerability
  • Restrict access to the OPNsense web management interface to trusted networks only
  • Implement network segmentation to limit exposure of the firewall management interface
  • Educate administrators about phishing attacks and the risks of clicking untrusted links while authenticated

Patch Information

Users should upgrade to a patched version of OPNsense. For the latest security updates and version information, refer to the OPNsense Official Website. Additional discussion about this vulnerability can be found in the OPNsense Forum Topic.

Workarounds

  • Restrict access to the OPNsense web interface to specific trusted IP addresses using firewall rules
  • Implement a reverse proxy with WAF capabilities in front of the OPNsense web interface to filter malicious requests
  • Disable the diagnostic ping functionality if not required until an upgrade can be performed
  • Use separate browser sessions or profiles for OPNsense administration to minimize session hijacking risks
bash
# Example: Restrict OPNsense web interface access to management network only
# Add firewall rule to limit access to the web interface
# Navigate to Firewall > Rules > WAN and create a blocking rule for port 443/80
# Allow only from trusted management subnet (e.g., 10.0.0.0/24)

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechOpnsense

  • SeverityMEDIUM

  • CVSS Score5.1

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • OPNsense Forum Topic

  • OPNsense Official Website

  • Exploit-DB #46351

  • VulnCheck Advisory for OPNsense
  • Related CVEs
  • CVE-2019-25368: OPNsense 19.1 XSS Vulnerability

  • CVE-2019-25369: OPNsense Stored XSS Vulnerability

  • CVE-2019-25370: OPNsense 19.1 XSS Vulnerability

  • CVE-2019-25372: OPNsense XSS Vulnerability Disclosed
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English