제출 #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. PM 05:35 (2 연령 ago)
모더레이션2024. 12. 08. PM 06:08 (3 days later)
상태수락
VulDB 항목287273 [SourceCodester Phone Contact Manager System 1.0 User Menu MenuDisplayStart 이름 권한 상승]
포인트들20

Do you want to use VulDB in your project?

Use the official API to access entries easily!