CWE•Base•Draft•1 recent CVE
CWE-547Use of Hard-coded, Security-relevant Constants
Description
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.
Common consequences
- Other→Varies by Context,Quality Degradation,Reduce MaintainabilityThe 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 ind
Potential mitigations
- ImplementationAvoid using hard-coded constants. Configuration files offer a more flexible solution.