aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarc Brooks <IDisposable@gmail.com>2026-04-01 16:55:47 -0500
committerMarc Brooks <IDisposable@gmail.com>2026-06-26 12:05:54 -0500
commit617ebf367ff24ecbe8e0de5aebc90fe28689bcb0 (patch)
tree4710b01b3da7cd18ab3396a88243097792f5dbe9 /tests
parentb9db4566a74ec94bcd24e7333b9d0cc6156e2e25 (diff)
Fix path transversal exposure in Plugins
The request path is not validated to a valid path and could allow escaping the transcode path and downloading of any arbitrary file in GetHlsPlaylistLegacy . GetHlsAudioSegmentLegacy and GetHlsVideoSegmentLegacy have the same issue, and are NOT behind an Authorize so they are publicly exploitable. Added a ValidateTranscodePath that verifies that requested file paths start with the transcode path setting. Also ensure that all filename comparisons are OrdinalIgnoreCase because we might be running on a filesystem where filename-casing doesn't have to match. Switched from InvariantCulture because the underlying OS filename comparisons are always byte-wise (with case insensitivity here). Fixed a similar issue in GetPluginImage
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions