Skip to content

Permissions & Security

Forms enforces defense-in-depth across admin authoring, submission triage, public embeds, file uploads, and outbound webhooks.

Permission Scope
forms-admin Create, edit, import/export, and configure form definitions, Visual Builder, stencils, templates, labels, A/B tests, and global settings.
forms-submissions View, triage (Table/Kanban), download attachments, and export form submissions (also respects $entries->can($blueprint, 'export')).

In addition to global permissions, FormsAccessPolicy enforces per-form role allowlists (allowed_view_roles, allowed_manage_roles), superuser-gated forms-builder-profiles, and strict authorization for raw html_block builder fields.

  • CSRF & Guest Embeds: Standard submissions enforce ProcessWire $session->CSRF->validate(); cross-site embeds use stateless single-use _forms_csrf tokens from /_forms/token/* backed by forms_nonces.
  • Encryption & Redaction: FieldValueCipher seals marked fields with enc:forms:v1:... at rest, FormSecretMasker masks webhook secrets and passwords (••••••••), and SubmissionExporter strips password columns from exports.
  • Upload Validation: StagedUploadStore and UploadedFileValidator verify realpath() containment, MIME types, double extensions, file size limits, and all installed FileValidatorModule scanners, plus .htaccess protection (ensureProtectiveHtaccess()).
  • SSRF & Open Redirect Defense: WebhookUrlPolicy + WireHttpWebhookTransport block private/loopback/reserved IPs and pin DNS via CURLOPT_RESOLVE; RedirectUrlBuilder prevents Open Redirects and sanitizes interpolated query parameters.
  • Demo Mode ($config->demo): Blocks state-changing mutations across ProcessForms, InputfieldForms, FrontendForm, Headless endpoints, and Ai tools.
Configure global spam thresholds, CAPTCHA providers, tracked UTM parameters, and failure alert emails under Setup -> Forms -> Settings.

Next steps