Code-Projects Movie Ticketing System SQL Injection Vulnerability in Ticket Confirmation Processing
Vulnerability
A critical SQL injection vulnerability has been identified in the Code-Projects Movie Ticketing System version 1.0. The issue arises in the file '/ticketConfirmation.php', where the 'date' parameter is improperly validated, allowing attackers to inject malicious SQL queries. This vulnerability can be exploited remotely, potentially leading to unauthorized database access, data manipulation, and exposure of sensitive information.
Impact
Exploitation of this vulnerability allows for SQL injection, enabling attackers to interfere with the application's database queries. This could result in unauthorized data access, data modification or deletion, and in some cases, executing administrative operations on the database.
Reproduction
To reproduce this vulnerability, authenticate to the application to obtain a valid PHP session ID. Then, send a POST request to '/ticketConfirmation.php' with the 'date' parameter crafted to include malicious SQL payloads, such as SQL injection techniques that exploit error-based SQL injection vulnerabilities. The request must also include 'timeSlot' and 'theater' parameters as part of the ticket booking process.
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.
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.
