CVE-2026-7716
Received Received - Intake
SQL Injection in Gym Management System PHP

Publication date: 2026-05-04

Last updated on: 2026-05-04

Assigner: VulDB

Description
A vulnerability was found in code-projects Gym Management System In PHP and Windows NT 1.0. This vulnerability affects unknown code of the file /index.php. Performing a manipulation of the argument day results in sql injection. The attack can be initiated remotely. The exploit has been made public and could be used.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-05-04
Last Modified
2026-05-04
Generated
2026-05-07
AI Q&A
2026-05-04
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Currently, no data is known.
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-74 The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
Attack-Flow Graph
AI Powered Q&A
What immediate steps should I take to mitigate this vulnerability?

Immediate mitigation steps include sanitizing and parameterizing the 'day' parameter in the SQL queries to prevent injection.

  • Implement prepared statements or parameterized queries instead of directly concatenating user input.
  • Validate and sanitize all user inputs, especially the 'day' parameter, to allow only expected values.
  • Restrict database user permissions to limit the impact of a potential injection.
  • If possible, apply patches or updates from the software vendor addressing this vulnerability.

Can you explain this vulnerability to me?

This vulnerability is a SQL injection flaw found in the Gym Management System written in PHP. It specifically affects the handling of the 'day' parameter in the code, where the parameter is directly concatenated into an SQL query without proper sanitization or parameterization.

An attacker can manipulate the 'day' argument in a GET request to inject malicious SQL code. For example, they could use a UNION SELECT statement to extract sensitive information such as administrator credentials from the database.

The vulnerability is confirmed by a proof of concept that shows injected data appearing in the page response, indicating a reflected SQL injection. The vulnerable code constructs queries like SELECT * FROM exercises WHERE day_id='$day_id' directly using user input.


How can this vulnerability impact me? :

This vulnerability can allow an attacker to remotely execute arbitrary SQL commands on the database used by the Gym Management System.

  • Extraction of sensitive data such as administrator credentials.
  • Potential unauthorized access to user accounts and confidential information.
  • Modification or deletion of database records, which could disrupt the system's operation.
  • Automated exploitation using tools like sqlmap to dump the entire database contents.

How can this vulnerability be detected on my network or system? Can you suggest some commands?

This SQL injection vulnerability can be detected by testing the 'day' parameter in the URL for injection flaws. Since the parameter is directly concatenated into an SQL query without sanitization, sending specially crafted inputs can reveal the vulnerability.

  • Use automated tools like sqlmap to test the vulnerable endpoint. For example, run: sqlmap -u "http://target/index.php?day=1" --dbs to check for SQL injection and enumerate databases.
  • Manually test by injecting SQL syntax in the 'day' parameter, such as: http://target/index.php?day=1' OR '1'='1 to see if the response changes or reveals database errors.
  • Look for reflected SQL errors or unexpected data in the HTTP response that indicate successful injection.

How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

This SQL injection vulnerability allows attackers to extract sensitive data such as admin credentials by exploiting unsanitized input parameters. Such unauthorized access to sensitive personal or administrative data can lead to violations of data protection regulations like GDPR and HIPAA, which mandate the protection of personal and health information against unauthorized access and breaches.

Therefore, the presence of this vulnerability in the Gym Management System could result in non-compliance with these common standards and regulations due to the risk of data exposure and compromise.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart