PHPGurukul Online Shopping Portal SQL Injection Vulnerability in Track Orders Component

Vulnerability

A SQL injection vulnerability has been identified in the PHPGurukul Online Shopping Portal version 2.1, specifically within the track-orders.php file. This vulnerability allows remote attackers to execute arbitrary SQL commands by injecting payloads into the orderid POST request parameter. The issue arises from inadequate input validation, enabling attackers to manipulate SQL queries and potentially execute malicious code on the server.

Impact

Exploitation of this vulnerability could lead to unauthorized execution of SQL commands, allowing attackers to access, modify, or delete database information. Additionally, such SQL injection vulnerabilities could be leveraged to execute arbitrary code on the server, depending on the application's database interaction and environment.

Reproduction

To reproduce this vulnerability, send a POST request to the track-orders.php page with a payload that includes a SQL injection, such as a time-based blind SQL injection payload. The server's response time will indicate whether the injection was successful, with a delayed response confirming the vulnerability.

Remediation

It is recommended to use prepared statements or parameterized queries to prevent SQL injection. Additionally, user inputs should be sanitized and validated, and a web application firewall (WAF) can be implemented to add an extra layer of security. Regular updates and patches to the application are also advised.

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

Vulnerability Rating

Custom Algorithm
spread
1.0
impact
5.0
exploitability
9.7
remediation
0.0
relevance
0.0
threat
6.5
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.