CodeAstro Online Classroom SQL Injection Vulnerability

Vulnerability

A SQL injection vulnerability has been identified in CodeAstro Online Classroom version 1.0. The issue arises in the '/OnlineClassroom/addnewstudent' file, where the 'fname' parameter is manipulated to inject malicious SQL queries. This vulnerability can be exploited remotely, allowing attackers to gain unauthorized access to the database, leak sensitive information, alter or delete data, and potentially disrupt services.

Impact

Exploitation of this vulnerability allows for unauthorized database access, manipulation of database contents, and access to sensitive information. Such actions could lead to a broader compromise of the application or server.

Reproduction

The vulnerability can be reproduced by sending a POST request to the '/OnlineClassroom/addnewstudent' endpoint. The 'fname' parameter must be crafted to include malicious SQL payloads. This can be done using SQL injection techniques such as boolean-based blind, error-based, or time-based blind injections. Other required parameters include 'lname', 'faname', 'DOB', 'addrs', 'gender', 'course', 'phno', 'email', 'pass', and 'addnews'.

Remediation

To address this vulnerability, 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 further enhance the application's security.

Added: May 4, 2026, 8:20 AM
Updated: May 4, 2026, 8:20 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
3.1
exploitability
8.7
remediation
0.0
relevance
7.4
threat
6.4
urgency
2.9
incentive
4.2

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.