PHPGurukul Online Shopping Portal SQL Injection Vulnerability in Payment Method Handler

Vulnerability

A SQL injection vulnerability exists in PHPGurukul Online Shopping Portal Project version 2.1, specifically within the '/payment-method.php' file. The issue arises from the Parameter Handler component, where the 'paymethod' parameter can be manipulated to inject malicious SQL code. This unsanitized input is directly used in SQL queries, allowing attackers to alter database queries and execute unauthorized actions. The vulnerability can be exploited remotely, and a public exploit is available.

Impact

Exploitation of this vulnerability allows attackers to inject malicious SQL queries, potentially leading to unauthorized database access, data manipulation or deletion, and execution of administrative operations on the database.

Reproduction

To reproduce this vulnerability, send a POST request to '/shopping/payment-method.php' with the 'paymethod' parameter. Include a payload that exploits time-based blind SQL injection, such as using 'RLIKE SLEEP(5)' to test for SQL injection vulnerability.

Remediation

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.

Added: Apr 5, 2026, 11:19 AM
Updated: Apr 5, 2026, 11:19 AM

Vulnerability Rating

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