CVE-2024-13322

7.5 HIGH

📋 TL;DR

This SQL injection vulnerability in the Ads Pro WordPress plugin allows unauthenticated attackers to inject malicious SQL queries through the 'a_id' parameter. Attackers can extract sensitive information from the database, including user credentials and other confidential data. All WordPress sites using this plugin up to version 4.88 are affected.

💻 Affected Systems

Products:
  • Ads Pro Plugin - Multi-Purpose WordPress Advertising Manager
Versions: All versions up to and including 4.88
Operating Systems: All platforms running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: All WordPress installations with vulnerable plugin versions are affected regardless of configuration.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to credential theft, data exfiltration, privilege escalation, and potential site takeover.

🟠

Likely Case

Extraction of sensitive data including user credentials, personal information, and plugin-specific advertising data.

🟢

If Mitigated

Limited impact with proper input validation and query parameterization preventing successful exploitation.

🌐 Internet-Facing: HIGH
🏢 Internal Only: LOW

🎯 Exploit Status

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

SQL injection via GET/POST parameters is well-understood and easily weaponized by attackers.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 4.89 or later

Vendor Advisory: https://codecanyon.net/item/ads-pro-plugin-multipurpose-wordpress-advertising-manager/10275010

Restart Required: No

Instructions:

1. Log into WordPress admin panel
2. Navigate to Plugins > Installed Plugins
3. Find 'Ads Pro Plugin'
4. Click 'Update Now' if update is available
5. If no update appears, manually download version 4.89+ from CodeCanyon
6. Deactivate old plugin, upload new version via FTP, then activate

🔧 Temporary Workarounds

Temporary Plugin Deactivation

all

Disable the vulnerable plugin until patched

wp plugin deactivate ads-pro-plugin

Web Application Firewall Rule

all

Block SQL injection patterns targeting the a_id parameter

ModSecurity rule: SecRule ARGS:a_id "@detectSQLi" "id:1001,phase:2,deny"

🧯 If You Can't Patch

  • Implement strict input validation for all a_id parameters
  • Deploy a web application firewall with SQL injection protection rules

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel > Plugins > Installed Plugins for Ads Pro Plugin version 4.88 or earlier

Check Version:

wp plugin list --name='Ads Pro Plugin' --field=version

Verify Fix Applied:

Verify plugin version is 4.89 or higher in WordPress admin panel

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL error messages in WordPress logs
  • Multiple requests with SQL-like patterns in a_id parameter
  • Database connection errors from plugin files

Network Indicators:

  • HTTP requests containing SQL keywords in a_id parameter
  • Unusual database query patterns from web server

SIEM Query:

source="wordpress.log" AND ("SQL syntax" OR "a_id=" AND (SELECT OR UNION OR INSERT OR DELETE))

🔗 References

📤 Share & Export