जमा करें #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)
सबमिशन05/12/2024 05:35 PM (2 साल पहले)
संयम08/12/2024 06:08 PM (3 days later)
स्थितिस्वीकृत
VulDB प्रविष्टि287273 [SourceCodester Phone Contact Manager System 1.0 User Menu MenuDisplayStart name अधिकार वृद्धि]
अंक20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!