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 #1

Updated by Jim Pingle about 2 months ago

  • File poc-xss-wol-16116.py added
  • Description updated (diff)

Attached is a small proof of concept script which can trigger the problem. Ensure there is no WOL entry named "XSS Test" before running the script.

After running the script, an XSS alert will appear on services_wol.php and on the Dashboard if the WOL widget is active.

Actions #3

Updated by Jim Pingle about 2 months ago

  • File deleted (poc-xss-wol-16116.py)
Actions #4

Updated by Jim Pingle about 2 months ago

Updated POC

Actions #5

Updated by Jim Pingle about 2 months ago

  • Status changed from Confirmed to Feedback
  • % Done changed from 0 to 100
Actions #6

Updated by Georgiy Tyutyunnik 26 days ago

tested, reproduced on 25.07.a.20250331.2135
fixed in 25.07.a.20250409.0600 and later

Actions #7

Updated by Jim Pingle 26 days ago

  • Status changed from Feedback to Resolved
Actions #8

Updated by Jim Pingle 4 days ago

  • Private changed from Yes to No
Actions

Also available in: Atom PDF