Permissions & Security
Account is built with strict separation between ProcessWire administrative editors and public frontend members.
RBAC Permission
Section titled “RBAC Permission”| 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). |
AccountGuard Enforcement
Section titled “AccountGuard Enforcement”Every public authentication and self-service action passes through AccountGuard:
- No
superuserorguestFront-Door Login: Frontend sign-in, password reset, Magic Link, and OAuth flows refusesuperuserandguestaccounts so administrative credentials cannot be targeted through public forms. - Role Allowlist (
allowedRoles): Restricts which ProcessWire roles may authenticate through/auth/*and/account/*. - 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. - Safe Redirects (
sanitizeRedirectPath): Strips external hosts, protocol-relative URLs (//evil.example), and control characters from post-login and post-logout redirect parameters. - Demo Mode Protection: Returns HTTP
403on sensitive state-changing actions when$config->demo === true.
Webhook SSRF Defense & Secret Redaction
Section titled “Webhook SSRF Defense & Secret Redaction”WireHttpTransport: Validates outbound notification webhook targets against private, loopback, and link-local IP ranges before sending requests, and signs every payload with an HMACX-Account-Signatureheader.SecretRedactor&FieldSensitivityPolicy: Strips passwords, TOTP secrets, OAuth tokens, and webhook signing keys from audit payloads, debug logs, and GDPR privacy exports.