CWE-499Serializable Class Containing Sensitive Data

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

Metadata

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

名称

Serializable Class Containing Sensitive Data

描述

The code contains a class with sensitive data, but the class does not explicitly deny serialization. The data can be accessed by serializing the class through another class.

Serializable classes are effectively open classes since data cannot be hidden in them. Classes that do not explicitly deny serialization can be serialized by any other class, which can then in turn use the data stored inside it.

常见后果

范围:
Confidentiality
影响:
Read Application Data
注释:
an attacker can write out the class to a byte stream, then extract the important data from it.

相关 CWE