| タイトル | 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 年 ago) |
|---|
| モデレーション | 2025年05月09日 14:44 (10 days later) |
|---|
| ステータス | 承諾済み |
|---|
| VulDBエントリ | 308216 [code-projects Hotel Management System 1.0 Edit Room edit roomnumber メモリ破損] |
|---|
| ポイント | 19 |
|---|