CVE-2026-120522: Cloud Storage Manager plugin for WordPress arbitrary file write via path traversal in Google Drive downloads
The Cloud Storage Manager for Fluent Forms plugin (versions up to 1.2.0) lacks authorization checks on REST endpoints and fails to validate file paths when downloading files from Google Drive. Unauthenticated attackers can register malicious Google Drive credentials and trigger downloads w
Cloud Storage Manager for Fluent Forms is a WordPress plugin that integrates cloud storage providers (Google Drive, Dropbox, OneDrive, S3) with Fluent Forms for file uploads and downloads. Two authorization and validation gaps create an arbitrary file write vulnerability: (1) the REST endpoints `connection/{driver}/save` and `/download/single-file` do not verify user permissions, and (2) the Google Drive `downloadFile()` function concatenates the provider-returned filename directly into a local file path without using basename(), sanitize_file_name(), or canonical path validation. An attacker exploits this by storing malicious Google Drive credentials via the unprotected endpoint, then triggering a download where a specially-crafted Google Drive filename (containing ../ path traversal sequences) is written to an arbitrary location on the server.
| CVE | CVE-2026-120522 |
|---|---|
| Severity | Critical (CVSS 9.8) |
| Actively exploited | Not confirmed at time of writing |
How the attack works
An unauthenticated attacker sends an HTTP POST to the `/wp-json/<plugin>/connection/{driver}/save` endpoint with attacker-controlled Google Drive OAuth credentials. Because no authorization check occurs, the plugin stores these credentials. The attacker then crafts a Google Drive file with a filename containing path traversal sequences (e.g., '../../../wp-config.php'). The attacker sends another unauthenticated request to `/download/single-file` specifying this malicious Google Drive file. The plugin's Google Drive `downloadFile()` function retrieves the file and uses the unvalidated filename from Google Drive's metadata to determine the local save path. The concatenation of the path traversal sequence into the local path results in the attacker-controlled file being written outside the intended directory, potentially overwriting sensitive WordPress files.
Who is affected
WordPress installations using Cloud Storage Manager for Fluent Forms – Google Drive, Dropbox, OneDrive, S3 Uploads plugin version 1.2.0 or earlier.
How to check if you're exposed
- Identify installations of Cloud Storage Manager plugin via plugin directory listing or database query for plugin activation
- Check plugin version: navigate to Plugins page or query wp_options for plugin version metadata
- Search WordPress server filesystem for unexpectedly modified or created files in sensitive directories (wp-config.php directory, wp-content root, wp-admin) within the past 30 days
- Search web server logs for POST requests to REST endpoints containing 'connection/' or 'download/single-file' from unauthenticated users or unexpected origins
How to fix it
- Upgrade Cloud Storage Manager to the latest patched version
- Audit the filesystem for any files written outside the intended upload directory; restore from backups if suspicious files are found
- Verify the integrity of critical files: wp-config.php, .htaccess, wp-content/themes, wp-content/plugins
- Rotate all Google Drive, Dropbox, OneDrive, and S3 API credentials and OAuth tokens stored in the plugin
If you can't patch yet
- Disable the Cloud Storage Manager plugin entirely until it can be patched, or restrict REST API access to authenticated users only via .htaccess or web server configuration
- Implement Web Application Firewall (WAF) rules to block unauthenticated POST requests to /wp-json endpoints containing 'connection/' or 'download'
- Monitor for unexpected file creation in parent directories of the uploads folder; set strict file permissions to prevent overwrite of critical WordPress files
Need help checking your exposure or patching at scale? FutureOps InfoTech can help.