What it is
The product uses hard-coded constants instead of symbolic names for security-critical values, which increases the likelihood of mistakes during code maintenance or security policy change.
Impact on systems
| Scope | Impact |
|---|---|
| Other | Varies by Context, Quality Degradation, Reduce Maintainability The existence of hardcoded constants could cause unexpected behavior and the introduction of weaknesses during code maintenance or when making changes to the code if all occurrences are not modified. The use of hardcoded constants is an indication of poor quality. In addition, these hard-coded values may become available to attackers if the code is ever disclosed. |
How to prevent it
Source: MITRE CWE catalog · Official entry on the MITRE website