G403: Use of Hard-coded Credentials
CVE-2024-6045 is a high-severity use of hard-coded credentials vulnerability in G403 from D-Link, with a CVSS 3.1 base score of 8.8 out of 10. It can be exploited from the same local network by an unauthenticated attacker, without any action from a user. The record lists version 1.10.01 as the first without the flaw, so updating G403 to that release or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 6.31% chance of exploitation within 30 days, which is in the top 6.28% of all scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update G403 to 1.10.01 or a later version.
- Update G415 to 1.10.01 or a later version.
- Update G416 to 1.10.01 or a later version.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| D-Link | G403 | earlier up to, but not including, 1.10.01 | 1.10.01 |
| D-Link | G415 | earlier up to, but not including, 1.10.01 | 1.10.01 |
| D-Link | G416 | earlier up to, but not including, 1.10.01 | 1.10.01 |
| D-Link | M18 | earlier up to, but not including, 1.10.01 | 1.10.01 |
| D-Link | R03 | earlier up to, but not including, 1.10.01 | 1.10.01 |
| D-Link | R04 | earlier up to, but not including, 1.10.01 | 1.10.01 |
| D-Link | R12 | earlier up to, but not including, 1.10.01 | 1.10.01 |
| D-Link | R18 | earlier up to, but not including, 1.10.01 | 1.10.01 |
| D-Link | E30 | earlier up to, but not including, 1.10.02 | 1.10.02 |
| D-Link | M30 | earlier up to, but not including, 1.10.02 | 1.10.02 |
| D-Link | M32 | earlier up to, but not including, 1.10.02 | 1.10.02 |
| D-Link | M60 | earlier up to, but not including, 1.10.02 | 1.10.02 |
| D-Link | R32 | earlier up to, but not including, 1.10.02 | 1.10.02 |
| D-Link | E15 | earlier up to, but not including, 1.20.01 | 1.20.01 |
| D-Link | R15 | earlier up to, but not including, 1.20.01 | 1.20.01 |
| D-Link | g403_firmware | before 1.10.01 | 1.10.01 |
| D-Link | e30_firmware | before 1.10.02 | 1.10.02 |
| D-Link | e15_firmware | before 1.20.01 | 1.20.01 |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- AdjacentThe attacker must be on the same local network segment.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. Scored by CNA (cert.org.tw).
Official description
Certain models of D-Link wireless routers contain an undisclosed factory testing backdoor. Unauthenticated attackers on the local area network can force the device to enable Telnet service by accessing a specific URL and can log in by using the administrator credentials obtained from analyzing the firmware.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Use of Hard-coded Credentials
The product contains hard-coded credentials, such as a password or cryptographic key.
How developers prevent this class of flaw
- For outbound authentication: store passwords, keys, and other credentials outside of the code in a strongly-protected, encrypted configuration file or database that is protected from access by all outsiders, including other local users on the same system. Properly protect the key (CWE-320). If you cannot use encryption to protect the file, then make sure that the permissions are as restrictive as possible. In Windows environments, the Encrypted File System (EFS) may provide some protection.
- For inbound authentication: Rather than hard-code a default username and password, key, or other authentication credentials for first time logins, utilize a first login mode that requires the user to enter a unique strong password or key.
- If the product must contain hard-coded credentials or they cannot be removed, perform access control checks and limit which entities can access the feature that requires the hard-coded credentials. For example, a feature might only be enabled through the system console instead of through a network connection.
More Use of Hard-coded Credentials vulnerabilities (CWE-798)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: yes, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Other references
Recent Use of Hard-coded Credentials vulnerabilities
- 7.4 High severity
- 7.1 High severity
- 9.8 Critical severity
- 9.8 Critical severity
- 9.8 Critical severity
- 8.0 High severity
Spotted an error? Tell us.