| 标题 | HOTEL_MANAGEMENT_SYSTEM stack overflow in edit function v1.0 Buffer Overflow |
|---|
| 描述 | The `edit()` function contains **two critical buffer overflow vulnerabilities** due to unsafe usage of:
1. `scanf("%[^\n]", roomnumber)` (no length restriction)
2. `gets(s.roomnumber)` (deprecated and highly unsafe)
An attacker can exploit these to **overwrite adjacent memory**, leading to **arbitrary code execution (RCE)** or **program crash (DoS)**.
|
|---|
| 来源 | ⚠️ https://github.com/zzzxc643/cve/blob/main/HOTEL_MANAGEMENT_SYSTEM.md |
|---|
| 用户 | zzzxc (UID 81185) |
|---|
| 提交 | 2025-04-29 07時25分 (1 年前) |
|---|
| 管理 | 2025-05-09 14時44分 (10 days later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 308216 [code-projects Hotel Management System 1.0 Edit Room edit roomnumber 内存损坏] |
|---|
| 积分 | 19 |
|---|