PHPGurukul Online Shopping Portal SQL Injection Vulnerability in Categorywise Products Handler

Vulnerability

A SQL injection vulnerability exists in PHPGurukul Online Shopping Portal Project version 2.1, specifically within the categorywise-products.php file. The issue arises from inadequate input validation of the 'cid' parameter, allowing attackers to inject malicious SQL queries. This vulnerability can be exploited remotely, with public proof-of-concept available.

Impact

Exploitation of this vulnerability allows unauthorized database access, data manipulation, and potential disruption of services.

Reproduction

The vulnerability can be reproduced by sending a crafted GET request to the categorywise-products.php file with a malicious 'cid' parameter. This can be done using tools like sqlmap, which can automate the exploitation process by injecting SQL payloads and extracting database information.

Remediation

It is recommended to implement prepared statements and parameter binding to prevent SQL injection. Additionally, input validation and filtering should be applied to ensure that user input meets expected formats, blocking malicious data. Database user permissions should be minimized, granting only necessary access rights.

Added: Apr 6, 2026, 8:19 AM
Updated: Apr 6, 2026, 8:19 AM

Vulnerability Rating

Custom Algorithm
spread
1.0
impact
7.5
exploitability
9.7
remediation
0.0
relevance
5.4
threat
6.4
urgency
2.9
incentive
8.3

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