GHSA-v3f3-cmj4-cvj9
Formie: Integration form-settings action allows SSRF and exfiltration of stored integration credentials
Quick fix
GHSA-v3f3-cmj4-cvj9 — verbb/formie: upgrade to the fixed version with the command below.
composer require verbb/formie:^3.1.31Details
### Impact
The control panel action `formie/integrations/form-settings` (`IntegrationsController::actionFormSettings`) was reachable by any authenticated user without the appropriate form integration permissions. The action applied request-supplied settings to a fully configured integration via `setAttributes($settings, false)`, allowing an attacker to overwrite outbound host properties (e.g. `apiUrl`) while the server sent stored API keys or OAuth tokens to the attacker-controlled host. The remote response was returned in the JSON body (non-blind SSRF).
This is an incomplete remediation of [GHSA-cvpc-hccg-wmw4](https://github.com/advisories?query=GHSA-cvpc-hccg-wmw4). The `form-settings` action was excluded from the permission gate added in 3.1.28.
Any site where a low-privileged user can authenticate (including front-end members on sites with public registration) could exfiltrate CRM/email-marketing/webhook integration credentials and probe internal network endpoints.
### Patches
Fixed in **3.1.31** (Craft 5) and **2.2.23** (Craft 4).
The action now requires a CP request, a valid `formId`, and form integration permissions (`formie-showFormIntegrations` / per-form variant on Craft 5; `formie-manageFormIntegrations` / per-form variant on Craft 4). Request settings are filtered to an allowlist; URL, host, and credential properties cannot be overridden from user input.
### Workarounds
Restrict front-end user registration and limit CP access until upgraded. No configuration-only workaround fully mitigates the issue.
- Reported by Jorge González (jorge@jmilla.es)
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://github.com/verbb/formie/security/advisories/GHSA-v3f3-cmj4-cvj9[WEB]
- https://github.com/verbb/formie/commit/6735fe4ae8f6a2a76930716ad7876b236f7c530d[WEB]
- https://github.com/verbb/formie/commit/dde7799dfa7e4d0a11e28754ad8544dba62d5def[WEB]
- https://github.com/advisories/GHSA-cvpc-hccg-wmw4[ADVISORY]
- https://github.com/verbb/formie[PACKAGE]
- https://github.com/verbb/formie/releases/tag/2.2.23[WEB]
- https://github.com/verbb/formie/releases/tag/3.1.31[WEB]