Threats, Vulnerabilities, and Attacks
After repeated crashes caused by oversized input to a header field in a C-based service, an attacker obtains a shell running as the service's SYSTEM account. Which fix addresses the root cause?
Show the answer
Correct answerA. Enforce input length checks and bounds checking in the service code
AWhy this is right: Bounds checking stops input from overrunning the buffer, which removes the flaw.
BWhy not this: This reduces the impact of an exploit but leaves the overflow itself exploitable.
CWhy not this: Blocking ../ stops directory traversal, which is not what the oversized header input does.
DWhy not this: Nonces and timestamps counter replay of captured messages, not memory corruption.
The shell came from oversized input overwriting memory, so the root cause is missing bounds checking and the fix is length validation in the code. Least privilege only limits the damage of a successful overflow and leaves the flaw exploitable.