School Management System Reflected Cross-Site Scripting Vulnerability

Vulnerability

A reflected Cross-Site Scripting (XSS) vulnerability has been identified in School Management System version 1.0, developed by mahmoudai1. This vulnerability allows unauthenticated remote attackers to execute arbitrary JavaScript in the browsers of victims. The issue arises from the unsanitized 'type' parameter in 'register.php', which is reflected without proper escaping. Exploitation of this vulnerability could lead to session hijacking, phishing, or malware distribution.

Impact

Exploitation of this vulnerability allows for session hijacking through cookie theft, injection of phishing forms, distribution of malware via redirects, and it requires no authentication.

Reproduction

To reproduce this vulnerability, send a request to 'register.php' with a 'type' parameter containing unescaped JavaScript, such as a script tag. The injected script will execute in the context of the user's browser.

Remediation

To address this vulnerability, sanitize the 'type' parameter by using 'htmlspecialchars' before outputting it. This can be done by replacing the current echo statements in 'register.php' with 'echo htmlspecialchars(ucfirst($_REQUEST['type']), ENT_QUOTES, 'UTF-8');' for line 22 and 'echo htmlspecialchars($_REQUEST['type'], ENT_QUOTES, 'UTF-8');' for line 26.

Added: Apr 28, 2026, 10:38 PM
Updated: Apr 28, 2026, 10:38 PM

Vulnerability Rating

Custom Algorithm
spread
0.8
impact
1.7
exploitability
7.5
remediation
0.0
relevance
6.9
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.