ubuntuandClaude Sonnet 5 55cefe47f4 Fix path traversal in file-serving and file-writing endpoints
playlist_download, download_epg, upload_snapshot, and get_logo all
built filesystem paths by concatenating a caller-supplied string
(filename/id_channel/id_device) with no validation, so a '../'
payload could read or write files outside the intended directory.
upload_snapshot was the most exploitable: fully attacker-controlled
bytes written to an attacker-chosen path with no prior lookup gating
it. Add a safe_join() helper that resolves the path and rejects
anything that escapes the base directory, and use it at all four
call sites.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-30 23:19:54 +00:00
2026-08-03 13:14:43 +00:00
2026-08-03 13:14:43 +00:00
2026-08-03 13:14:43 +00:00
S
Description
No description provided
1.7 MiB
Languages
HTML 51.1%
Python 38.7%
JavaScript 9.3%
Shell 0.7%
Dockerfile 0.2%