PHPGurukul Online Shopping Portal SQL Injection Vulnerability in Login Component

Vulnerability

A SQL injection vulnerability has been identified in PHPGurukul Online Shopping Portal Project version 2.1. The issue resides in the login component, specifically within the 'fullname' parameter of the 'shopping/login.php' file. This vulnerability allows attackers to manipulate SQL queries, potentially leading to unauthorized database access and data exfiltration.

Impact

Exploitation of this vulnerability allows attackers to execute arbitrary SQL commands, appended to the original SQL query of the vulnerable endpoint. This could lead to unauthorized database access, data manipulation, and in some cases, executing arbitrary code, depending on the application's database interaction.

Reproduction

To reproduce this vulnerability, log into the application and navigate to the 'Create a new account' section. Enter a full name and complete the other required fields, then sign up. Intercept the sign-up request with Burp Suite and send it to the Repeater tab. In the Repeater, replace the 'fullname' parameter with a crafted payload that exploits the SQL injection vulnerability, such as one that uses a SQL injection technique like time-based blind SQL injection. Send the request and observe the response delay, which indicates successful exploitation.

Remediation

To address this vulnerability, use prepared statements and parameter binding to separate SQL code from user input, preventing SQL injection. Additionally, validate and filter user input to ensure it meets expected formats, and minimize database user permissions to reduce the impact of potential exploitation.

Added: Oct 2, 2025, 3:17 PM
Updated: Oct 2, 2025, 7:25 PM

Vulnerability Rating

Custom Algorithm
spread
1.0
impact
7.5
exploitability
9.7
remediation
0.0
relevance
0.7
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.