Bug #15525
closedFile browser on ``diag_edit.php`` does not encode directory names before display
100%
Description
The file browser on diag_edit.php
does not encode directory names before display
Similar to #13262 which fixed problematic filenames, but directories can also trigger a similar issue both in the file/directory list and in the breadcrumb/directory path line.
Creating a directory named \'\>\"\>\<img\ src=q\ onerror=alert\(\'xss\'\)\;\>
and then browsing to it will produce a JS alert.
A user who can create directories with arbitrary names can break rendering of the page though exploit potential is minimized by the fact that `/` is not valid in directory names so tags cannot be closed.
Updated by Jim Pingle 6 months ago
- Status changed from Confirmed to Feedback
- % Done changed from 0 to 100
Applied in changeset 33f2ad2414b8a1246d511523b4ec0b67bbb224da.
Updated by Georgiy Tyutyunnik 6 months ago
tested on:
24.03-RELEASE (amd64)
built on Wed Apr 24 17:38:00 UTC 2024
FreeBSD 15.0-CURRENT
patch fixes the issue
Updated by Jim Pingle about 2 months ago
- Plus Target Version changed from 24.08 to 24.11