Project

General

Profile

Actions

Bug #16116

closed

Potential XSS in Wake on LAN page and widget

Added by Jim Pingle about 2 months ago. Updated 4 days ago.

Status:
Resolved
Priority:
Very High
Assignee:
Category:
Wake on LAN
Target version:
Start date:
Due date:
% Done:

100%

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

Description

The page at services_wol_edit.php does not perform sufficient validation on the interface value submitted by users when creating or editing a WoL entry. This value is sent back to the user without encoding in the WOL list on services_wol.php and on the dashboard widget wake_on_lan.widget.php, which is a potential XSS vector.

Creating a new entry with the following data reproduces the problem condition:

{
    "interface": "wan\"><script>alert('XSS')</script>",
    "mac": "aa:bb:cc:dd:ee:00",
    "descr": "XSS+Test",
    "save": "Save" 
}

Files

poc-xss-wol-16116.py (1.41 KB) poc-xss-wol-16116.py Jim Pingle, 04/01/2025 07:24 PM
Actions

Also available in: Atom PDF