Skip to content

Permissions & Security

Account is built with strict separation between ProcessWire administrative editors and public frontend members.

Permission Scope
account-admin Full access to Setup -> Account (Overview, Members, Sessions, Passkeys & MFA, Invitations, OAuth Providers, Identities, Consents, Audit Log, Notification Templates, Delivery Log, In-App Inbox, and Settings).

Every public authentication and self-service action passes through AccountGuard:

  1. No superuser or guest Front-Door Login: Frontend sign-in, password reset, Magic Link, and OAuth flows refuse superuser and guest accounts so administrative credentials cannot be targeted through public forms.
  2. Role Allowlist (allowedRoles): Restricts which ProcessWire roles may authenticate through /auth/* and /account/*.
  3. Numeric-ID Lookup Guard: Rejects ctype_digit() strings when resolving users by name or handle, preventing ProcessWire’s $users->get('41') numeric-ID coercion trap.
  4. Safe Redirects (sanitizeRedirectPath): Strips external hosts, protocol-relative URLs (//evil.example), and control characters from post-login and post-logout redirect parameters.
  5. Demo Mode Protection: Returns HTTP 403 on sensitive state-changing actions when $config->demo === true.
  • WireHttpTransport: Validates outbound notification webhook targets against private, loopback, and link-local IP ranges before sending requests, and signs every payload with an HMAC X-Account-Signature header.
  • SecretRedactor & FieldSensitivityPolicy: Strips passwords, TOTP secrets, OAuth tokens, and webhook signing keys from audit payloads, debug logs, and GDPR privacy exports.
Security-critical events are persisted to the locked account-audit collection with masked IP addresses.

Next steps