phpgurukul Complaint Management System SQL Injection Vulnerability in complaint-details.php

Vulnerability

A SQL injection vulnerability exists in phpGurukul Complaint Management System version 2.0, specifically in the complaint-details.php file. The issue arises from inadequate input validation of the 'cid' parameter, allowing attackers to manipulate SQL queries and potentially exfiltrate database information. This vulnerability requires user authentication to exploit.

Impact

Exploitation of this vulnerability allows for SQL injection, where an attacker can execute arbitrary SQL commands. This could lead to unauthorized data access, data manipulation, or in some cases, executing commands on the server under the database application's privileges.

Reproduction

To reproduce this vulnerability, log in as a user and navigate to the complaint history page. Click on 'View Details' to access the complaint details page. Capture the request using Burp Suite and inject a time-delay payload into the 'cid' parameter. This injection takes advantage of the lack of input validation, exploiting the application to execute arbitrary SQL commands.

Remediation

To address this vulnerability, use prepared statements with parameterized queries to prevent direct embedding of user input into SQL queries. Additionally, validate and sanitize user input, particularly for parameters expected to be numeric.

Added: Sep 3, 2025, 3:18 PM
Updated: Sep 3, 2025, 3:18 PM

Vulnerability Rating

Custom Algorithm
spread
0.3
impact
2.5
exploitability
6.2
remediation
0.0
relevance
0.5
threat
6.4
urgency
2.9
incentive
1.7

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