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

  • Critical 9.8

    FydeOS for PC 17.1 R114, FydeOS for VMware 17.0 R114, FydeOS for You 17.1 R114, and OpenFyde R114 were discovered to be…

  • High 8.0

    VONETS VAP11G-300 v3.3.23.6.9 was discovered to contain hardcoded credentials for several different privileged accounts…

  • Critical 9.8

    Dover Fueling Solutions ProGauge MAGLINK LX CONSOLE Use of Hard-coded Password

    The web application for ProGauge MAGLINK LX4 CONSOLE contains an administrative-level user account with a password that cannot be changed.

  • Medium 6.5

    runofast Indoor Security Camera for Baby Monitor has a default password of password for the root account. This allows a…

  • Critical 9.8

    Loftware Spectrum before 4.6 HF14 uses a Hard-coded Password.

  • High 8.1

    TOTOLINK AC1200 T8 shadow.sample hard-coded password

    A vulnerability classified as critical was found in TOTOLINK AC1200 T8 4.1.5cu.861_B20230220. This vulnerability affects unknown code of the file /etc/shadow.sample. The manipulation leads to use of hard-coded password. The attack can be initiated remotely. T…

  • High 7.9

    Dell SmartFabric OS10 Software, version(s) 10.5.5.4 through 10.5.5.10 and 10.5.6.x, contain(s) an Use of Hard-coded Pas…

  • Critical 9.8

    H3C GR1100-P v100R009 was discovered to use a hardcoded password in /etc/shadow, which allows attackers to log in as ro…

  • Medium 6.4

    Identical Hardcoded Root Password for All Devices in GNCC's GC2 Indoor Security Camera 1080P allows an attacker with ph…

  • High 8.8

    D-Link DIR-300 REVA FIRMWARE v1.06B05_WW contains hardcoded credentials in the Telnet service.

  • High 7.5

    An issue in Horizon Business Services Inc. Caterease 16.0.1.1663 through 24.0.1.2405 and possibly later versions, allow…

  • Critical 9.8
    CVE-2024-7332 Scanner template EPSS 21%

    TOTOLINK CP450 Telnet Service product.ini hard-coded password

    A vulnerability was found in TOTOLINK CP450 4.1.0cu.747_B20191224. It has been classified as critical. This affects an unknown part of the file /web_cste/cgi-bin/product.ini of the component Telnet Service. The manipulation leads to use of hard-coded password…

  • Low 2.6

    TOTOLINK LR1200 shadow.sample hard-coded password

    A vulnerability was found in TOTOLINK LR1200 9.3.1cu.2832. It has been classified as problematic. This affects an unknown part of the file /etc/shadow.sample. The manipulation leads to use of hard-coded password. The complexity of an attack is rather high. Th…

  • Low 3.5

    TOTOLINK A3000RU product.ini hard-coded password

    A vulnerability was found in TOTOLINK A3000RU 5.9c.5185. It has been rated as problematic. This issue affects some unknown processing of the file /web_cste/cgi-bin/product.ini. The manipulation leads to use of hard-coded password. The exploit has been disclos…

  • Medium 5.5

    TOTOLINK A3600R Telnet Service product.ini hard-coded password

    A vulnerability was found in TOTOLINK A3600R 4.1.2cu.5182_B20201102. It has been rated as critical. This issue affects some unknown processing of the file /web_cste/cgi-bin/product.ini of the component Telnet Service. The manipulation leads to use of hard-cod…

  • Low 2.5

    TOTOLINK A3300R shadow.sample hard-coded password

    A vulnerability has been found in TOTOLINK A3300R 17.0.0cu.557_B20221024 and classified as problematic. Affected by this vulnerability is an unknown functionality of the file /etc/shadow.sample. The manipulation leads to use of hard-coded password. It is poss…

  • High 7.5

    AdTran 834-5 HDC17600021F1 (SmartOS 11.1.1.1) devices enable the SSH service by default and have a hidden, undocumented…

  • Critical 9.8

    ZKTeco ZKBio CVSecurity v6.1.1 was discovered to contain a hardcoded cryptographic key.

  • Critical 9.8

    A hard-coded password vulnerability exists in the telnetd functionality of LevelOne WBR-6013 RER4_A_v3411b_2T2R_LEV_09_…

  • Critical 9.8

    mySCADA myPRO Use of Hard-coded Password

    mySCADA myPRO uses a hard-coded password which could allow an attacker to remotely execute code on the affected device.

  • Critical 9.8

    H3C Magic R230 V100R002 was discovered to contain a hardcoded password vulnerability in /etc/shadow, which allows attac…

  • High 7.8

    Hard-coded password in FileCatalyst Direct 3.8.10 Build 138 TransferAgent (and earlier) and FileCatalyst Workflow 5.1.6 Build 130 (and earlier)

    A hard-coded password in the FileCatalyst TransferAgent can be found which can be used to unlock the keystore from which contents may be read out, for example, the private key for certificates. Exploit of this vulnerability could lead to a machine-in-the-midd…

  • High 7.1

    Hardcoded credentials

    Toshiba printers contain hardcoded credentials. As for the affected products/models/versions, see the reference URL.

  • Critical 9.4

    Hardcoded credentials in TerraMaster TOS firmware through 5.1 allow a remote attacker to successfully login to the mail…

  • High 8.8

    TRENDnet TEW-814DAP v1_(FW1.01B01) was discovered to contain a hardcoded password vulnerability in /etc/shadow.sample, …

  • Medium 5.7

    A vulnerability exists in the message queueing mechanism that if exploited can lead to the exposure of resources or fun…

  • Critical 9.3

    Hardcoded password in Estomed Sp. z o.o. Simple Care software

    Use of hard-coded password to the patients' database allows an attacker to retrieve sensitive data stored in the database. The password is the same among all Simple Care software installations. This issue affects Estomed Sp. z o.o. Simple Care software in all…

  • Critical 9.3

    Hardcoded password in drEryk Gabinet

    Use of hard-coded password to the patients' database allows an attacker to retrieve sensitive data stored in the database. The password is the same among all drEryk Gabinet installations.This issue affects drEryk Gabinet software versions from 7.0.0.0 through…

  • Critical 9.3

    Hardcoded password in Eurosoft Przychodnia

    Use of hard-coded password to the patients' database allows an attacker to retrieve sensitive data stored in the database. The password is the same among all Eurosoft Przychodnia installations. This issue affects Eurosoft Przychodnia software before version 2…

  • High 8.8

    LenelS2 NetBox Hardcoded Credentials

    LenelS2 NetBox access control and event monitoring system was discovered to contain Hardcoded Credentials in versions prior to and including 5.6.1 which allows an attacker to bypass authentication requirements.

  • High 8.8

    TOTOLINK CP900L v4.1.5cu.798_B20221228 was discovered to contain a hardcoded password vulnerability in /etc/shadow.samp…

  • High 7.5

    Visual Website Collaboration, Feedback & Project Management – Atarim <= 3.22.6 - Hardcoded Credentials

    The Visual Website Collaboration, Feedback & Project Management – Atarim plugin for WordPress is vulnerable to unauthorized access in all versions up to, and including, 3.22.6. This is due to the use of hardcoded credentials to authenticate all the incoming A…

  • Critical 9.8

    CyberPower PowerPanel business Use of Hard-coded Password

    CyberPower PowerPanel business application code contains a hard-coded JWT signing key. This could result in an attacker forging JWT tokens to bypass authentication.

  • Critical 9.8

    CyberPower PowerPanel business Use of Hard-coded Password

    CyberPower PowerPanel business application code contains a hard-coded set of authentication credentials. This could result in an attacker bypassing authentication and gaining administrator privileges.

  • Medium 4.8

    An issue was discovered in linqi before 1.4.0.1 on Windows. There is a hardcoded password salt.

  • Critical 10.0

    A vulnerability has been identified in SIMATIC CN 4100 (All versions < V3.0). The affected device contains hard coded p…

  • Critical 9.8

    TOTOLINK EX200 V4.0.3c.7646_B20201211 was discovered to contain a hardcoded password for root at /etc/shadow.sample.

  • High 8.8

    TOTOLINK CP450 v4.1.0cu.747_B20191224 was discovered to contain a hardcoded password vulnerability in /etc/shadow.sampl…

  • Medium 6.3

    D-Link DCS-8300LHV2 ONVIF Hardcoded PIN Authentication Bypass Vulnerability

    D-Link DCS-8300LHV2 ONVIF Hardcoded PIN Authentication Bypass Vulnerability. This vulnerability allows network-adjacent attackers to bypass authentication on affected installations of D-Link DCS-8300LHV2 IP cameras. Authentication is not required to exploit t…

  • High 8.8

    D-Link DAP-1360 Hardcoded Credentials Authentication Bypass Vulnerability

    D-Link DAP-1360 Hardcoded Credentials Authentication Bypass Vulnerability. This vulnerability allows network-adjacent attackers to bypass authentication on affected installations of D-Link DAP-1360 routers. Authentication is not required to exploit this vulne…