Codezips Gym Management System SQL Injection Vulnerability

Vulnerability

A critical SQL injection vulnerability has been identified in Codezips Gym Management System version 1.0. The issue resides in the 'id' parameter of the '/dashboard/admin/gen_invoice.php' file. This vulnerability allows remote attackers to inject arbitrary SQL commands, bypassing input validation. Exploitation of this flaw could lead to unauthorized database access, data manipulation, and potentially a complete system compromise.

Impact

Exploitation of this vulnerability could result in a database compromise, allowing attackers to read, modify, or delete data. There is also a risk of data leakage, exposing sensitive customer or payment information. Additionally, malicious SQL queries could degrade application performance or cause crashes, and there is a potential for privilege escalation, leading to a broader system takeover.

Reproduction

The vulnerability can be reproduced by sending a crafted HTTP request to the '/dashboard/admin/gen_invoice.php' endpoint, including a malicious payload in the 'id' parameter. This can be done manually or using automated tools like sqlmap, which can exploit the SQL injection by extracting database information or executing arbitrary SQL commands.

Remediation

To address this vulnerability, it is recommended to use prepared statements or parameter binding to separate SQL logic from user input, enforce strict input validation on the 'id' parameter, apply the principle of least privilege for database user accounts, and schedule regular security audits to identify and fix vulnerabilities.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.8
impact
5.0
exploitability
9.5
remediation
0.0
relevance
0.0
threat
6.4
urgency
2.9
incentive
10.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.