Project

General

Profile

Actions

Bug #16976

closed
JP JP

Potential XSS in Traffic Graphs Display option

Bug #16976: Potential XSS in Traffic Graphs Display option

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

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Traffic Graphs
Target version:
Start date:
Due date:
% Done:

100%

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

Description

The page at status_graphs.php displays a table of hosts consuming bandwidth in real-time. Optionally, this table can resolve IP addresses to fully qualified domain names or use descriptions from DHCP static mappings or DNS host overrides for display. The values returned by the these lookups are not validated and are displayed without encoding.

These address lookups to return an XSS payload, which could result in XSS depending on the settings on the traffic graphs page.

There are multiple paths which can potentially trigger the problem, but not all of them are viable:

  • When Display is set to FQDN:
    • Payload in a hostname directly in /etc/hosts -- Would have to be manually edited in, no way to set that in the GUI as it doesn't pass validation
    • Payload in a PTR record from DNS -- FreeBSD libraries filter out such invalid hostnames so they don't make it to the client
  • When Display is set to Description:
    • Payload in DNS Resolver or DNS Forwarder Host Override descriptions -- Can be set by user and triggers the problem
    • Payload in DHCP Static Mapping descriptions -- Could work, but the functionality is broken, see #16979

Files

16976.patch (1.91 KB) 16976.patch Jim Pingle, 07/29/2026 02:26 PM

Related issues 1 (0 open1 closed)

Related to Bug #16979: Traffic Graphs display option "Description" does not utilize DHCP static mapping descriptionsResolvedJim Pingle

Actions
Actions

Also available in: Atom