mirror of
https://github.com/tailscale/tailscale.git
synced 2026-09-22 11:35:12 -04:00
The update/install localapi handler had no PermitWrite check, so any local user who could reach the localapi socket could make the root daemon self-update and restart itself. This has been the case since the endpoint was added in November 2023. Gate the handler behind PermitWrite so that only root or the operator user can trigger a self-update, matching the other mutating handlers. Updates tailscale/corp#48187 Change-Id: Iadfef939f5dab684652cd220e77de63b54bfca2f Reported-by: Ben Carman <benthecarman@live.com> Signed-off-by: Patrick O'Doherty <patrick@tailscale.com>