Skip to content
OpenAdvisories

Weakness (CWE)

CWE-798: Use of Hard-coded Credentials

Base Draft

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

How to prevent it (5 mitigations)
  1. Architecture and Design

    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 [REF-7].

    In Windows environments, the Encrypted File System (EFS) may provide some protection.

  2. Architecture and Design

    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.

  3. Architecture and Design

    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.

  4. Architecture and Design

    For inbound authentication using passwords: apply strong one-way hashes to passwords and store those hashes in a configuration file or database with appropriate access control. That way, theft of the file/database still requires the attacker to try to crack the password. When handling an incoming password during authentication, take the hash of the password and compare it to the saved hash.

    Use randomly assigned salts for each separate hash that is generated. This increases the amount of computation that an attacker needs to conduct a brute-force attack, possibly limiting the effectiveness of the rainbow table method.

  5. Architecture and Design

    For front-end to back-end connections: Three solutions are possible, although none are complete.

    - The first suggestion involves the use of generated passwords or keys that are changed automatically and must be entered at given time intervals by a system administrator. These passwords will be held in memory and only be valid for the time intervals.

    - Next, the passwords or keys should be limited at the back end to only performing actions valid for the front end, as opposed to having full access.

    - Finally, the messages sent should be tagged and checksummed with time sensitive values so as to prevent replay-style attacks.

Source: MITRE CWE-798

