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-25397

CVE-2019-25397: IPFire XSS Vulnerability in hosts.cgi

CVE-2019-25397 is a reflected XSS vulnerability in IPFire 2.21 Core Update 127 that allows script injection through hosts.cgi parameters. This post covers the technical details, attack vectors, impact, and mitigation.

Published: February 20, 2026

CVE-2019-25397 Overview

CVE-2019-25397 is a reflected Cross-Site Scripting (XSS) vulnerability affecting IPFire 2.21 Core Update 127. The vulnerability exists in the hosts.cgi script, which fails to properly validate and sanitize user-supplied input in multiple parameters. Attackers can exploit this weakness by crafting malicious POST requests containing JavaScript payloads in the KEY1, IP, HOST, or DOM parameters, enabling arbitrary script execution in the context of authenticated users' browsers.

Critical Impact

Successful exploitation allows attackers to execute arbitrary JavaScript code in victims' browsers, potentially leading to session hijacking, credential theft, or unauthorized actions performed on behalf of authenticated administrators.

Affected Products

  • IPFire 2.21 Core Update 127
  • IPFire 2.x versions prior to patched releases

Discovery Timeline

  • 2026-02-18 - CVE CVE-2019-25397 published to NVD
  • 2026-02-19 - Last updated in NVD database

Technical Details for CVE-2019-25397

Vulnerability Analysis

This vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), commonly known as reflected Cross-Site Scripting (XSS). The hosts.cgi script in the IPFire web interface accepts user input through multiple POST parameters without implementing proper input validation or output encoding. When these unsanitized values are reflected back to the user's browser within the HTML response, any embedded JavaScript code executes within the security context of the IPFire management interface.

The attack requires user interaction, as the victim must be tricked into submitting a malicious request or clicking a crafted link. However, since IPFire serves as a firewall/router appliance with administrative capabilities, successful exploitation against an authenticated administrator could have significant security implications for the protected network.

Root Cause

The root cause of this vulnerability is insufficient input validation and output encoding in the hosts.cgi CGI script. The script processes POST request parameters (KEY1, IP, HOST, DOM) and reflects them in the HTTP response without sanitizing HTML special characters or implementing Content Security Policy headers. This allows script tags and event handlers embedded in parameter values to be interpreted as executable code by the victim's browser.

Attack Vector

The attack is network-based and requires the attacker to craft a malicious request targeting the hosts.cgi endpoint. The attacker must entice an authenticated IPFire administrator to either click a malicious link or submit a form containing the XSS payload. This can be accomplished through phishing emails, watering hole attacks, or social engineering techniques.

The malicious payload is submitted via POST request to the vulnerable CGI script. When the script processes the request and generates the response page, the unsanitized input is included in the HTML output, causing the browser to execute the attacker's JavaScript code. This code runs with the same privileges as the authenticated user session, potentially allowing the attacker to steal session cookies, modify firewall rules, or perform other administrative actions.

Technical details and proof-of-concept information are available in the Exploit-DB #46344 entry.

Detection Methods for CVE-2019-25397

Indicators of Compromise

  • Unusual POST requests to /cgi-bin/hosts.cgi containing script tags or JavaScript event handlers
  • Web server logs showing encoded or obfuscated JavaScript in KEY1, IP, HOST, or DOM parameters
  • Reports from users about unexpected browser behavior when accessing the IPFire web interface

Detection Strategies

  • Deploy Web Application Firewall (WAF) rules to detect and block XSS payloads in HTTP requests targeting CGI scripts
  • Enable detailed logging on the IPFire web interface and monitor for suspicious parameter patterns
  • Implement browser-based XSS auditing and Content Security Policy headers where possible
  • Use intrusion detection signatures to identify common XSS attack patterns in network traffic

Monitoring Recommendations

  • Monitor web server access logs for requests containing <script>, javascript:, onerror=, or similar XSS indicators
  • Set up alerts for anomalous POST requests to administrative CGI endpoints
  • Review authentication logs for session anomalies following suspicious web requests

How to Mitigate CVE-2019-25397

Immediate Actions Required

  • Upgrade IPFire to the latest available Core Update that addresses this vulnerability
  • Restrict access to the IPFire web management interface to trusted networks only
  • Implement network segmentation to limit exposure of the administrative interface
  • Educate administrators about phishing and social engineering tactics used to exploit XSS vulnerabilities

Patch Information

Users should upgrade to a patched version of IPFire that includes proper input validation and output encoding for the hosts.cgi script. The latest releases are available from the IPFire Official Website. Review the VulnCheck Advisory on IPFire for additional guidance on affected versions and remediation steps.

Workarounds

  • Restrict administrative interface access to specific trusted IP addresses using firewall rules
  • Access the IPFire web interface only through a dedicated management network or VPN
  • Use browser extensions that block or sanitize potentially malicious scripts
  • Disable JavaScript in browsers when accessing the administrative interface (may limit functionality)
bash
# Example: Restrict web interface access to management VLAN only
# Add to IPFire firewall rules (adjust IP ranges as needed)
iptables -A INPUT -p tcp --dport 444 -s 192.168.1.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 444 -j DROP

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechIpfire

  • 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
  • IPFire ISO Release

  • Exploit-DB #46344

  • IPFire Official Website

  • VulnCheck Advisory on IPFire
  • Related CVEs
  • CVE-2019-25396: IPFire XSS Vulnerability via POST

  • CVE-2019-25399: IPFire Stored XSS Vulnerability

  • CVE-2019-25400: IPFire 2.21 Core XSS Vulnerability

  • CVE-2019-25398: IPFire ovpnmain.cgi XSS Vulnerability
Default Legacy - Prefooter | 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