CWE-798: Use of Hard-coded Credentials

BaseDraftExploit Likelihood: High🏆 #13 in Top 25 (2024)

The product contains hard-coded credentials, such as a password or cryptographic key.

View on MITRE
262Related CVEs
13.84Severity Score
Back to CWE Lookup

Extended Description

There are two main variations: Inbound: the product contains an authentication mechanism that checks the input credentials against a hard-coded set of credentials. In this variant, a default administration account is created, and a simple password is hard-coded into the product and associated with that account. This hard-coded password is the same for each installation of the product, and it usually cannot be changed or disabled by system administrators without manually modifying the program, or otherwise patching the product. It can also be difficult for the administrator to detect. Outbound: the product connects to another system or component, and it contains hard-coded credentials for connecting to that component. This variant applies to front-end systems that authenticate with a back-end service. The back-end service may require a fixed password that can be easily discovered. The programmer may simply hard-code those back-end credentials into the front-end product.

Technical Details

Structure
Simple

Applicable To

Languages
Not Language-Specific
Platforms

🏆 CWE Top 25 Historical Ranking

2023:#18
Score: 4.57
241 CVEs
2024:#13↑5
Score: 13.84
262 CVEs
Trend:Worsening (moved down 5 ranks)

Learn More