1,055 results · Feed

  • Critical 9.4

    A CWE-798: Use of Hard-coded Credentials vulnerability exists that could allow arbitrary code to be executed when root …

  • High 8.8

    KUKA KR C4 - Use of Hard-Coded Credentials

    An attacker can gain VxWorks Shell after login due to hard-coded credentials on a KUKA KR C4 control software for versions prior to 8.7 or any product running KSS.

  • Critical 9.8

    KUKA KR C4 - Use of Hard-Coded Credentials

    An attacker can gain full access (read/write/delete) to sensitive folders due to hard-coded credentials on KUKA KR C4 control software for versions prior to 8.7 or any product running KSS.

  • Medium 6.5

    Telecommunication Software SAMwin Contact Center Suite Credential SAMwinLIBVB.dll getCurrentDBVersion hard-coded credentials

    A vulnerability was found in Telecommunication Software SAMwin Contact Center Suite 5.1. It has been rated as critical. Affected by this issue is the function getCurrentDBVersion in the library SAMwinLIBVB.dll of the credential handler. Authentication is poss…

  • High 8.8

    A weak default administrator password for the web interface and serial port was reported in some Lenovo Personal Cloud …

  • Medium 6.8

    A weak default password for the serial port was reported in some Lenovo Personal Cloud Storage devices that could allow…

  • High 7.5

    Apache Doris hardcoded cryptography initialization

    Apache Doris, prior to 1.0.0, used a hardcoded key and IV to initialize the cipher used for ldap password, which may lead to information disclosure.

  • High 7.3

    ASUS WebStorage - Use of Hard-coded Credentials

    ASUS WebStorage has a hardcoded API Token in the APP source code. An unauthenticated remote attacker can use this token to establish connections with the server and carry out login attempts to general user accounts. A successful login to a general user accoun…

  • Medium 6.8
    CVE-2022-28810 Exploited Public exploit EPSS 71%

    Zoho ManageEngine ADSelfService Plus before build 6122 allows a remote authenticated administrator to execute arbitrary…

    KEV Mar 7, 2023
  • Low 3.3

    B. Braun SpaceCom, Battery Pack SP with Wi-Fi, and Data module compactplus

    Hard-coded credentials in the B. Braun Melsungen AG SpaceCom Version L81/U61 and earlier, and the Data module compactplus Versions A10 and A11 enable attackers with command line access to access the device’s Wi-Fi module.

  • Critical 10.0

    An authentication bypass vulnerability exists in the device password generation functionality of Swift Sensors Gateway …

  • Critical 10.0

    An authentication bypass vulnerability exists in the Web Application functionality of Moxa MXView Series 3.2.4. A speci…

  • Unscored —

    Hard-coded credentials allow administrators to access the shell via the SD-WAN CLI

  • High 7.1

    Dell EMC PowerScale OneFS 8.1.x - 9.1.x contain hard coded credentials. This allows a local user with knowledge of the …

  • High 7.3
    CVE-2022-26671 Public exploit

    TAIWAN SECOM CO., LTD., a xDoor Access Control and Personnel Attendance Management system - Hard-coded Credentials

    Taiwan Secom Dr.ID Access Control system’s login page has a hard-coded credential in the source code. An unauthenticated remote attacker can use the hard-coded credential to acquire partial system information and modify system setting to cause partial disrupt…

  • High 8.4

    GE UR family hardcoded credentials

    GE UR bootloader binary Version 7.00, 7.01 and 7.02 included unused hardcoded credentials. Additionally, a user with physical access to the UR IED can interrupt the boot sequence by rebooting the UR.

  • Critical 9.8

    PTC Axeda agent and Axeda Desktop Server Use of Hard-Coded Credentials

    Axeda agent (All versions) and Axeda Desktop Server for Windows (All versions) uses hard-coded credentials for its UltraVNC installation. Successful exploitation of this vulnerability could allow a remote authenticated attacker to take full remote control of …

  • Unscored —

    The following Yokogawa Electric products hard-code the password for CAMS server applications: CENTUM VP versions from R…

  • Unscored —

    The following Yokogawa Electric products do not change the passwords of the internal Windows accounts from the initial …

  • High 8.8

    Hard coded credentials in FreeTAKServer

    FreeTAKServer 1.9.8 contains a hardcoded Flask secret key which allows attackers to create crafted cookies to bypass authentication or escalate privileges.

  • High 7.2

    Use of Hard-coded Cryptographic Key in Netmaker

    Netmaker is a platform for creating and managing virtual overlay networks using WireGuard. Prior to versions 0.8.5, 0.9.4, and 010.0, there is a hard-coded cryptographic key in the code base which can be exploited to run admin commands on a remote server if t…

  • High 8.0

    BD Viper LT System - Hardcoded Credentials

    BD Viper LT system, versions 2.0 and later, contains hardcoded credentials. If exploited, threat actors may be able to access, modify or delete sensitive information, including electronic protected health information (ePHI), protected health information (PHI)…

  • High 7.0

    BD Pyxis Products - Hardcoded Credentials

    Hardcoded credentials are used in specific BD Pyxis products. If exploited, threat actors may be able to gain access to the underlying file system and could potentially exploit application files for information that could be used to decrypt application creden…

  • Unscored —

    A CWE-798: Use of Hard-coded Credentials vulnerability exists. If an attacker were to obtain the TLS cryptographic key …

  • Unscored —

    A vulnerability has been identified in SICAM TOOLBOX II (All versions). Affected applications use a circumventable acce…

  • Unscored —

    A CWE-798: Use of Hard-coded Credentials vulnerability exists that could result in information disclosure. If an attack…

  • Medium 6.3

    Fresenius Kabi Agilia Connect Infusion System hard coded credentials

    Vigilant Software Suite (Mastermed Dashboard) version 2.0.1.3 contains service credentials likely to be common across all instances. An attacker in possession of the password may gain privileges on all installations of this software.

  • Critical 9.8

    Le-yan Co., Ltd. dental management system - Hard-coded Credentials

    The Le-yan dental management system contains a hard-coded credentials vulnerability in the web page source code, which allows an unauthenticated remote attacker to acquire administrator’s privilege and control the system or disrupt service.

  • Unscored —

    A vulnerability has been identified in CP-8000 MASTER MODULE WITH I/O -25/+70°C (All versions < V16.20), CP-8000 MASTER…

  • Critical 9.1

    Bot token exposed in main.py

    PuddingBot is a group management bot. In version 0.0.6-b933652 and prior, the bot token is publicly exposed in main.py, making it accessible to malicious actors. The bot token has been revoked and new version is already running on the server. As of time of pu…

  • High 7.5

    Hardcoded credentials

    Apache Kylin provides encryption classes PasswordPlaceholderConfigurer to help users encrypt their passwords. In the encryption algorithm used by this encryption class, the cipher is initialized with a hardcoded key and IV. If users use class PasswordPlacehol…

  • High 8.1

    Philips IntelliBridge EC 40 and EC 80 Hub Use of Hard-coded Credentials

    IntelliBridge EC 40 and 60 Hub (C.00.04 and prior) contains hard-coded credentials, such as a password or a cryptographic key, which it uses for its own inbound authentication, outbound communication to external components, or encryption of internal data.

  • Medium 6.8

    Hard credentials discovered in SolarWinds Web Help Desk which allows to execute Arbitrary Hibernate Queries

    Hard coded credentials discovered in SolarWinds Web Help Desk product. Through these credentials, the attacker with local access to the Web Help Desk host machine allows to execute arbitrary HQL queries against the database and leverage the vulnerability to s…

  • High 8.1
    CVE-2021-44207 Exploited EPSS 17%

    Acclaim USAHERDS through 7.4.0.1 uses hard-coded credentials.

    KEV Dec 23, 2024
  • High 8.1

    HejHome IP Camera use of hard-coded credentials vulnerability

    HejHome GKW-IC052 IP Camera contained a hard-coded credentials vulnerability. This issue allows remote attackers to operate the IP Camera.(reboot, factory reset, snapshot etc..)

  • Critical 9.8

    ECOA BAS controller - Use of Hard-coded Credentials

    ECOA BAS controller is vulnerable to hard-coded credentials within its Linux distribution image, thus remote attackers can obtain administrator’s privilege without logging in.

  • Critical 10.0

    An information disclosure vulnerability exists in the WiFi Smart Mesh functionality of D-LINK DIR-3040 1.13B03. A speci…

  • Medium 6.5

    Hard-coded Credentials in Enbra Wireless M-Bus devices

    Multiple Wireless M-Bus devices by Enbra use Hard-coded Credentials in Security mode 5 without an option to change the encryption key. An adversary can learn all information that is available in Enbra EWM.

  • Critical 9.6

    Insufficiently Protected Credentials Vulnerability in QSW-M2116P-2T2S and QuNetSwitch

    A vulnerability involving insecure storage of sensitive information has been reported to affect QSW-M2116P-2T2S and QNAP switches running QuNetSwitch. If exploited, this vulnerability allows remote attackers to read sensitive information by accessing the unre…

  • Critical 9.8

    AdaptiveScale LXDUI Hardcoded JWT Secret Key

    A Hardcoded JWT Secret Key in metadata.py in AdaptiveScale LXDUI through 2.1.3 allows attackers to gain admin access to the host system.