IPFire Stored Cross-Site Scripting Vulnerability in cleanhtml() Function

Vulnerability

A stored cross-site scripting vulnerability has been identified in IPFire versions prior to 2.29 (Core Update 198). This issue arises from the cleanhtml() function in /var/ipfire/header.pl, which improperly sanitizes user input by failing to apply HTML-entity encoding. As a result, when an authenticated user submits data to certain endpoints, the unsanitized input is stored and later displayed in the web interface, allowing injected scripts to execute in the context of other users.

Impact

Exploitation of this vulnerability allows for stored cross-site scripting, where injected scripts are executed in the context of users viewing the affected entries.

Reproduction

To reproduce this vulnerability, an authenticated user can submit data to one of the affected endpoints, such as /cgi-bin/wakeonlan.cgi or /cgi-bin/dhcp.cgi. The submitted data should include a script payload. Once the data is saved, the injected script will execute when the entry is viewed by another user.

Remediation

Users can update to IPFire 2.29 (Core Update 198) to address this vulnerability.

Added: Oct 28, 2025, 3:41 PM
Updated: Oct 28, 2025, 3:41 PM

Vulnerability Rating

Custom Algorithm
spread
4.5
impact
1.7
exploitability
6.0
remediation
7.7
relevance
0.8
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.