Code-Projects Online Shoe Store SQL Injection Vulnerability in Contact Us PHP File

Vulnerability

A critical SQL injection vulnerability has been identified in the code-projects Online Shoe Store version 1.0. The issue resides in the '/contactus1.php' file, where the 'message' parameter is manipulated, allowing attackers to inject malicious SQL queries. This vulnerability can be exploited remotely without any authentication, posing a significant risk to database security and data integrity.

Impact

Exploitation of this vulnerability allows unauthorized access to the database, where attackers can modify or delete data, access sensitive information, and potentially disrupt services.

Reproduction

The vulnerability can be reproduced by sending a POST request to 'contactus1.php' with a crafted 'message' parameter that includes malicious SQL code. This can be done using tools like sqlmap, which can automate the injection process and exploit the vulnerability.

Remediation

To address this vulnerability, it is recommended to use prepared statements and parameter binding to prevent SQL injection. Additionally, input validation and filtering should be implemented to ensure user input conforms to expected formats. Minimizing database user permissions and conducting regular security audits can also help enhance overall security.

Added: Jun 20, 2025, 3:19 AM
Updated: Jun 20, 2025, 3:19 AM

Vulnerability Rating

Custom Algorithm
spread
0.8
impact
7.5
exploitability
9.5
remediation
0.0
relevance
0.2
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.