Question 110
An attacker uses process manipulation to place executable payload bytes into a running trusted application. Which vulnerability type BEST explains the observed weakness?
Explanation
Correct Answer
The attacker manipulates a running trusted application so executable bytes are written into its memory address space. That is process memory injection, which can disguise malicious execution under a legitimate process identity and potentially inherit that process's resource access. The technique may use operating-system APIs or interprocess operations, but no specific implementation is required to classify it. The observed weakness is the ability to manipulate another process's execution environment; it is distinct from overflowing a buffer in the attacker's own parser or racing a file path.
Incorrect Answers
Stored XSS is the delivery of persistent attacker-controlled browser script through saved web content such as a comment or profile. The scenario describes executable bytes placed in a live trusted application's process memory. No web page, saved comment, HTML rendering, or browser execution is mentioned. A browser itself could be the victim process in a different case, but the attack technique here is cross-process memory manipulation, not unsafe storage and rendering of script content.
A buffer overflow overwrites bytes beyond the boundaries of an allocated buffer due to inadequate size validation. In this case the attacker deliberately places code inside a separate running process through process manipulation; there is no evidence of an overlong input or accidental out-of-bounds write. Buffer corruption might be one possible way to gain control in other scenarios, but it is not the described mechanism. The distinction is how the code enters the victim process.
A TOCTOU race exploits the time interval between checking a resource and using it after that resource changes. The case contains no temporary path, permission check, or resource replacement. The adversary's action is to inject executable bytes directly into a trusted process's memory, often followed by execution within that process. While concurrency vulnerabilities can sometimes help an attack, such a race is not part of the evidence provided and should not be presumed.