Koel — это бесплатное решение для потоковой передачи музыки с открытым исходным кодом. До версии 9.7.0 маршруты createInternetRadioStation.view и updateInternetRadioStation.view, совместимые с Subsonic, принималиstreamUrl аутентифицированного пользователя без проверок SafeUrl и HasAudioContentType, используемых обычным API радио. app/Http/Requests/Subsonic/CreateInternetRadioStationRequest.php и app/Http/Requests/Subsonic/UpdateInternetRadioStationRequest.php передают сохраненный URL-адрес через app/Services/RadioService.php в app/Services/Radio/RadioStreamProxy.php, где RadioStreamProxy::openStream() вызывает fopen($url, 'r', false, $контекст). Streaming /radio/stream/{id} возвращает тело ответа восходящего потока, обеспечивая доступ к обратной связи, RFC1918, мосту Docker, метаданным или другим внутренним службам HTTP, доступным с сервера Koel.
Эта проблема исправлена в версии 9.7.0.
Показать оригинальное описание (EN)
Koel is a free, open-source music streaming solution. Prior to 9.7.0, the Subsonic-compatible createInternetRadioStation.view and updateInternetRadioStation.view routes accept an authenticated user's streamUrl without the SafeUrl and HasAudioContentType checks used by the regular radio API. app/Http/Requests/Subsonic/CreateInternetRadioStationRequest.php and app/Http/Requests/Subsonic/UpdateInternetRadioStationRequest.php pass the stored URL through app/Services/RadioService.php to app/Services/Radio/RadioStreamProxy.php, where RadioStreamProxy::openStream() calls fopen($url, 'r', false, $context). Streaming /radio/stream/{id} returns the upstream response body, allowing access to loopback, RFC1918, Docker bridge, metadata, or other internal HTTP services reachable from the Koel server. This issue is fixed in version 9.7.0.
Характеристики атаки
Последствия
Строка CVSS v3.1