PHPGurukul Online Course Registration SQL Injection Vulnerability

Vulnerability

A SQL injection vulnerability exists in PHPGurukul Online Course Registration version 3.1, specifically within the '/check_availability.php' file. The issue arises from the inadequate validation of the 'cid' parameter, allowing attackers to inject malicious SQL queries. This vulnerability can be exploited remotely, without any authentication.

Impact

Exploitation of this vulnerability allows unauthorized access to the database, where attackers can leak, modify, or delete data. Additionally, it could lead to complete control over the system and disruption of services.

Reproduction

To reproduce this vulnerability, send a POST request to '/onlinecourse/check_availability.php' with the 'cid' parameter manipulated to include SQL injection payloads. This can be done using a tool like sqlmap, targeting the 'cid' parameter to exploit the 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 conforms to expected formats. Minimizing database user permissions can also help reduce the risk of exploitation.

Added: Apr 9, 2026, 12:21 AM
Updated: Apr 9, 2026, 12:21 AM

Vulnerability Rating

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