CVE-2025-4571
Executive Summary
CVE-2025-4571 is a critical authorization bypass vulnerability in the GiveWP – Donation Plugin and Fundraising Platform for WordPress, affecting all versions up to and including 4.3.0. The flaw resides in the permissionsCheck functions, which fail to enforce proper capability checks. This allows authenticated attackers with at least Contributor-level access to view or delete fundraising campaigns, access sensitive donor data, and modify campaign events without authorization. The vulnerability has a CVSS score of 5.4 (Medium), but its impact on data confidentiality and integrity is significant for organizations relying on GiveWP for fundraising.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
WordPress Ecosystem Context
This vulnerability is specific to the WordPress plugin ecosystem. The GiveWP plugin is a widely used donation and fundraising platform. The insufficient capability check in the permissionsCheck functions means that any authenticated user with Contributor-level access (a low-privilege role) can perform actions that should be restricted to administrators or campaign managers. This can lead to unauthorized data exposure, campaign manipulation, and potential financial fraud.
CVSS Breakdown & Threat Level
- Attack Vector (AV): Network (N) – The vulnerability is exploitable remotely.
- Attack Complexity (AC): Low (L) – No special conditions are required.
- Privileges Required (PR): Low (L) – Attacker needs Contributor-level access.
- User Interaction (UI): None (N) – No user action is required.
- Scope (S): Unchanged (U) – The vulnerable component and the impacted component are the same.
- Confidentiality (C): Low (L) – Limited unauthorized data access (e.g., donor names, campaign details).
- Integrity (I): Low (L) – Limited unauthorized modification (e.g., campaign events).
- Availability (A): None (N) – No impact on system availability.
Threat Level: Medium. While the CVSS score is 5.4, the potential for data leakage and campaign manipulation in a fundraising context elevates the risk for non-profit and charitable organizations.
Deep Dive & Mechanics
The vulnerability is rooted in the permissionsCheck functions within the GiveWP plugin. These functions are intended to verify that the current user has the necessary capabilities (e.g., manage_options, edit_give_payments) before allowing access to sensitive data or actions. However, due to an insufficient capability check, the functions incorrectly grant access to users with only Contributor-level privileges.
Technical Flow:
- An authenticated user with Contributor role sends a request to a GiveWP REST API endpoint or admin-ajax action.
- The plugin calls
permissionsCheck()to verify the user's capabilities. - Due to a flawed logic (e.g., using
current_user_can('edit_posts')instead of a more restrictive capability likemanage_give_settings), the check passes for Contributor-level users. - The user is then able to view, delete, or modify campaigns, donor data, and events.
Root Cause: The permissionsCheck function likely uses a generic capability check that is too permissive. For example, it might check for edit_posts (which Contributors have) instead of a custom capability like view_give_sensitive_data.
Vulnerable vs. Patched Code
Since no official patch is available, the following is a hypothetical comparison based on common fixes for such vulnerabilities.
Vulnerable Code (hypothetical):
function permissionsCheck() {
if ( ! current_user_can( 'edit_posts' ) ) {
wp_die( 'Unauthorized' );
}
return true;
}
Patched Code (hypothetical):
function permissionsCheck() {
if ( ! current_user_can( 'manage_give_settings' ) && ! current_user_can( 'view_give_sensitive_data' ) ) {
wp_die( 'Unauthorized' );
}
return true;
}
The patched version uses more restrictive capabilities that are typically only assigned to administrators or campaign managers.
Exploitation & Lab Setup
Red Team (Exploitation)
Prerequisites:
- A WordPress site with GiveWP plugin version <= 4.3.0.
- An authenticated user account with Contributor-level access.
Exploitation Steps:
- Log in as a Contributor.
- Identify the vulnerable endpoint. For example, the GiveWP REST API endpoint for campaigns:
/wp-json/give-api/v2/campaigns. - Send a GET request to list all campaigns:
curl -X GET "https://target.com/wp-json/give-api/v2/campaigns" \ -H "Cookie: wordpress_logged_in_<hash>=<session_cookie>" - To delete a campaign, send a DELETE request:
curl -X DELETE "https://target.com/wp-json/give-api/v2/campaigns/123" \ -H "Cookie: wordpress_logged_in_<hash>=<session_cookie>" - To view donor data, access the donors endpoint:
curl -X GET "https://target.com/wp-json/give-api/v2/donors" \ -H "Cookie: wordpress_logged_in_<hash>=<session_cookie>"
Expected Outcome: The attacker can view, delete, or modify campaigns and donor data without proper authorization.
Blue Team (Detection & Defense)
Detection:
- Monitor for unusual API requests from low-privilege users (Contributors) to sensitive GiveWP endpoints.
- Look for spikes in DELETE or PUT requests to campaign or donor endpoints.
- Alert on any Contributor user accessing the
/wp-json/give-api/v2/donorsendpoint.
Defense:
- Immediately restrict Contributor users from accessing GiveWP admin pages via custom role management.
- Implement a Web Application Firewall (WAF) rule to block requests to GiveWP API endpoints from non-admin users.
- Apply the principle of least privilege: ensure only administrators have access to sensitive GiveWP functions.
Indicators of Compromise (IOCs)
- Network IOCs:
- HTTP requests to
/wp-json/give-api/v2/campaignsor/wp-json/give-api/v2/donorsfrom a user with rolecontributor. - Unusual DELETE or PUT requests to GiveWP endpoints from low-privilege users.
- HTTP requests to
- System IOCs:
- WordPress user logs showing a Contributor performing actions like
give_campaign_deleteorgive_donor_view. - Unexpected changes to campaign data or donor records.
- WordPress user logs showing a Contributor performing actions like
- File IOCs:
- Modified GiveWP plugin files (e.g.,
includes/admin/class-give-permissions.php) if an attacker attempts to patch the vulnerability themselves.
- Modified GiveWP plugin files (e.g.,
Detection Engineering
YARA Rule
rule CVE_2025_4571_GiveWP_Permissions_Check {
meta:
description = "Detects vulnerable GiveWP plugin files with insufficient capability checks"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-4571"
strings:
$vuln_func = "permissionsCheck"
$weak_check = "current_user_can( 'edit_posts' )"
$weak_check2 = "current_user_can( 'edit_pages' )"
condition:
$vuln_func and ($weak_check or $weak_check2)
}
Sigma Rule
title: CVE-2025-4571 - GiveWP Unauthorized Access via Contributor
id: 8a9b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
status: experimental
description: Detects Contributor-level users accessing GiveWP sensitive API endpoints
author: Valters IT
date: 2025-04-10
logsource:
category: web
product: wordpress
detection:
selection:
http.url|contains:
- '/wp-json/give-api/v2/campaigns'
- '/wp-json/give-api/v2/donors'
http.method:
- 'GET'
- 'DELETE'
- 'PUT'
user.role: 'contributor'
condition: selection
falsepositives:
- Legitimate Contributor access if plugin is misconfigured
level: high
Suricata Rule
alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"CVE-2025-4571 - GiveWP Unauthorized Access by Contributor";
flow:to_server,established;
content:"/wp-json/give-api/v2/"; http_uri;
content:"campaigns" or content:"donors"; http_uri;
pcre:"/Cookie:.*wordpress_logged_in/";
classtype:attempted-recon;
sid:1000001;
rev:1;
)
Remediation & Mitigation
Immediate Actions:
- Disable the GiveWP plugin until a patch is available, or restrict access to the plugin's admin pages using a security plugin (e.g., Wordfence).
- Review user roles and demote any Contributor users who do not require access to GiveWP.
- Implement a custom capability check by modifying the plugin's
permissionsCheckfunction (if you have development resources) to requiremanage_optionsor a custom capability.
Long-term Fix:
- Monitor the GiveWP plugin's official repository for a patched version (likely 4.3.1 or higher).
- Apply the patch as soon as it is released.
- Conduct a security audit of all WordPress plugins to ensure proper capability checks.
Workaround:
- Use a WordPress security plugin to block API access to GiveWP endpoints for non-admin users.
- Implement a reverse proxy rule to restrict access to
/wp-json/give-api/v2/based on user role.
Valters IT
Securing WordPress Ecosystems, One CVE at a Time.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.