Skip to content

0.17.8

Latest

Choose a tag to compare

@ryanbekhen ryanbekhen released this 03 Nov 03:41
e494262

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_ORIGINS now means same-origin only (previously: any origin).
  • Requests marked Sec-Fetch-Site: cross-site are always rejected.
  • Docker examples now publish the admin port on loopback only (-p 127.0.0.1:9090:9090).

Changelog

Bug fixes

  • e494262 fix(admin): require setup token and same-origin check for first-run setup (#103)