提交 #457438: SourceCodester Phone Contact Manager System in C++ with Source Code V1.0 Buffer Pollution信息

标题SourceCodester Phone Contact Manager System in C++ with Source Code V1.0 Buffer Pollution
描述The function UserInterface::MenuDisplayStart() does not properly handle user input. When a user enters mixed characters (e.g., 1qqqqq), the std::cin >> choice operation successfully parses the numeric portion (1) and leaves the remaining characters (qqqqq) in the input buffer. Subsequent calls to getline(std::cin, name) consume these leftover characters, leading to the unintended assignment of invalid data (qqqqq) to the name variable. This buffer pollution vulnerability allows invalid input to propagate through the program, causing data corruption and exposing the system to potential security risks. Immediate mitigation is recommended by implementing input validation, clearing the input buffer, and enhancing error handling.
来源⚠️ https://github.com/jasontimwong/CVE/issues/1
用户
 Jason huibin wong (UID 78722)
提交2024-12-05 17時35分 (2 年前)
管理2024-12-08 18時08分 (3 days later)
状态已接受
VulDB条目287273 [SourceCodester Phone Contact Manager System 1.0 User Menu MenuDisplayStart name 权限提升]
积分20

Do you need the next level of professionalism?

Upgrade your account now!