| 标题 | SourceCodester Simple Computer Store System v1.0 Buffer Overflow |
|---|
| 描述 | The program uses the unsafe gets() function to read input into the PC.RAM buffer, which is a fixed-size character array (char RAM[100]). Since gets() does not perform any bounds checking, providing more than 100 characters will overflow the buffer and overwrite adjacent memory, leading to a classic stack buffer overflow vulnerability.
An attacker can exploit this by crafting input that overwrites control data such as the return address, enabling arbitrary code execution or program crashes. |
|---|
| 来源 | ⚠️ https://github.com/byxs0x0/cve/issues/6 |
|---|
| 用户 | wanglun (UID 73616) |
|---|
| 提交 | 2025-05-27 04時11分 (1 年前) |
|---|
| 管理 | 2025-05-28 08時16分 (1 day later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 310421 [SourceCodester Computer Store System 1.0 main.c Add laptopcompany/RAM/Processor 内存损坏] |
|---|
| 积分 | 20 |
|---|