| 标题 | Dispatcharr 0.32.0 Improper Access Control |
|---|
| 描述 | Dispatcharr's VODLogoViewSet and M3UAccountViewSet resolve permissions through permission_classes_by_action, a map that contains only the six standard REST actions (list/create/retrieve/update/partial_update/destroy). Every other action hits the except KeyError fallback, which returns a bare rest_framework.permissions.IsAuthenticated (VODLogoViewSet.get_permissions, apps/vod/api_views.py:1122-1128; M3UAccountViewSet.get_permissions, apps/m3u/api_views.py:52-55). Any authenticated account - including user_level=0 (label 'Streamer') - can therefore invoke admin-only operations on any provider: DELETE /api/vod/vodlogos/bulk-delete/ (delete an arbitrary set of stored logo assets), POST /api/vod/vodlogos/cleanup/ (delete every unreferenced logo), PATCH /api/m3u/accounts/{id}/group-settings/ (write per-group auto channel sync settings, including auto_sync_channel_start/end), POST /api/m3u/accounts/{id}/repack-group/ (renumber channels in a provider group) and POST /api/m3u/accounts/{id}/refresh-vod/. The same repository gates the custom actions of its other viewsets explicitly (ChannelViewSet, ChannelGroupViewSet, ChannelProfileViewSet, RecordingViewSet), which shows the intended policy for these two viewsets is missing rather than by design.
A/B verified against a live instance as a level-0 account: standard actions returned 403 while DELETE bulk-delete returned 200 and removed 3 logo assets; cleanup returned 200 and removed 2 more; PATCH group-settings returned 200 and persisted an auto-channel-sync range for the provider account.
Reported to the maintainers via GitHub private advisory GHSA-gpcm-2mjh-m59q; the vendor confirmed the root cause and fixed it in commit ac7a23c (tasks custom actions now require admin, unlisted actions fail closed to admin). The fix shipped in v0.33.0, whose public release notes state 'REST viewsets and API views fail closed to admin for any action or method that is not explicitly permissioned' and credit 'Reported by @cqliuke'.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N (6.5), CWE-863. |
|---|
| 来源 | ⚠️ https://github.com/Dispatcharr/Dispatcharr/releases/tag/v0.33.0 |
|---|
| 用户 | waterhunter (UID 101889) |
|---|
| 提交 | 2026-10-26 00時45分 (30 日前) |
|---|
| 管理 | 2026-11-24 10時14分 (29 days later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 442785 [Dispatcharr 直到 0.32.0 VODLogoViewSet/M3UAccountViewSet get_permissions 权限提升] |
|---|
| 积分 | 20 |
|---|