PHPGurukul News Portal Cross-Site Request Forgery Vulnerability

Vulnerability

A cross-site request forgery (CSRF) vulnerability has been identified in PHPGurukul News Portal version 1.0. The issue arises from the lack of anti-CSRF protections on the admin endpoint for adding sub-admins. This vulnerability allows attackers to create sub-admin accounts without the knowledge or consent of the user.

Impact

Exploitation of this vulnerability allows for the unauthorized creation of sub-admin accounts, which can lead to abuse of privileges and a complete compromise of the admin panel's integrity.

Reproduction

To reproduce this vulnerability, log into the News Portal as an admin or sub-admin. While authenticated, open a crafted HTML page that automatically submits a POST request to the admin endpoint for adding sub-admins. The request should include the necessary fields to create a new sub-admin account. Once the request is submitted, the new sub-admin account will be created without the user's consent.

Remediation

It is recommended to implement CSRF tokens for all state-changing requests and to validate user roles on the server side before processing admin actions.

Added: Jan 19, 2026, 7:19 AM
Updated: Jan 19, 2026, 7:19 AM

Vulnerability Rating

Custom Algorithm
spread
1.0
impact
0.6
exploitability
7.7
remediation
0.0
relevance
2.2
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.