SourceCodester Online Student Clearance System SQL Injection Vulnerability in Password Change Function
Vulnerability
A SQL injection vulnerability has been identified in SourceCodester Online Student Clearance System version 1.0. The issue resides in the password change administration file, specifically within the 'txtconfirm_password' parameter. This vulnerability allows remote attackers to inject malicious SQL queries, potentially leading to unauthorized database access, data manipulation, and exposure of sensitive information.
Impact
Exploitation of this vulnerability allows for SQL injection, where attackers can manipulate database queries. This could result in unauthorized data access, data modification or deletion, and leakage of sensitive information.
Reproduction
To reproduce this vulnerability, log into the application as an administrator. Navigate to the password change page and submit a POST request to '/Admin/changepassword.php' with the 'txtold_password', 'txtnew_password', and 'txtconfirm_password' parameters. The 'txtnew_password' and 'txtconfirm_password' fields should contain the crafted SQL injection payload, such as a time-based blind SQL injection injection, while 'txtold_password' can be set to the current admin password.
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 can also help enhance overall system security.
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.
