Bug #16918
closedPotential stored XSS in ``browser.php`` used by ``diag_edit.php``
100%
Description
The file browser component of diag_edit.php at /usr/local/www/vendor/filebrowser/browser.php has a potential stored XSS in its handling of directory names.
Directory names are used in JavaScript with partial encoding that can still be leveraged for XSS.
If an attacker with the ability to create arbitrary directories on the filesystem can create a directory with a specially-crafted name and then an administrator navigates to that directory when browsing files to edit, it could trigger an XSS.
An example of a problematic directory is:
payload');alert(1);if('a'=='a
Files
JP Updated by Jim Pingle 3 months ago
- File 16918.patch 16918.patch added
- Status changed from Confirmed to Feedback
- % Done changed from 0 to 100
Fixed in commit 345e04c9bb8221240020a79972c00db8507271ea
Fixed encoding to be safe for JavaScript
Patch is attached.
JP Updated by Jim Pingle 2 months ago
- Plus Target Version changed from 26.11 to 26.07
GT Updated by Georgiy Tyutyunnik about 2 months ago
- Status changed from Feedback to Resolved
can't reproduce in the latest dev
tested on:
26.07-BETA (amd64)
built on Mon Jul 27 14:43:00 UTC 2026
FreeBSD 16.0-CURRENT
JP Updated by Jim Pingle about 1 month ago
- Private changed from Yes to No