Skip to content
OpenAdvisories

Weakness (CWE)

CWE-259: Use of Hard-coded Password

Variant Draft

The product contains a hard-coded password, which it uses for its own inbound authentication or for outbound authentication to external components.

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

    For outbound authentication: store passwords 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.

  2. Architecture and Design

    For inbound authentication: Rather than hard-code a default username and password for first time logins, utilize a "first login" mode that requires the user to enter a unique strong password.

  3. Architecture and Design

    Perform access control checks and limit which entities can access the feature that requires the hard-coded password. 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: apply strong one-way hashes to your 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 receiving an incoming password during authentication, take the hash of the password and compare it to the hash that you have saved.

    Use randomly assigned salts for each separate hash that you generate. 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 which 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 used 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-259

227 results · Feed

  • High 7.5

    Use of hard-coded password in the GMS ECM endpoint leading to authentication bypass vulnerability. This issue affects G…

  • Medium 5.3

    The LoMag WareHouse Management application version 1.0.20.120 and older were to utilize hard-coded passwords by default…

  • High 8.8

    DYMO LabelWriter Print Server through 2.366 contains a backdoor hard-coded password that could allow an attacker to tak…

  • Medium 5.4

    Default Privileged Account Credentials Vulnerability in ONTAP Select Deploy administration utility

    ONTAP Select Deploy administration utility versions 9.12.1.x, 9.13.1.x and 9.14.1.x contain hard-coded credentials that could allow an attacker to view Deploy configuration information and modify the account credentials.

  • High 8.8

    In Unify CP IP Phone firmware 1.10.4.3, Weak Credentials are used (a hardcoded root password).

  • Critical 9.8

    Incorrect Access Control vulnerability in ZLMediaKit versions 1.0 through 8.0, allows remote attackers to escalate priv…

  • Critical 9.8

    Use of Hard-coded Password in NEC Corporation Aterm WG1800HP4, WG1200HS3, WG1900HP2, WG1200HP3, WG1800HP3, WG1200HS2, W…

  • Medium 4.3

    Chirp Systems Chirp Access Use of Hard-coded Password

    The Chirp Access app contains a hard-coded password, BEACON_PASSWORD. An attacker within Bluetooth range could change configuration settings within the Bluetooth beacon, effectively disabling the application's ability to notify users when they are near a Beac…

  • High 7.5

    Unitronics Unistream Unilogic – Versions prior to 1.35.227 CWE-259: Use of Hard-coded Password

    Unitronics Unistream Unilogic – Versions prior to 1.35.227 - CWE-259: Use of Hard-coded Password may allow disclosing Sensitive Information Embedded inside Device's Firmware

  • Medium 4.3

    Microsoft Edge for Android (Chromium-based) Information Disclosure Vulnerability

    Microsoft Edge for Android (Chromium-based) Information Disclosure Vulnerability

  • Medium 6.5

    IBM Storage Fusion HCI information disclosure

    IBM Storage Fusion HCI 2.1.0 through 2.6.1 contains hard-coded credentials, such as a password or cryptographic key, which it uses for its own inbound authentication, outbound communication to external components, or encryption of internal data. IBM X-Force I…

  • Low 3.5

    Hard-coded password for access to power controller chip memory

    The password for access to the debugging console of the PoWer Controller chip (PWC) of the MIB3 infotainment is hard-coded in the firmware. The console allows attackers with physical access to the MIB3 unit to gain full control over the PWC chip. Vulnerabilit…

  • Unscored —

    SonicOS Use of Hard-coded Password vulnerability in the 'dynHandleBuyToolbar' demo function.

  • Medium 6.3
    CVE-2023-5222 Public exploit Scanner template EPSS 80%

    Viessmann Vitogate 300 Web Management Interface vitogate.cgi isValidUser hard-coded password

    A vulnerability classified as critical was found in Viessmann Vitogate 300 up to 2.1.3.0. This vulnerability affects the function isValidUser of the file /cgi-bin/vitogate.cgi of the component Web Management Interface. The manipulation leads to use of hard-co…

  • Medium 6.3

    Juplink RX4-1500 Hard-coded Credential Vulnerability

    Hard-coded credentials in Juplink RX4-1500 versions V1.0.2 through V1.0.5 allow unauthenticated attackers to log in to the web interface or telnet service as the 'user' user.

  • High 8.4

    Motorola MBTS Base Radio accepts hard-coded backdoor password. The Motorola MBTS Base Radio Man Machine Interface (MMI)…

  • Critical 9.4

    Motorola MBTS Site Controller accepts hard-coded backdoor password. The Motorola MBTS Site Controller Man Machine Inter…

  • Medium 6.3

    OTCMS hard-coded password

    A vulnerability classified as critical was found in OTCMS up to 6.62. This vulnerability affects unknown code. The manipulation of the argument username/password with the input admin leads to use of hard-coded password. The exploit has been disclosed to the p…

  • Medium 6.2

    Authentication bypass vulnerability in MELSEC iQ-R Series / iQ-F Series EtherNet/IP Modules

    Use of Hard-coded Password vulnerability in FTP function on Mitsubishi Electric Corporation MELSEC iQ-R Series EtherNet/IP module RJ71EIP91 and MELSEC iQ-F Series EtherNet/IP module FX5-ENET/IP allows a remote unauthenticated attacker to obtain a hard-coded p…

  • High 8.4

    [minikube] ssh server with default password

    This vulnerability enables ssh access to minikube container using a default password.

  • Medium 6.3

    cnoa OA hard-coded password

    A vulnerability, which was classified as problematic, has been found in cnoa OA up to 5.1.1.5. Affected by this issue is some unknown functionality of the file /index.php?app=main&func=passport&action=login. The manipulation leads to use of hard-coded passwor…

  • Critical 9.8

    USR USR-G806 Web Management Page hard-coded password

    A vulnerability, which was classified as critical, was found in USR USR-G806 1.0.41. Affected is an unknown function of the component Web Management Page. The manipulation of the argument username/password with the input root leads to use of hard-coded passwo…

  • Medium 4.3

    A vulnerability has been identified in SIMATIC Cloud Connect 7 CC712 (All versions >= V2.0 < V2.1), SIMATIC Cloud Conne…

  • Low 3.9

    Deye/Revolt/Bosswerk Inverter Access Point Setting hard-coded password

    A vulnerability was found in Deye/Revolt/Bosswerk Inverter MW3_15U_5406_1.47/MW3_15U_5406_1.471. It has been rated as problematic. This issue affects some unknown processing of the component Access Point Setting Handler. The manipulation with the input 123456…

  • Critical 10.0

    CVE-2022-45444

    Sewio’s Real-Time Location System (RTLS) Studio version 2.0.0 up to and including version 2.6.2 contains hard-coded passwords for select users in the application’s database. This could allow a remote attacker to login to the database with unrestricted access.

  • High 7.3

    Netis Netcore Router hard-coded password

    A vulnerability classified as critical has been found in Netis Netcore Router. This affects an unknown part. The manipulation leads to use of hard-coded password. It is possible to initiate the attack remotely. The identifier VDB-217593 was assigned to this v…

  • Medium 6.3

    taoeffect Empress hard-coded password

    A vulnerability, which was classified as critical, has been found in taoeffect Empress. Affected by this issue is some unknown functionality. The manipulation leads to use of hard-coded password. The patch is identified as 557e177d8a309d6f0f26de46efb38d43e000…

  • Critical 9.8

    Daikin SVMPC1 version 2.1.22 and prior and SVMPC2 version 1.2.3 and prior are vulnerable to an attacker obtaining user …

  • High 7.5

    Use of Hard-coded Password vulnerability in Mitsubishi Electric Corporation GX Works3 versions from 1.015R to 1.095Z al…

  • Medium 5.6

    Use of Hard-coded Password vulnerability in Mitsubishi Electric GX Works3 versions from 1.000A to 1.090U, GT Designer3 …

  • High 7.5

    A hard-coded password vulnerability exists in the libcommonprod.so prod_change_root_passwd functionality of TCL LinkHub…

  • Critical 9.8

    The Motorola ACE1000 RTU through 2022-05-02 ships with a hardcoded SSH private key and initialization scripts (such as …

  • Critical 9.8

    SICUNET Access Controller hard-coded password

    A vulnerability was found in SICUNET Access Controller 0.32-05z. It has been classified as very critical. This affects an unknown part. The manipulation leads to weak authentication. It is possible to initiate the attack remotely.

  • Medium 4.3

    A hard-coded password vulnerability exists in the console infactory functionality of InHand Networks InRouter302 V3.5.3…

  • Critical 9.8

    Bender Charge Controller: Hardcoded Credentials in Charge Controller

    In Bender/ebee Charge Controllers in multiple versions are prone to Hardcoded Credentials. Bender charge controller CC612 in version 5.20.1 and below is prone to hardcoded ssh credentials. An attacker may use the password to gain administrative access to the …

  • Critical 9.1

    Dell EMC CloudLink 7.1 and all prior versions contain a Hard-coded Password Vulnerability. A remote high privileged att…

  • Critical 9.8

    Moxa MXview Network Management Software

    A use of hard-coded password vulnerability in the Moxa MXview Network Management software Versions 3.x to 3.2.2 may allow an attacker to gain access through accounts using default passwords

  • 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…

  • High 7.5

    Dell EMC Data Protection Advisor versions 6.4, 6.5 and 18.1 contain an undocumented account with limited privileges tha…

  • Unscored —

    A CWE-259: Use of Hard-coded Password vulnerability exists in EVlink City (EVC1S22P4 / EVC1S7P4 all versions prior to R…