Code-Projects Exam Form Submission Cross-Site Scripting Vulnerability

Vulnerability

A cross-site scripting (XSS) vulnerability has been identified in Code-Projects Exam Form Submission version 1.0. The issue resides in the '/admin/update_s4.php' file, where the 'sname' parameter is not properly validated or encoded before being output to users. This flaw allows attackers to inject and execute malicious scripts in the context of the victim's browser, potentially leading to the theft of cookies, session tokens, or other sensitive information. The vulnerability can be exploited remotely and requires user interaction.

Impact

Exploitation of this vulnerability allows for cross-site scripting, where injected scripts are executed in the context of the user's browser session.

Reproduction

To reproduce this vulnerability, navigate to the '/admin/update_s4.php' file and manipulate the 'sname' parameter by injecting a script tag. This can be done by using a payload that includes JavaScript code, such as a prompt command. Once the injection is made, the script will execute in the browser, demonstrating the cross-site scripting vulnerability.

Remediation

It is recommended to implement proper output encoding for user inputs, especially when displaying data on web pages. Additionally, input validation should be enforced to reject or escape any potentially harmful content, such as script tags or event handlers. Regular security audits can help identify and address such vulnerabilities.

Added: Mar 23, 2026, 7:17 AM
Updated: Mar 23, 2026, 7:17 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
1.7
exploitability
5.6
remediation
0.0
relevance
4.6
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.