Skip to content

v1.1.3

Latest

Choose a tag to compare

@giovantenne giovantenne released this 30 Nov 06:50
· 7 commits to master since this release
fc8be24

Security: access tokens no longer appear in the logs (#123)

Before this release, the secret token of every link LastSignal sends by email (login, check-in, invite, delivery, trusted contact) was written to the application log in two places: in the line that records the mail job, and in the request line when the link was opened. Anyone able to read the server logs could use a token that was still valid.

In this release:

  • mail jobs are logged without their arguments
  • request lines show [FILTERED] in place of the token
  • finished jobs are deleted from the queue database right away
  • the built-in proxy's request log is off by default (LOG_REQUESTS=true turns it back on)

Severity is medium: it requires read access to the logs of your instance. Details in the advisory GHSA-cj63-9fpv-v86q. Thanks to @Niswarth05 for the private report.

What to do

  • Upgrade.
  • If you ship logs to an external service, or have pasted them somewhere, treat any login, invite or delivery link that appears in them as exposed. Login links expire after 15 minutes; an invite that has not been accepted yet can be resent from the recipients page, which replaces its link.
  • Your own reverse proxy (nginx, Caddy, Traefik, kamal-proxy) may log full URLs too. See Logs and access links.

Upgrading

With the prebuilt image: docker compose -f docker-compose.prod.yaml pull && docker compose -f docker-compose.prod.yaml up -d. No migrations in this release. See the compose guide.