Project

General

Profile

Actions

Bug #16744

closed

Potential XSS in Delegated Length value for Prefix Delegation on ``services_dhcpv6.php`` when using Kea

Added by Jim Pingle 23 days ago. Updated 2 days ago.

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

100%

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

Description

The page at services_dhcpv6.php does not perform sufficient validation on the user input value of Delegated Length (pddellen) when saving settings. This value is subsequently used in JavaScript without encoding if the DHCP backend is set to Kea, which is a potential XSS vector.

The pdprefixlen also lacks sufficient validation, but it does not appear to be vulnerable.

Creating an entry with a value such this example reproduces the problem condition:

{
    "if": "lan",
    "pdprefix": "2001:db8:12:34::",
    "pdprefixlen": "64",
    "pddellen": '64" || alert(\"XSS\") || \"'
    "denyunknown": "disabled",
    "save": "Save",
}

Simple POC attached.


Files

poc-xss-kea-pddellen.py (1.46 KB) poc-xss-kea-pddellen.py Jim Pingle, 03/11/2026 07:25 PM
Actions #2

Updated by Jim Pingle 22 days ago

  • Status changed from Confirmed to Feedback
  • % Done changed from 0 to 100

Applied in changeset commit:abe85e63b3b8427eaf8f8f672ae1f3b638763fb2.

Actions #3

Updated by Jim Pingle 22 days ago

  • Subject changed from Potential XSS in Delegated Length value for Prefix Delegation on ``services_dhcpv6.php`` to Potential XSS in Delegated Length value for Prefix Delegation on ``services_dhcpv6.php`` when using Kea
  • Description updated (diff)

Note that this requires using Kea as the DHCP server backend (subject and description updated to reflect that)

Actions #4

Updated by Georgiy Tyutyunnik 21 days ago

  • Status changed from Feedback to Resolved

tested on:
25.11.1-RELEASE (amd64)
built on Mon Jan 19 17:25:00 UTC 2026
FreeBSD 16.0-CURRENT
patch fixes the issue
after application the provided script results in input validation error

Actions #5

Updated by Jim Pingle 21 days ago

  • Plus Target Version changed from 26.07 to 26.03
Actions #6

Updated by Jim Pingle 2 days ago

  • Private changed from Yes to No
Actions

Also available in: Atom PDF