Code-Projects Online Event Judging System SQL Injection Vulnerability in add_judge.php
Vulnerability
A SQL injection vulnerability has been identified in version 1.0 of the Code-Projects Online Event Judging System. The issue arises in the add_judge.php file, where the fullname parameter is manipulated, allowing attackers to inject malicious SQL queries. This vulnerability can be exploited remotely, and a public exploit is available.
Impact
Exploitation of this vulnerability allows attackers to execute arbitrary SQL commands, potentially leading to unauthorized database access, data manipulation, and in some cases, remote code execution.
Reproduction
To reproduce this vulnerability, send a POST request to add_judge.php with the fullname parameter. Inject a payload that exploits the SQL injection, such as one that uses a time-based blind SQL injection technique, like adding a SQL injection payload that causes the database to sleep for a few seconds before responding.
Remediation
It is recommended to use prepared statements and parameter binding to prevent SQL injection. Additionally, input validation and filtering should be implemented to ensure user input conforms to expected formats. Minimizing database user permissions and conducting regular security audits are also advisable.
Vulnerability Rating
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.
