Skip to content

SendDock v0.8.3 — Production hardening

Latest

Choose a tag to compare

@JuansesDev JuansesDev released this 28 Sep 05:25
· 1 commit to main since this release
a701adc

SendDock v0.8.3 — Production hardening

Three security fixes, the defects behind a broken cloud login, and the documentation corrections that came out of checking every guide against the code.

Security

  • Headers could be injected through the subject. Subscriber-supplied text reaches the subject, and a line break in it added headers of the attacker's choosing — a Bcc, for example — to the message SendDock sent. Carriage returns and line feeds are now stripped from every value that lands in a header: subject, sender name, recipient and unsubscribe URL.
  • Certificates are verified on outgoing SMTP, for implicit TLS and STARTTLS. A relay serving a self-signed or expired certificate keeps working per project under Project → SMTP → Allow insecure TLS, and the failure message names that setting.
  • A webhook's signing secret can no longer be read back. It came out on every list, fetch and pause, and reading webhooks needs no capability — so a read-only viewer could sign deliveries of its own. It is returned by the creation response only.
  • The source-build compose no longer starts on a published Postgres password. It refuses to come up and names the missing variable.

Fixed

  • A restart no longer re-sends a broadcast another instance is delivering. Startup recovery reset every job in sending regardless of who owned it, so starting or rolling one instance re-queued work in flight and those recipients received the same email twice. A claimed job now carries the worker's id and a lease, and recovery only reclaims expired leases.
  • Registration is transactional. A failure on the second write used to leave an account nobody could see or sign into, holding an email that could never be registered again — the same shape sat in workspace creation and in adding a member.
  • A log row no longer claims the send succeeded before it did, which the stats endpoint counted. Rows start as pending and settle to sent once the relay accepts.
  • Date rules no longer break a segment. greater than and less than compiled a date field to a numeric cast, so a rule that saved without complaint failed when it ran. A value that cannot be ordered is refused while saving.
  • Demoting the last workspace owner no longer leaves the workspace ownerless, and the member role — which the API accepted but the database never allowed — is gone.
  • Email confirmation signs in the right device, on the Pro side: the link approves the pending login instead of starting a session on whichever device opened it.
  • Two editor fixes that missed the 0.8.2 image are in this one.

Docs

The API reference and the guides were checked against the handlers, the queries and the schema. Invented status codes, fields, lifetimes and defaults the code does not have were corrected, and three older changelog entries that stated behaviour this release proves false now point at 0.8.3 instead of reading as current.

Verified against the published image

A fresh instance came up on an empty database with every migration applied, then sent a real broadcast with a CRLF injection attempt in the subject: the break was stripped, no header was added, and each recipient received exactly one message marked sent.