Paid Membership Plugin, Ecommerce, User Registration Form, Login Form, User Profile & Restrict Content – ProfilePress <= 4.16.13 - Authenticated (Subscriber+) Stored Cross-Site Scripting
Description
The Paid Membership Plugin, Ecommerce, User Registration Form, Login Form, User Profile & Restrict Content – ProfilePress plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions up to, and including, 4.16.13 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 Vector Breakdown
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:NTechnical Details
<=4.16.13What Changed in the Fix
Changes introduced in v4.16.14
Source Code
WordPress.org SVN# CVE-2026-41556 - ProfilePress Stored XSS Research Plan ## 1. Vulnerability Summary The **ProfilePress** plugin (formerly WP User Avatar) is vulnerable to **Authenticated (Subscriber+) Stored Cross-Site Scripting** in versions up to 4.16.13. The vulnerability exists because the plugin fails to san…
Show full research plan
CVE-2026-41556 - ProfilePress Stored XSS Research Plan
1. Vulnerability Summary
The ProfilePress plugin (formerly WP User Avatar) is vulnerable to Authenticated (Subscriber+) Stored Cross-Site Scripting in versions up to 4.16.13. The vulnerability exists because the plugin fails to sanitize or escape user-controlled profile data (specifically fields associated with a "Customer" entity) before rendering it in the administrative dashboard's "Customer Details" metabox.
An attacker with Subscriber-level access can update their own profile information with a malicious payload. When an administrator views that user's record in the ProfilePress "Customers" menu, the script executes in the admin context, potentially allowing for full site compromise.
2. Attack Vector Analysis
- Vulnerable Endpoint: The "Customer Details" metabox in the WordPress admin area.
- URL:
wp-admin/admin.php?page=ppress-membership-customers&view-customer=[ID] - Input Source: User Profile fields (e.g., First Name, Last Name, or Billing Address fields) updated via the ProfilePress "Edit Profile" or "My Account" forms.
- Authentication Level: Subscriber (or any role capable of editing their own profile information).
- Vulnerable Sink:
src/Admin/SettingsPages/Membership/views/customers/data-metabox.php.
3. Code Flow
- Source: A Subscriber submits an "Edit Profile" form. The data is saved to user meta (e.g.,
first_name,last_name,billing_first_name). - Retrieval: When an admin views the customer,
ProfilePress\Core\Membership\Models\Customer\CustomerFactory(inferred) creates aCustomerEntityobject for that user. - Sink: The file
src/Admin/SettingsPages/Membership/views/customers/data-metabox.phprenders the data:- Line ~36:
<span class="customer-name"><?php echo $customer_data->get_name() ?></span> - Line ~101 (Billing Section):
printf('<strong>%s</strong>: %s', esc_html($field['label']), $detail);
- Line ~36:
- Failure:
$customer_data->get_name()is echoed directly withoutesc_html(). While$detailin the billing section useswp_kses_post(),wp_kses_postallows tags like<img>and<a>which can be used for XSS (e.g., viaonerrorif not properly stripped or viajavascript:protocols).
4. Nonce Acquisition Strategy
To update the profile, a Subscriber needs to interact with the ProfilePress "My Account" page.
- Shortcode Page: Create a page with the
[profilepress-my-account]shortcode. - Navigation: Use
browser_navigateto visit the page as the Subscriber. - Extraction:
- The "Edit Profile" form typically contains a
_wpnoncefield. - Alternatively, ProfilePress often localizes script data. Check for
ppress_frontend_scriptor similar variables. - Target Variable:
window.ppressFrontendConfig?.nonceor a hidden input named_wpnonceinside the form with IDppress-edit-profile-form.
- The "Edit Profile" form typically contains a
5. Exploitation Strategy
- Setup Subscriber: Create a Subscriber-level user.
- Setup My Account: Create a page with the shortcode
[profilepress-my-account]. - Capture Nonce: Navigate to the My Account page as Subscriber and extract the
_wpnoncefrom the Account Details/Edit Profile form. - Inject Payload: Send a
POSTrequest to update the profile.- Action:
pp_edit_profile_action(Inferred from common ProfilePress profile update handlers). - Target Parameter:
first_nameorbilling_first_name. - Payload: `
- Action:
Check if your site is affected.
Run a free security audit to detect vulnerable plugins, outdated versions, and misconfigurations.