PHPGurukul News Portal SQL Injection Vulnerability in add-subcategory.php

Vulnerability

A SQL injection vulnerability exists in PHPGurukul News Portal Project version 4.1, specifically within the file /admin/add-subcategory.php. The issue arises from inadequate input validation of the 'sucatdescription' parameter, allowing attackers to inject malicious SQL queries. This vulnerability can be exploited remotely, with public proof-of-concept available.

Impact

Exploitation of this vulnerability allows attackers to manipulate SQL queries, potentially leading to unauthorized database access, data modification or deletion, and disclosure of sensitive information.

Reproduction

To reproduce this vulnerability, send a POST request to /newsportal/admin/add-subcategory.php with the 'sucatdescription' parameter. Include a payload that exploits time-based blind SQL injection, such as one that uses the SQL 'SLEEP' function to introduce a delay in the response.

Remediation

It is recommended to use prepared statements and parameter binding to prevent SQL injection, validate and filter user input, and limit database user permissions to the minimum required.

Added: Apr 9, 2026, 5:27 AM
Updated: Apr 9, 2026, 5:27 AM

Vulnerability Rating

Custom Algorithm
spread
1.0
impact
2.5
exploitability
6.3
remediation
0.0
relevance
5.5
threat
6.4
urgency
2.9
incentive
0.0

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