Saiftheboss7 Onlinemcqexam SQL Injection Vulnerability in Admin Quesadd.php

Vulnerability

A SQL injection vulnerability has been identified in the 'Online MCQ EXAM' project by saiftheboss7, specifically in version 1.0 prior to commit 0e56806132971e49721db3ef01868098c7b42ada. The issue arises in the '/admin/quesadd.php' file, where insufficient input validation of the 'ans1' and 'ans2' parameters allows attackers to inject malicious SQL queries. This vulnerability can be exploited remotely, without any authentication, leading to unauthorized database access, data manipulation, and potential leakage of sensitive information.

Impact

Exploitation of this vulnerability allows for unauthorized access to the database, manipulation or deletion of data, and access to sensitive information. Such actions pose a significant threat to the overall security of the system and its data integrity.

Reproduction

The vulnerability can be reproduced by sending a POST request to the '/admin/quesadd.php' endpoint with crafted payloads that exploit the SQL injection flaw in the 'ans1' or 'ans2' parameters. This can be done using tools like sqlmap, which automates the process of finding and exploiting SQL injection vulnerabilities.

Remediation

It is recommended to use prepared statements and parameter binding to prevent SQL injection, validate and filter user input, minimize database user permissions, and conduct regular security audits.

Added: Dec 28, 2025, 3:18 PM
Updated: Dec 28, 2025, 3:18 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
3.1
exploitability
8.7
remediation
0.0
relevance
1.8
threat
6.4
urgency
2.9
incentive
5.8

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