PHPGurukul Online Course Registration SQL Injection Vulnerability in department.php

Vulnerability

A critical SQL injection vulnerability has been identified in PHPGurukul Online Course Registration version 3.1, specifically within the admin/department.php file. The vulnerability arises from inadequate input validation of the department parameter, allowing attackers to inject malicious SQL queries. This exploitation can be performed remotely, without the need for authentication, leading to unauthorized access and manipulation of the database.

Impact

Exploitation of this vulnerability allows attackers to access the database, modify or delete data, and extract sensitive information. Such actions could disrupt services and cause significant harm to the system's security and business operations.

Reproduction

The vulnerability can be reproduced by sending a POST request to the onlinecourse/admin/department.php endpoint with a crafted payload that exploits the SQL injection flaw. The department parameter should be manipulated to include SQL injection payloads, such as time-based blind injection techniques that use SQL's SLEEP function to demonstrate the injection's effectiveness.

Remediation

To address this vulnerability, 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. Finally, database user permissions should be minimized, granting only the necessary access rights to the database account used by the application.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

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