SourceCodester Phone Management System Buffer Overflow Vulnerability

Vulnerability

A critical buffer overflow vulnerability has been identified in SourceCodester Phone Management System version 1.0. The issue arises in the Password Handler component, specifically within the main function. The vulnerability is caused by a character variable that receives input through scanf, allowing for arbitrary data length and leading to a buffer overflow. This vulnerability requires local access to exploit.

Impact

Exploitation of this vulnerability causes a buffer overflow, which can lead to memory corruption and potentially allow for arbitrary code execution.

Reproduction

The vulnerability can be reproduced by compiling the application with Visual Studio 2022, disabling stack protection and warnings. After launching the program, enter the password 'admin' to access the menu. Select option 3 to enter the vulnerable function, set a breakpoint on line 632, and input data longer than 15 bytes. The buffer overflow can be observed in the memory monitoring window, where the overflowed data will be visible.

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

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
10.0
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.