{"id":"CVE-2026-45327","aliases":["CVE-2026-45327","GHSA-p7c4-8x34-8j8f","GO-2026-5534"],"related":[],"kind":"vulnerability","state":"published","title":"TinyIce: Missing authentication on WebRTC ingest endpoint allows unauthorized stream injection","summary":"TinyIce is a streaming server for audio and video. In versions 0.8.95 through 2.4.1, missing authentication on WebRTC ingest endpoint allows unauthenticated stream injection. Version 2.5.0 fixes the issue by requiring either HTTP Basic auth or a `?password=` query parameter, comparing the supplied password against the per-mount source password (or the `default_source_password` fallback) using bcrypt, hooking into the existing brute-force IP rate-limiter (5 failed attempts per IP within 15 minutes triggers a lockout), and rejecting requests for mounts in `disabled_mounts`. The same release also tightens an adjacent endpoint, `POST /admin/golive/chunk`, which previously required session authentication but did not verify the session user's per-mount access nor check the CSRF token.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"TinyIce is a streaming server for audio and video. In versions 0.8.95 through 2.4.1, missing authentication on WebRTC ingest endpoint allows unauthenticated stream injection. Version 2.5.0 fixes the issue by requiring either HTTP Basic auth or a `?password=` query parameter, comparing the supplied password against the per-mount source password (or the `default_source_password` fallback) using bcrypt, hooking into the existing brute-force IP rate-limiter (5 failed attempts per IP within 15 minutes triggers a lockout), and rejecting requests for mounts in `disabled_mounts`. The same release also tightens an adjacent endpoint, `POST /admin/golive/chunk`, which previously required session authentication but did not verify the session user's per-mount access nor check the CSRF token.","source":"cvelist"},{"lang":"en","text":"## Title\n\nMissing authentication on WebRTC ingest endpoint allows unauthenticated stream injection in TinyIce\n\n## Ecosystem / Package\n\n- **Ecosystem:** `Go` (or \"Other\" — TinyIce is shipped as a Go binary, not a Go module published to a registry)\n- **Package name:** `github.com/DatanoiseTV/tinyice`\n\n## Affected versions\n\n```\n>= 0.8.95, <= 2.4.1\n```\n\n(Introduced 2026-02-21 in commit `e2b60d6` — \"debug: add Go Live connection tracing and backend data flow logging\" — when `handleWebRTCSourceOffer` was registered at `/webrtc/source-offer` without an authentication check. Every tagged release from `v0.8.95` through `v2.4.1` ships the vulnerable handler.)\n\n## Patched versions\n\n```\n>= 2.5.0\n```\n\n## Severity\n\n- **CVSS 3.1 base score:** 7.4 (High)\n- **CVSS vector:** `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L`\n- **CWE:** [CWE-306: Missing Authentication for Critical Function](https://cwe.mitre.org/data/definitions/306.html)\n\n## Description\n\nTinyIce's WebRTC source-ingest HTTP endpoint, `POST /webrtc/source-offer?mount=<mount>`, accepted any inbound WebRTC SDP offer with no authentication check. The handler routed the offer to `WebRTCManager.HandleSourceOffer`, which then accepted whatever audio/video tracks the peer published and broadcast them on the named mount as if they were the legitimate source.\n\nThe other ingest paths (`POST /<mount>` over HTTP/1 with the icecast `SOURCE` / `PUT` verb, RTMP, SRT) all require the per-mount source password, falling back to `default_source_password` from the config. The WebRTC ingest path didn't.\n\n## Impact\n\nA network attacker who can reach the TinyIce HTTP port can:\n\n1. Identify a target mount (mount names are public — they appear in the directory listing, the player URL, and the YP listing).\n2. Negotiate a WebRTC peer connection with the server.\n3. Publish arbitrary Opus / H.264 to that mount.\n4. Have it broadcast to every listener on the mount.\n\nThis is a high-integrity-impact issue: an attacker can replace a radio's broadcast with their own audio (silence, noise, malicious content, branded competitor content, etc.). Listeners hear what the attacker sends, not what the legitimate publisher intended.\n\nThe legitimate publisher can re-establish their session — TinyIce's source-takeover handshake gives the new offer priority once it arrives, with a 3-second drain of the previous pump goroutine — but the attacker can in principle re-connect immediately after, producing a sustained broadcast hijack until the operator manually intervenes (block at firewall, rotate source passwords once the patch is applied, restart the service).\n\nThere is no direct confidentiality impact through this endpoint: the attacker doesn't gain access to listener data or other mounts' content.\n\n## Workarounds\n\nIf users cannot upgrade immediately:\n\n- **Recommended:** block `POST /webrtc/source-offer` at the reverse proxy in front of TinyIce. The endpoint has no production use case for clients outside the operator's own administration — disabling it loses no functionality unless the consuming application specifically use the browser-based \"go-live\" feature.\n- Restrict TinyIce's HTTP port to a trusted network (VPN, internal LAN). Listener access can still be served via a separately-firewalled CDN if the application needs public listening.\n\n## Detection\n\nTo check whether an application's deployment is exposed, run from outside the network:\n\n```\ncurl -i -X POST 'https://your-tinyice-host/webrtc/source-offer?mount=/anymount' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"type\":\"offer\",\"sdp\":\"v=0\\r\\n\"}'\n```\n\n- If the response is `400 Bad Request` with a JSON body containing an SDP-parsing error from `pion/webrtc`, **a consuming application is vulnerable** — the server tried to negotiate the (malformed) offer without asking for credentials.\n- If the response is `401 Unauthorized` (Basic auth challenge), the consuming application has been patched.\n\nAuthenticated log lines on a patched server will look like:\n\n```\nWARN  Authentication failed for user 'webrtc-source' from 1.2.3.4: invalid source password\n```\n\n## Fix\n\nUpstream commit: [`8067d6b`](https://github.com/DatanoiseTV/tinyice/commit/8067d6b) \"fix(api): require source password on /webrtc/source-offer + CSRF/access on /go-live-chunk\".\n\nThe handler now:\n\n1. Requires either HTTP Basic auth or a `?password=` query parameter.\n2. Compares the supplied password against the per-mount source password (or the `default_source_password` fallback) using bcrypt.\n3. Hooks into the existing brute-force IP rate-limiter (5 failed attempts per IP within 15 minutes triggers a lockout).\n4. Rejects requests for mounts in `disabled_mounts`.\n\nThe same release also tightens an adjacent endpoint, `POST /admin/golive/chunk`, which previously required session authentication but did not verify the session user's per-mount access nor check the CSRF token.\n\n## Timeline\n\n- 2026-02-21 — Vulnerable handler introduced (`e2b60d6`).\n- 2026-05-09 — Vulnerability identified during a maintainer-led audit.\n- 2026-05-09 — Patched in commit `8067d6b`, released as `v2.5.0`.\n- 2026-05-09 — GitHub Security Advisory published, CVE assigned.","format":"markdown","source":"ghsa"},{"lang":"en","text":"TinyIce: Missing authentication on WebRTC ingest endpoint allows unauthorized stream injection in github.com/DatanoiseTV/tinyice.\n\nNOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.\n\n(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)\n\nThe additional affected modules and versions are: github.com/DatanoiseTV/tinyice before v2.5.0.","format":"markdown","source":"go"},{"lang":"es","text":"TinyIce es un servidor de streaming para audio y video. En las versiones 0.8.95 a 2.4.1, la falta de autenticación en el endpoint de ingesta de WebRTC permite la inyección de streams no autenticados. La versión 2.5.0 soluciona el problema al requerir autenticación HTTP Basic o un parámetro de consulta ’?password=’, comparando la contraseña proporcionada con la contraseña de origen por punto de montaje (o el valor de respaldo ’default_source_password’) usando bcrypt, integrándose en el limitador de velocidad de IP de fuerza bruta existente (5 intentos fallidos por IP en 15 minutos activan un bloqueo), y rechazando las solicitudes para puntos de montaje en ’disabled_mounts’. La misma versión también refuerza un endpoint adyacente, ’POST /admin/golive/chunk’, que anteriormente requería autenticación de sesión pero no verificaba el acceso por punto de montaje del usuario de la sesión ni comprobaba el token CSRF.","source":"nvd"}],"published":"2026-05-18T17:20:17.000Z","modified":"2026-10-25T23:10:00.167Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","score":8.2,"rating":"HIGH"}],"cwes":["CWE-306"],"affected":[{"ranges":[{"version":">= 0.8.95, < 2.5.0","status":"affected"}],"vendor":"DatanoiseTV","product":"tinyice","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.8.95","status":"affected","fixed":"2.5.0"}],"ecosystem":"Go","package":"github.com/DatanoiseTV/tinyice","purl":"pkg:golang/github.com/DatanoiseTV/tinyice","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.8.95","status":"affected"}],"ecosystem":"Go","package":"github.com/DatanoiseTV/tinyice","purl":"pkg:golang/github.com/DatanoiseTV/tinyice","source":"go"}],"references":[{"url":"https://github.com/DatanoiseTV/tinyice/security/advisories/GHSA-p7c4-8x34-8j8f","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/DatanoiseTV/tinyice/commit/8067d6b","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/DatanoiseTV/tinyice/releases/tag/v2.5.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45327","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/DatanoiseTV/tinyice","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-06-05T19:07:18.738Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-45327","url":"https://www.cve.org/CVERecord?id=CVE-2026-45327","licence":"CVE Terms of Use","modified":"2026-06-05T19:07:26.982Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p7c4-8x34-8j8f","url":"https://github.com/advisories/GHSA-p7c4-8x34-8j8f","licence":"CC-BY-4.0","modified":"2026-06-25T23:11:24.193Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5534","url":"https://pkg.go.dev/vuln/GO-2026-5534","licence":"CC-BY-4.0","modified":"2026-06-25T23:01:20.961Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-45327","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45327","licence":"Public domain","modified":"2026-10-25T23:10:00.167Z"}],"updatedAt":"2026-11-25T22:59:23.893Z","epss":{"score":0.00357,"percentile":0.31412,"date":"2026-12-01T12:00:22.000Z"}}