CAPEC-123: Buffer Manipulation

Buffer Manipulation

状态:Draft

Typical_Severify: Very High

攻击可能性:High

描述

An adversary manipulates an application's interaction with a buffer in an attempt to read or modify data they shouldn't have access to. Buffer attacks are distinguished in that it is the buffer space itself that is the target of the attack rather than any code responsible for interpreting the content of the buffer. In virtually all buffer attacks the content that is placed in the buffer is immaterial. Instead, most buffer attacks involve retrieving or providing more input than can be stored in the allocated buffer, resulting in the reading or overwriting of other unintended program memory.

相关攻击模式

ParentOf: CAPEC-100 | Overflow Buffers

ParentOf: CAPEC-540 | Overread Buffers

前置条件

The adversary must identify a programmatic means for interacting with a buffer, such as vulnerable C code, and be able to provide input to this interaction.

所需资源

后果

Scope Impact Likelihood
A v a i l a b i l i t y Unreliable Execution
C o n f i d e n t i a l i t y ['Execute Unauthorized Commands', 'Modify Data', 'Read Data']

缓解措施

To help protect an application from buffer manipulation attacks, a number of potential mitigations can be leveraged. Before starting the development of the application, consider using a code language (e.g., Java) or compiler that limits the ability of developers to act beyond the bounds of a buffer. If the chosen language is susceptible to buffer related issues (e.g., C) then consider using secure functions instead of those vulnerable to buffer manipulations. If a potentially dangerous function must be used, make sure that proper boundary checking is performed. Additionally, there are often a number of compiler-based mechanisms (e.g., StackGuard, ProPolice and the Microsoft Visual Studio /GS flag) that can help identify and protect against potential buffer issues. Finally, there may be operating system level preventative functionality that can be applied.

实例

相关CWE

119 | 内存缓冲区边界内操作的限制不恰当

内容历史记录

提交

2014-06-23 | CAPEC Content Team | The MITRE Corporation

修改

2017-01-09 | CAPEC Content Team | The MITRE Corporation

Updated Activation_Zone, Attack_Motivation-Consequences, Injection_Vector, Payload, Payload_Activation_Impact, Related_Attack_Patterns, Solutions_and_Mitigations

2019-04-04 | CAPEC Content Team | The MITRE Corporation

Updated Related_Weaknesses