CVE-2022-1206

7.2 HIGH

📋 TL;DR

This vulnerability allows authenticated attackers with administrator-level WordPress access to upload arbitrary files with double extensions, potentially leading to remote code execution. It affects all versions of the AdRotate Banner Manager plugin up to 5.13.2. Only WordPress sites with this specific plugin installed and configured to execute the first file extension are vulnerable.

💻 Affected Systems

Products:
  • AdRotate Banner Manager WordPress plugin
Versions: All versions up to and including 5.13.2
Operating Systems: All operating systems running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires administrator-level WordPress access and server configuration that executes files based on first extension in double extensions.

⚠️ Manual Verification Required

This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.

Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).

🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. Consider updating to the latest version as a precaution

⚠️ Risk & Real-World Impact

🔴

Worst Case

Full server compromise through remote code execution, allowing attackers to install backdoors, steal data, or pivot to other systems.

🟠

Likely Case

File upload leading to webshell deployment, limited to the web server's permissions and directory structure.

🟢

If Mitigated

Unauthorized file upload detected and blocked by security controls, with no execution possible.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

Exploitation requires administrator credentials but is technically simple once access is obtained.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 5.13.3 or later

Vendor Advisory: https://plugins.trac.wordpress.org/browser/adrotate/trunk/adrotate-admin-manage.php#L418

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find AdRotate Banner Manager. 4. Click 'Update Now' if available, or manually update to version 5.13.3+. 5. Verify update completes successfully.

🔧 Temporary Workarounds

Disable plugin

all

Temporarily deactivate the AdRotate Banner Manager plugin until patched

wp plugin deactivate adrotate

Restrict file uploads

linux

Configure web server to block execution of uploaded files in wp-content/uploads directory

# Apache: Add to .htaccess in uploads directory
<FilesMatch "\.(php|php3|php4|php5|phtml|pl|py|jsp|asp|htm|html|shtml|sh|cgi)$">
  Order Allow,Deny
  Deny from all
</FilesMatch>
# Nginx: Add to server block
location ~* ^/wp-content/uploads/.*\.(php|php3|php4|php5|phtml|pl|py|jsp|asp|htm|html|shtml|sh|cgi)$ {
  deny all;
}

🧯 If You Can't Patch

  • Remove administrator access from untrusted users
  • Implement web application firewall rules to block double extension file uploads

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel > Plugins > Installed Plugins for AdRotate Banner Manager version 5.13.2 or lower

Check Version:

wp plugin get adrotate --field=version

Verify Fix Applied:

Confirm plugin version is 5.13.3 or higher in WordPress admin panel

📡 Detection & Monitoring

Log Indicators:

  • File uploads to wp-content/uploads/ with double extensions like .php.jpg
  • POST requests to /wp-admin/admin-ajax.php with action=adrotate_insert_media

Network Indicators:

  • Unusual file upload patterns to WordPress admin endpoints
  • HTTP requests with Content-Type: multipart/form-data containing suspicious filenames

SIEM Query:

source="web_server_logs" AND (uri_path="/wp-admin/admin-ajax.php" AND parameters CONTAINS "adrotate_insert_media") AND (filename MATCHES "*.*.*")

🔗 References

📤 Share & Export