结构: Simple
Abstraction: Variant
状态: Incomplete
被利用可能性: unkown
Obscuring a password with a trivial encoding does not protect the password.
cwe_Nature: ChildOf cwe_CWE_ID: 287 cwe_View_ID: 1000 cwe_Ordinal: Primary
cwe_Nature: ChildOf cwe_CWE_ID: 326 cwe_View_ID: 1000
cwe_Nature: ChildOf cwe_CWE_ID: 326 cwe_View_ID: 699
Language: {'cwe_Class': 'Language-Independent', 'cwe_Prevalence': 'Undetermined'}
范围 | 影响 | 注释 |
---|---|---|
Access Control | Gain Privileges or Assume Identity |
策略:
Passwords should be encrypted with keys that are at least 128 bits in length for adequate security.
The following code reads a password from a properties file and uses the password to connect to a database.
bad Java
This code will run successfully, but anyone with access to config.properties can read the value of password and easily determine that the value has been base 64 encoded. If a devious employee has access to this information, they can use it to break into the system.
The following code reads a password from the registry and uses the password to create a new network credential.
bad C#
This code will run successfully, but anyone who has access to the registry key used to store the password can read the value of password. If a devious employee has access to this information, they can use it to break into the system.
映射的分类名 | ImNode ID | Fit | Mapped Node Name |
---|---|---|---|
7 Pernicious Kingdoms | Password Management: Weak Cryptography | ||
OWASP Top Ten 2004 | A8 | CWE More Specific | Insecure Storage |