Project

General

Profile

Actions

Bug #16940

closed
JP JP

Potential XSS in DHCPv4 Pool Descriptions

Bug #16940: Potential XSS in DHCPv4 Pool Descriptions

Added by Jim Pingle 2 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
DHCP (IPv4)
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
26.07
Release Notes:
Default
Affected Version:
Affected Architecture:

Description

When adding or editing a DHCPv4 pool, the services_dhcp.php page prints the descriptions (descr field) of existing pools without encoding. A pool with a specially-crafted payload can trigger an XSS:

<img src=x onerror=alert('xss')>

Note that the list on services_dhcp.php when viewing the interface configuration is encoded properly, the problematic view is only when adding a new pool or editing an existing pool.


Files

16940.patch (551 Bytes) 16940.patch Jim Pingle, 07/10/2026 03:58 PM

JP Updated by Jim Pingle 2 months ago Actions #2

Fixed in commit 3850c6a1ca136da40f3ddd6ba791013055e1ab6d

Added encoding to the output.

Patch is attached.

JP Updated by Jim Pingle 2 months ago Actions #3

  • % Done changed from 0 to 100

GT Updated by Georgiy Tyutyunnik about 2 months ago Actions #4

  • Status changed from Feedback to Resolved

fixed in the latest dev
tested on:
26.07-BETA (amd64)
built on Fri Jul 17 15:34:00 UTC 2026
FreeBSD 16.0-CURRENT

JP Updated by Jim Pingle about 1 month ago Actions #5

  • Private changed from Yes to No
Actions

Also available in: Atom