CWE-589 对非普适API的调用
Call to Non-ubiquitous API
结构: Simple
Abstraction: Variant
状态: Incomplete
被利用可能性: unkown
基本描述
The software uses an API function that does not exist on all versions of the target platform. This could cause portability problems or inconsistencies that allow denial of service or other consequences.
扩展描述
Some functions that offer security features supported by the OS are not available on all versions of the OS in common use. Likewise, functions are often deprecated or made obsolete for security reasons and should not be used.
相关缺陷
-
cwe_Nature: ChildOf cwe_CWE_ID: 474 cwe_View_ID: 1000 cwe_Ordinal: Primary
-
cwe_Nature: ChildOf cwe_CWE_ID: 474 cwe_View_ID: 699 cwe_Ordinal: Primary
常见的影响
范围 | 影响 | 注释 |
---|---|---|
Other | Quality Degradation |
可能的缓解方案
Implementation
策略:
Always test your code on any platform on which it is targeted to run on.
Testing
策略:
Test your code on the newest and oldest platform on which it is targeted to run on.
Testing
策略:
Develop a system to test for API functions that are not portable.
分类映射
映射的分类名 | ImNode ID | Fit | Mapped Node Name |
---|---|---|---|
The CERT Oracle Secure Coding Standard for Java (2011) | MET02-J | Do not use deprecated or obsolete classes or methods | |
The CERT Oracle Secure Coding Standard for Java (2011) | SER00-J | Maintain serialization compatibility during class evolution | |
Software Fault Patterns | SFP3 | Use of an improper API |
相关攻击模式
- CAPEC-96
文章来源于互联网:scap中文网
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论