☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Elfsight logo [ WEBSITE ] [ VENDOR STATS ]
CVSS: 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N 🐛 CWE-497
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2025-31045

CVE-2025-31045 Information Disclosure in Elfsight
📅 PUBLISHED: 2025-06-09 16:15 UTC 🔄 UPDATED: 2026-08-12 14:52 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.31%
👁️
0.31% probability
7.7× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1083
👁️
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 7.5
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: N User Interaction None
S: U Scope Unchanged
C: H Confidentiality High
I: N Integrity None
A: N Availability None
7.5
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-31045 is a high-severity information disclosure vulnerability affecting the Elfsight Contact Form widget (WordPress plugin) versions up to and including 2.3.1. The flaw allows an unauthenticated attacker to retrieve embedded sensitive data from the server, such as API keys, database credentials, or internal configuration parameters, by exploiting the widget’s improper handling of user-supplied input. The vulnerability is classified under CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) and carries a CVSS v3.1 base score of 7.5 (High). No public exploit code or proof-of-concept is currently available, but the risk is elevated due to the lack of a vendor patch.

⚡ 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 resides in a WordPress plugin ecosystem. The Elfsight Contact Form widget is distributed via the WordPress plugin repository and third-party marketplaces. Users who installed the plugin from unofficial sources may be at higher risk of supply chain compromise. No known malicious packages have been identified, but the absence of a patch increases the attack surface for supply chain attacks targeting WordPress sites.

CVSS Breakdown & Threat Level

  • Attack Vector (AV): Network (N) – Exploitable remotely.
  • Attack Complexity (AC): Low (L) – No special conditions required.
  • Privileges Required (PR): None (N) – No authentication needed.
  • User Interaction (UI): None (N) – No user action required.
  • Scope (S): Unchanged (U) – Exploit does not affect other components.
  • Confidentiality (C): High (H) – Full disclosure of sensitive data.
  • Integrity (I): None (N) – No data modification.
  • Availability (A): None (N) – No denial of service.

Threat Level: High. The vulnerability is trivial to exploit and can lead to complete compromise of the WordPress site if sensitive credentials are exposed.

Deep Dive & Mechanics

The Elfsight Contact Form widget stores sensitive configuration data (e.g., API tokens, SMTP credentials, database connection strings) in a publicly accessible location or exposes them via an unauthenticated REST endpoint. The widget fails to validate or sanitize user input when processing requests to retrieve form settings, allowing an attacker to craft a request that dumps the entire configuration array.

The root cause is a missing capability check in the widget’s AJAX handler or shortcode processing logic. The widget likely uses wp_ajax_nopriv_* hooks without verifying user permissions, or it exposes a REST API endpoint that returns sensitive data without authentication.

Vulnerable vs. Patched Code

Vulnerable Code (<= 2.3.1):

// In elfsight-contact-form.php
add_action('wp_ajax_nopriv_elfsight_get_config', 'elfsight_get_config_callback');
function elfsight_get_config_callback() {
    $config = get_option('elfsight_contact_form_config');
    wp_send_json($config); // No permission check
}

Patched Code (Hypothetical):

add_action('wp_ajax_elfsight_get_config', 'elfsight_get_config_callback');
function elfsight_get_config_callback() {
    if (!current_user_can('manage_options')) {
        wp_die('Unauthorized', 403);
    }
    $config = get_option('elfsight_contact_form_config');
    wp_send_json($config);
}

The patch removes the nopriv hook and adds a capability check to ensure only administrators can access the configuration.

Exploitation & Lab Setup

Red Team (Exploitation)

  1. Reconnaissance: Identify WordPress sites using the Elfsight Contact Form widget (e.g., via Shodan dorks or WPScan).
  2. Craft Request: Send a GET request to the vulnerable endpoint:
    GET /wp-admin/admin-ajax.php?action=elfsight_get_config HTTP/1.1
    Host: target.com
    
  3. Extract Data: The response will contain the full configuration array, including API keys, SMTP credentials, and database passwords.

Example cURL command:

curl -s "http://target.com/wp-admin/admin-ajax.php?action=elfsight_get_config" | jq .

Blue Team (Detection & Response)

  1. Monitor Logs: Look for repeated requests to /wp-admin/admin-ajax.php with action=elfsight_get_config from unknown IPs.
  2. Harden Endpoint: Immediately disable the vulnerable AJAX action by adding a filter:
    add_filter('pre_option_elfsight_contact_form_config', '__return_empty_string');
    
  3. Rotate Credentials: If exposed, rotate all API keys, SMTP passwords, and database credentials.

Indicators of Compromise (IOCs)

  • Network IOCs:
    • HTTP requests to /wp-admin/admin-ajax.php?action=elfsight_get_config
    • Response bodies containing JSON with keys like api_key, smtp_password, db_password
  • File IOCs:
    • Presence of elfsight-contact-form/elfsight-contact-form.php with version <= 2.3.1
  • Log IOCs:
    • Unusual 200 responses to admin-ajax.php from unauthenticated users

Detection Engineering

YARA Rule

rule detect_elfsight_contact_form_vuln {
    meta:
        description = "Detects vulnerable Elfsight Contact Form widget version <= 2.3.1"
        author = "Valters IT"
        date = "2025-04-10"
        cve = "CVE-2025-31045"
    strings:
        $version = "Version: 2.3.1" nocase
        $func = "elfsight_get_config_callback" nocase
    condition:
        $func and $version
}

Sigma Rule

title: Detect Exploitation of CVE-2025-31045
id: 8a7b3c2d-1e4f-5a6b-7c8d-9e0f1a2b3c4d
status: experimental
description: Detects attempts to exploit the Elfsight Contact Form information disclosure vulnerability
author: Valters IT
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'GET'
        c-uri|contains: '/wp-admin/admin-ajax.php'
        cs-uri-query|contains: 'action=elfsight_get_config'
    condition: selection
falsepositives:
    - Legitimate admin requests (rare)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-31045 - Elfsight Contact Form Information Disclosure"; flow:to_server; content:"GET"; http_method; content:"/wp-admin/admin-ajax.php"; http_uri; content:"action=elfsight_get_config"; http_uri; classtype:attempted-recon; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate Action: Disable the Elfsight Contact Form widget until a patch is released.
  2. Workaround: Add a custom filter to block the vulnerable AJAX action:
    add_action('init', function() {
        if (isset($_GET['action']) && $_GET['action'] === 'elfsight_get_config') {
            wp_die('Access denied', 403);
        }
    });
    
  3. Long-term: Monitor the vendor’s website for a patched version (>= 2.3.2). Apply the update as soon as it becomes available.
  4. Credential Rotation: Rotate all secrets that may have been exposed (API keys, SMTP passwords, database credentials).
  5. Web Application Firewall (WAF): Deploy a WAF rule to block requests containing action=elfsight_get_config.

Valters IT

👁️ 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:"elfsight-contact-form"
http.html:"elfsight" "contact form"

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