Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Hard coding sensitive information also increases the need to manage and accommodate changes to the code. For example, changing a hard-coded password in a deployed program may require distribution of a patch patch [Chess 2007].

Noncompliant Code Example (Hard-Coded Database Password)

...

Hard coding sensitive information exposes that information to attackers. The severity of this rule can vary depending on the kind of information that is disclosed. Frequently, the information disclosed is password or key information, which can lead to remote exploitation. Consequently, a high severity rating is given but may be adjusted downwards according to the nature of the sensitive the sensitive data

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

MSC31-J

High

Probable

Medium

P12

L1

...

ToolVersionCheckerDescription

Related Guidelines

...

SEI CERT C Coding Standard

...

javaMSC03-J. Never hard code sensitive information

ISO/IEC TR 24772:2010

Hard-coded Password [XYP]

MITRE CWE

CWE-259, Use of Hard-Coded Password
CWE-798, Use of Hard-Coded Credentials

...