Repository navigation
Security patch release. It closes a set of authorization and data-exposure
issues found in a vulnerability review of v0.13.2. Upgrading is recommended
for every deployment, especially those with OAuth/SAML sign-in or
API-defined automation enabled.
🔐 Security
- OAuth / SAML tenant takeover.
/oauth/authorizeaccepted a
caller-chosenstateand an unauthenticated account name, and the callback
created first-time identities in that account with theadminrole. SAML
did the same through an unsignedRelayState. The OAuth state is now always
server-generated, SAML flow context is stored server-side behind an opaque,
single-use, 10-minute token, and new users joining an existing account get
theuserrole. Joining requires the account to have its own enabled
configuration for the provider; otherwise the callback returns 403 and
membership comes from an invitation. - Function admin-token leak.
SNACKBASE_URLfor functions is now taken
from the operator-configuredexternal_url, never from the requestHost
header, so the minted admin token cannot be sent to an attacker's origin. ?expand=bypassed view rules. Expanded references now enforce the
target collection's view rule,allowed_fields, encrypted-field redaction
and PII masking. A reference the caller cannot view expands tonull.- Automation control plane gated. Hooks, custom endpoints, webhooks and
workflows (and their execution/delivery history) now require an account
admin or superadmin instead of any authenticated member. - Automation data exposure. Record-event hooks and outbound webhooks now
run on the record as their author could read it, and are skipped when the
author cannot view it. Webhook delivery history is projected through the
requesting user's view access.aggregate_recordsendpoint actions apply
the caller's list rule. - SSRF. The
send_webhookaction now uses the same address validation,
connection pinning and no-redirect policy as first-party webhook delivery. enqueue_jobrestricted. Automation can only enqueue handlers
explicitly registered for it (scheduled_task), preventing use of internal
handlers such aswebhook_delivery,send_emailandworkflow_resume.
⚠ Upgrade notes
- No new Alembic revisions.
pip install --upgrade snackbase==0.13.3, or pull
ghcr.io/lalitgehani/snackbase:0.13.3. - Behaviour changes: the
statefield is removed from the OAuth authorize
request; first-time OAuth/SAML users joining an existing account are no
longer admins; non-admin members can no longer manage hooks, endpoints,
webhooks or workflows.