Enforce owner/admin gate on host schedules regardless of service link

fix(security): enforce owner/admin gate on host schedules regardless of service link
Enforce owner/admin gate on host schedules regardless of service link1e3f10-fix-enforce-owner-admin-gate-on-host-cve-2026-72886fixenforce owner admin gate host schedules

Committed by Siumauricio

commit message
fix(security): enforce owner/admin gate on host schedules regardless of service link

Host-level schedules (server / dokploy-server) run their script as root on the
host. The owner/admin gate only ran in the no-service branch, so a member could
attach an accessible applicationId to a dokploy-server schedule and skip it,
gaining root via schedule.runManually.
 
Extract assertHostScheduleAccess into the schedule service and call it before
the service-access branch in create/update/delete/runManually so the host-level
authorization always applies.

Editor assessment

This commit patches CVE-2026-72886. The subject explains the policy precisely, enforcing an owner and admin gate on host schedules regardless of service link. The body lays out the flaw: host-level schedules run their script as root, the gate sat only in the no-service branch, so a member could attach an accessible applicationId to a dokploy-server schedule and bypass it, gaining root through runManually. It then describes extracting assertHostScheduleAccess and calling it before the service-access branch in create, update, delete and runManually. Tight reasoning, though it never says how the bypass was reproduced.

Browse categories

More fix examples · Back to search