CWE-471 对假设不可变数据的修改(MAID)
Modification of Assumed-Immutable Data (MAID)
结构: Simple
Abstraction: Base
状态: Draft
被利用可能性: unkown
基本描述
The software does not properly protect an assumed-immutable element from being modified by an attacker.
扩展描述
This occurs when a particular input is critical enough to the functioning of the application that it should not be modifiable at all, but it is. Certain resources are often assumed to be immutable when they are not, such as hidden form fields in web applications, cookies, and reverse DNS lookups.
相关缺陷
适用平台
Language: {'cwe_Class': 'Language-Independent', 'cwe_Prevalence': 'Undetermined'}
常见的影响
范围 | 影响 | 注释 |
---|---|---|
Integrity | Modify Application Data | Common data types that are attacked are environment variables, web application parameters, and HTTP headers. |
Integrity | Unexpected State |
可能的缓解方案
['Architecture and Design', 'Operation', 'Implementation']
策略:
When the data is stored or transmitted through untrusted sources that could modify the data, implement integrity checks to detect unauthorized modification, or store/transmit the data in a trusted location that is free from external influence.
示例代码
例
In the code excerpt below, an array returned by a Java method is modified despite the fact that arrays are mutable.
bad Java
colors[0] = "Red";
分析过的案例
标识 | 说明 | 链接 |
---|---|---|
CVE-2002-1757 | Relies on $PHP_SELF variable for authentication. | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2002-1757 |
CVE-2005-1905 | Gain privileges by modifying assumed-immutable code addresses that are accessed by a driver. | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2005-1905 |
Notes
Relationship
MAID issues can be primary to many other weaknesses, and they are a major factor in languages that provide easy access to internal program constructs, such as PHP's register_globals and similar features. However, MAID issues can also be resultant from weaknesses that modify internal state; for example, a program might validate some data and store it in memory, but a buffer overflow could overwrite that validated data, leading to a change in program logic.
Theoretical
There are many examples where the MUTABILITY property is a major factor in a vulnerability.
分类映射
映射的分类名 | ImNode ID | Fit | Mapped Node Name |
---|---|---|---|
PLOVER | Modification of Assumed-Immutable Data |
相关攻击模式
- CAPEC-384
- CAPEC-385
- CAPEC-386
- CAPEC-387
- CAPEC-388
文章来源于互联网:scap中文网
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论