Tautulli is a Python based monitoring and tracking tool for Plex Media Server. В Tautulli v2.15.3 и ранее злоумышленник с административным доступом может использовать конечную точку pms_image_proxy для записи произвольных скриптов python в файловую систему приложения. Это приводит к удаленному выполнению кода в сочетании с агентом уведомлений Script.
Если злоумышленник с административным доступом изменяет URL из PMS на сервер, который он контролирует, он может злоупотребить pms_image_proxy, чтобы получить файл записи в файловую систему приложения. Это можно сделать, сделав запрос pms_image_proxy с URL в параметре img и желаемым именем файла в параметре img_format. Затем Tautulli использует хэш нужных метаданных вместе с img_format, чтобы построить путь к файлу.
Поскольку злоумышленник контролирует img_format, который занимает конец пути к файлу, и img_format не дезинфицируется, злоумышленник может затем использовать символы обхода пути, чтобы указать имя файла по своему выбору. Если указанный файл не существует, Tautaulli попытается извлечь изображение из настроенного PMS. Поскольку злоумышленник управляет PMS, они могут возвращать произвольное содержимое в ответ на этот запрос, которое затем будет записано в указанный файл.
Злоумышленник может записать произвольный скрипт python в место в файловой системе приложения. Затем злоумышленник может использовать встроенный агент уведомлений Script для запуска локального сценария, получая удаленное выполнение кода на сервере приложений. Пользователи должны обновиться до версии 2.16.0, чтобы получить патч.
Показать оригинальное описание (EN)
Tautulli is a Python based monitoring and tracking tool for Plex Media Server. In Tautulli v2.15.3 and earlier, an attacker with administrative access can use the `pms_image_proxy` endpoint to write arbitrary python scripts into the application filesystem. This leads to remote code execution when combined with the `Script` notification agent. If an attacker with administrative access changes the URL of the PMS to a server they control, they can then abuse the `pms_image_proxy` to obtain a file write into the application filesystem. This can be done by making a `pms_image_proxy` request with a URL in the `img` parameter and the desired file name in the `img_format` parameter. Tautulli then uses a hash of the desired metadata together with the `img_format` in order to construct a file path. Since the attacker controls `img_format` which occupies the end of the file path, and `img_format` is not sanitised, the attacker can then use path traversal characters to specify filename of their choosing. If the specified file does not exist, Tautaulli will then attempt to fetch the image from the configured PMS. Since the attacker controls the PMS, they can return arbitrary content in response to this request, which will then be written into the specified file. An attacker can write an arbitrary python script into a location on the application file system. The attacker can then make use of the built-in `Script` notification agent to run the local script, obtaining remote code execution on the application server. Users should upgrade to version 2.16.0 to receive a patch.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 1
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Tautulli Tautulli
cpe:2.3:a:tautulli:tautulli:*:*:*:*:*:*:*:*
|
— |
2.16.0
|