Code-Projects Train Ticket Reservation System Buffer Overflow Vulnerability

Vulnerability

A critical stack-based buffer overflow vulnerability has been identified in Code-Projects Train Ticket Reservation System version 1.0. The issue arises in the Login Form component, where the 'username' input is not properly validated, allowing for excessively long strings to be entered. This lack of input size control leads to a stack overflow, causing the program to crash with a segmentation fault. The vulnerability must be exploited locally.

Impact

Exploitation of this vulnerability causes the program to crash, but it could also be leveraged for arbitrary code execution, especially if the application is running with elevated privileges.

Reproduction

To reproduce this vulnerability, compile the Train Ticket Reservation System with the default name. After compiling, run the program and enter a long string as the username. The input should be long enough to exceed the buffer limit, which will cause the program to crash with a segmentation fault, indicating a stack overflow.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
4.6
remediation
0.0
relevance
0.0
threat
6.4
urgency
2.9
incentive
1.7

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