Project

General

Profile

Actions

Bug #15525

closed

File browser on ``diag_edit.php`` does not encode directory names before display

Added by Jim Pingle 6 months ago. Updated 9 days ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Diagnostics
Target version:
Start date:
Due date:
% Done:

100%

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

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.

Actions

Also available in: Atom PDF