PHPGurukul Online Shopping Portal Project
cpe:2.3:a:phpgurukul:online_shopping_portal:*:*:*:*:*:*:*
- 2.1
A SQL injection vulnerability exists in PHPGurukul Online Shopping Portal Project version 2.1, specifically within the '/sub-category.php' file. The issue arises from the Parameter Handler component, where the 'pid' parameter is improperly processed, allowing attackers to inject malicious SQL code. This vulnerability can be exploited remotely, with a public exploit available.
Exploitation of this vulnerability allows unauthorized database access, data manipulation, and potential control over the system, disrupting services and posing a significant security risk.
The vulnerability can be reproduced by sending a GET request to '/shopping/sub-category.php' with the 'pid' parameter. The request should include a payload that exploits the SQL injection vulnerability, such as a time-based blind SQL injection payload that uses the SQL 'SLEEP' function to demonstrate the injection.
It is recommended to use prepared statements and parameter binding to prevent SQL injection. Additionally, input validation and filtering should be implemented to ensure that user input meets expected formats, and database user permissions should be minimized to the least required.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.