Repository navigation
Security
Fixes GHSA-q797-rfq6-2cgc (High): an unauthenticated first-run admin takeover. On a fresh instance with ADMIN_ALLOWED_ORIGINS unset, anyone who could reach the admin port, or any web page the operator visited, could create the initial admin account.
All users on <= 0.17.7 should upgrade.
Thanks to @eliteaja11-dev for the report and the detailed proof of concept.
Breaking change
/admin/setup now requires a one-time setup token, which is printed to the server log at startup while no admin account exists (for Docker: docker logs <container>). Automation that POSTs to /admin/setup must include the setup_token field.
Other changes:
- An empty
ADMIN_ALLOWED_ORIGINSnow means same-origin only (previously: any origin). - Requests marked
Sec-Fetch-Site: cross-siteare always rejected. - Docker examples now publish the admin port on loopback only (
-p 127.0.0.1:9090:9090).