CWE-486Comparison of Classes by Name

PUBLISHEDweakness recordHigh
released 2006-07-19 · last modified 2025-12-11

Metadata

CWE ID:
CWE-486
摘要:
Variant
结构:
Simple
状态:
Draft
发布日期:
2006-07-19
更新日期:
2025-12-11

名称

Comparison of Classes by Name

描述

The product compares classes by name, which can cause it to use the wrong class when multiple classes can have the same name.

If the decision to trust the methods and data of an object is based on the name of a class, it is possible for malicious users to send objects of the same name as trusted classes and thereby gain the trust afforded to known classes and types.

常见后果

范围:
Integrity, Confidentiality, Availability
影响:
Execute Unauthorized Code or Commands
注释:
If a product relies solely on the name of an object to determine identity, it may execute the incorrect or unintended code.

相关 CWE