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

CVE-2025-49870

CVE-2025-49870 SQL Injection in Cozmoslabs
📅 PUBLISHED: 2025-07-04 12: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.18%
👁️
0.18% probability
4.4× 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: Romania License: Commercial
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: H Integrity High
A: H Availability High
7.5
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-49870 is a critical SQL Injection vulnerability affecting the WordPress plugin Paid Member Subscriptions by Cozmoslabs, versions up to and including 2.15.1. This flaw allows an unauthenticated attacker to inject arbitrary SQL commands into the database, potentially leading to data exfiltration, modification, or complete compromise of the WordPress site. The vulnerability stems from improper neutralization of special elements used in an SQL command. Given the plugin's widespread use for membership management, this poses a significant risk to site integrity and user data.

⚡ 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 who have installed the plugin directly from the WordPress dashboard or via manual upload are at risk. The supply chain risk is elevated due to the lack of a confirmed patch and the plugin's popularity. Organizations should immediately audit their WordPress installations for this plugin and apply any available updates or implement virtual patching.

CVSS Breakdown & Threat Level

  • CVSS Score: 7.5 (High)
  • 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: High (C:H)
  • Integrity Impact: High (I:H)
  • Availability Impact: High (A:H)

The high CVSS score reflects the ease of exploitation (no authentication required) and the severe impact on confidentiality, integrity, and availability. An attacker can extract the entire WordPress database, including user credentials and sensitive membership data.

Deep Dive & Mechanics

The vulnerability exists in the paid-member-subscriptions plugin, likely within a function that processes user-supplied input without proper sanitization or parameterized queries. The specific vulnerable endpoint is not publicly documented, but typical SQL injection points in WordPress plugins include shortcodes, AJAX handlers, or custom query variables.

The attack vector involves sending a crafted HTTP request containing SQL metacharacters (e.g., single quotes, UNION statements) to a vulnerable parameter. The plugin's code directly concatenates this input into an SQL query, allowing the attacker to manipulate the query's logic.

For example, a vulnerable function might look like:

$user_id = $_GET['user_id'];
$query = "SELECT * FROM wp_users WHERE ID = $user_id";
$result = $wpdb->get_results($query);

An attacker could inject: 1 UNION SELECT user_login, user_pass FROM wp_users to retrieve all usernames and password hashes.

Vulnerable vs. Patched Code

Vulnerable Code (<= 2.15.1):

function get_member_data($member_id) {
    global $wpdb;
    $query = "SELECT * FROM {$wpdb->prefix}members WHERE id = $member_id";
    return $wpdb->get_row($query);
}

Patched Code (Hypothetical):

function get_member_data($member_id) {
    global $wpdb;
    $query = $wpdb->prepare("SELECT * FROM {$wpdb->prefix}members WHERE id = %d", $member_id);
    return $wpdb->get_row($query);
}

The patched version uses $wpdb->prepare() with a placeholder (%d) to ensure the input is treated as an integer, preventing SQL injection.

Exploitation & Lab Setup

Red Team

Lab Setup:

  1. Install WordPress with the Paid Member Subscriptions plugin version 2.15.1.
  2. Identify a vulnerable endpoint (e.g., a shortcode or AJAX handler that accepts user input).
  3. Use a tool like sqlmap or manual injection to exploit.

Exploitation Steps:

  1. Enumerate the vulnerable parameter (e.g., member_id).
  2. Inject a UNION-based payload to extract data:
    http://target.com/?member_id=1 UNION SELECT user_login,user_pass FROM wp_users--
    
  3. Use sqlmap for automated exploitation:
    sqlmap -u "http://target.com/?member_id=1" --batch --dbs
    

No public exploit code is available for this CVE.

Blue Team

Detection:

  • Monitor web server logs for SQL injection patterns (e.g., UNION, SELECT, ' OR '1'='1).
  • Deploy a Web Application Firewall (WAF) with rules to block SQL injection attempts.
  • Use the detection rules provided below.

Hunting:

  • Search for unusual database queries or error messages in logs.
  • Look for unexpected HTTP requests to plugin-specific endpoints.

Indicators of Compromise (IOCs)

  • Network:
    • HTTP requests containing SQL keywords (e.g., UNION, SELECT, --) in query parameters.
    • Requests to /wp-admin/admin-ajax.php with suspicious action parameters.
  • File System:
    • Modified plugin files (e.g., paid-member-subscriptions/ directory).
    • Unexpected PHP files in the uploads directory.
  • Database:
    • New or modified user accounts with elevated privileges.
    • Unusual entries in the wp_options table.

Detection Engineering

YARA Rule

rule CVE_2025_49870_SQLi_WordPress {
    meta:
        description = "Detects SQL injection attempts targeting Paid Member Subscriptions plugin"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-49870"
    strings:
        $sqli1 = "UNION SELECT" nocase
        $sqli2 = "OR 1=1" nocase
        $sqli3 = "admin' --" nocase
        $plugin_path = "paid-member-subscriptions"
    condition:
        any of ($sqli*) and $plugin_path
}

Sigma Rule

title: SQL Injection Attempt Against Paid Member Subscriptions
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects SQL injection patterns in HTTP requests targeting the WordPress plugin
author: Valters IT
logsource:
    category: webserver
    product: apache
detection:
    selection:
        c-uri|contains:
            - 'paid-member-subscriptions'
        cs-uri-query|contains:
            - 'UNION'
            - 'SELECT'
            - 'OR 1=1'
            - "' --"
    condition: selection
falsepositives:
    - Legitimate use of UNION in custom queries (rare)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-49870 SQL Injection Attempt"; flow:to_server,established; content:"paid-member-subscriptions"; http_uri; content:"UNION"; http_uri; nocase; content:"SELECT"; http_uri; nocase; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate Action: Disable the Paid Member Subscriptions plugin until a patch is available.
  2. Virtual Patching: Deploy WAF rules to block SQL injection patterns targeting the plugin.
  3. Update: Monitor the plugin's official page for a patched version (>2.15.1) and apply it immediately.
  4. Database Audit: Review database logs for unauthorized queries and reset all user passwords.
  5. Long-term: Implement input validation and parameterized queries in all custom WordPress code.

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:"Paid Member Subscriptions"
http.html:"paid-member-subscriptions"

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