Summary
The Super Forms – Drag & Drop Form Builder plugin for WordPress allows unauthenticated arbitrary file uploads through its submit_form AJAX handler.
Because file types are not validated and nonce creation is exposed to unauthenticated users, attackers can upload executable files, leading to potential remote code execution on the WordPress host.
Affected context
This vulnerability occurs in WordPress sites that have the Super Forms – Drag & Drop Form Builder plugin enabled and expose its nopriv AJAX endpoints to the public.
It manifests when the submit_form handler accepts file uploads without enforcing strict type and capability checks, and when nonce generation is available to unauthenticated visitors.
In such deployments, uploaded files may be stored in web-accessible locations where the server will interpret certain file types as executable code.
Exploit preconditions
- Attack surface: Public-facing WordPress AJAX endpoints tied to the Super Forms plugin
- Required access: No authentication required; any external visitor can interact with nopriv actions
- Trigger point: Invoking the submit_form function with a crafted file upload after obtaining a valid sf_nonce and session cookie
- Why exploitation is possible: The submit_form handler lacks capability checks and robust file type validation, while the super_create_nonce action allows arbitrary nonce and session creation, effectively removing meaningful access control barriers
Why this happens
The underlying bug aligns with CWE-434: Unrestricted Upload of File with Dangerous Type.
The plugin's submit_form function accepts user-supplied files without rigorously validating MIME type, extension, or content, and does not enforce permissions on its nopriv AJAX handler.
Additionally, nonce generation is exposed via another unauthenticated endpoint, meaning the nominal protection mechanism can be trivially satisfied by any visitor.
This combination of weak input controls and missing authorization checks creates a pattern where untrusted clients can place potentially executable files into locations processed by the server.
Potential impact
- Upload and execution of arbitrary server-side code
- Full compromise of the WordPress site and its database
- Use of the compromised site for malware hosting or phishing
- Lateral movement within the hosting environment, depending on server configuration
- Defacement, data theft, or destruction of site content
General mitigation guidance
Effective mitigation focuses on tightening upload and authorization patterns rather than relying on ad hoc checks.
Common defensive approaches include:
- Enforcing strict server-side validation of file extensions, MIME types, and content, allowing only a minimal set of benign formats
- Storing uploaded files in non-executable directories and disabling script execution in upload paths at the web server level
- Requiring capability checks and robust access control for all file-handling AJAX endpoints, especially those marked as nopriv
- Treating nonces and similar tokens as supplementary protections, not primary access control mechanisms, and ensuring they cannot be minted by unauthenticated users
- Applying least-privilege principles to file system and PHP execution permissions to limit the blast radius of any misconfigured upload feature
How teams detect issues like this
Detection typically combines code-centric and operational approaches:
- Static analysis rules that flag upload handlers lacking capability checks, file type validation, and safe storage paths
- Code review practices that scrutinize nopriv AJAX actions, nonce generation endpoints, and any direct use of user-supplied file names or paths
- Runtime monitoring for unexpected executable files appearing in upload directories or unusual requests to newly created files
- Web application firewall policies that inspect multipart/form-data requests and block uploads of dangerous file types
- Periodic security scanning of plugins and custom code to identify unrestricted file upload patterns

