Overview
The popular WordPress Ads Pro Plugin, used for ad management, has been found to contain a time-based SQL injection vulnerability. This vulnerability, identified as CVE-2025-5339, affects all versions up to and including 4.89. Unauthenticated attackers can exploit this vulnerability to potentially gain unauthorized access to sensitive data on the database, leading to system compromise or data leakage.
Vulnerability Summary
CVE ID: CVE-2025-5339
Severity: High (7.5 CVSS)
Attack Vector: Web-based
Privileges Required: None
User Interaction: None
Impact: Unauthorized access to sensitive data, potential system compromise
Affected Products
Escape the Surveillance Era
Most apps won’t tell you the truth.
They’re part of the problem.
Phone numbers. Emails. Profiles. Logs.
It’s all fuel for surveillance.
Ameeba Chat gives you a way out.
- • No phone number
- • No email
- • No personal info
- • Anonymous aliases
- • End-to-end encrypted
Chat without a trace.
Product | Affected Versions
Ads Pro Plugin – Multi-Purpose WordPress Advertising Manager | Up to and including 4.89
How the Exploit Works
The vulnerability exists due to insufficient escaping of the ‘bsa_pro_id’ parameter and lack of adequate preparation on the existing SQL query. An unauthenticated attacker can append additional SQL queries into existing queries. By exploiting this vulnerability, an attacker can manipulate SQL queries to extract sensitive information from the database.
Conceptual Example Code
The following is a conceptual example of how the vulnerability might be exploited. This is a sample HTTP GET request, where an attacker appends a malicious SQL query to the ‘bsa_pro_id’ parameter.
GET /wp-content/plugins/ads-pro/?bsa_pro_id=1' OR '1'='1'; -- HTTP/1.1
Host: target.example.com
The above request triggers the SQL injection vulnerability, potentially returning sensitive information from the database.
Mitigation Guidance
It is recommended to apply the vendor patch as soon as it is available. Until then, using a Web Application Firewall (WAF) or Intrusion Detection System (IDS) could serve as temporary mitigation. Ensure that these security systems are configured correctly to detect and prevent SQL injection attacks.

