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

54 results · Clear filters · Feed

  • Medium 5.3

    PipraPay pp-token anti-CSRF pp-adapter.php hash_hmac hard-coded credentials

    A weakness has been identified in PipraPay 3.0.0. Affected by this vulnerability is the function hash_hmac of the file pp-content/pp-include/pp-adapter.php of the component pp-token anti-CSRF Handler. Executing a manipulation can lead to hard-coded credential…

  • Medium 6.3

    langgenius dify Sandbox Run __init__.py hard-coded credentials

    A vulnerability was found in langgenius dify up to 1.18.0/2.0.0-beta.2. Affected by this vulnerability is an unknown functionality of the file api/configs/feature/__init__.py of the component Sandbox Run Handler. The manipulation results in hard-coded credent…

  • Medium 6.3

    meetecho janus-gateway Admin API admin.js hard-coded credentials

    A security vulnerability has been detected in meetecho janus-gateway up to 1.4.2. This vulnerability affects unknown code of the file html/demos/admin.js of the component Admin API. Such manipulation leads to hard-coded credentials. The attack can be executed…

  • Medium 5.3

    FunnyWolf Viper config hard-coded credentials

    A security flaw has been discovered in FunnyWolf Viper up to 3.1.11. The affected element is an unknown function of the file /root/viper/.git/config. Performing a manipulation results in hard-coded credentials. Remote exploitation of the attack is possible. T…

  • Medium 6.3

    topoteretes cognee JWT Signing Key get_api_auth_backend.py get_user_id_by_email hard-coded credentials

    A security flaw has been discovered in topoteretes cognee up to 1.5.4. The affected element is the function get_user_id_by_email of the file cognee/modules/users/authentication/get_api_auth_backend.py of the component JWT Signing Key Handler. The manipulation…

  • Medium 5.6

    Dell Live Optics Collector, versions prior to 27.2.13.310, contain(s) a Use of Hard-coded Password vulnerability. A low…

  • Medium 5.6

    sfturing hosp_order jdbc.properties hard-coded credentials

    A flaw has been found in sfturing hosp_order up to 627f426331da8086ce8fff2017d65b1ddef384f8. This affects an unknown part of the file ssm_pro/src/main/resources/jdbc.properties. This manipulation causes hard-coded credentials. It is possible to initiate the a…

  • Medium 5.0

    NVIDIA Infrastructure Controller for Linux contains a vulnerability where an attacker could cause use of a hard-coded p…

  • Medium 4.1

    Tenda CP3 hostapd hard-coded credentials

    A security vulnerability has been detected in Tenda CP3 27.5.57.101. Impacted is an unknown function of the file custom-x/softap/hostapd. Such manipulation of the argument wpa_passphrase leads to hard-coded credentials. The attack can be launched remotely. Th…

  • Medium 5.3
    CVE-2026-20316 Exploited · Ransomware EPSS 35%

    Cisco Secure Firewall Management Center Software Static Credential Vulnerability

    A vulnerability in the web interface of Cisco Secure Firewall Management Center (FMC) Software could allow an unauthenticated, remote attacker to log in to an affected device using a low-privileged account to access sensitive data within the impacted systems.…

    KEV Jul 29, 2026
  • Medium 5.3

    SourceCodester Onlne Examination & Learning Management System import_users.php hard-coded password

    A vulnerability has been found in SourceCodester Onlne Examination & Learning Management System and Syllabus-aligned Learning Management and Examination System 1.0. Affected by this issue is some unknown functionality of the file import_users.php. The manipul…

  • Medium 5.3

    SourceCodester Barangay Resident Profiling and Information Management System Password Reset passsword_reset.php hard-coded password

    A vulnerability has been found in SourceCodester Barangay Resident Profiling and Information Management System 1.0. The impacted element is an unknown function of the file passsword_reset.php of the component Password Reset Handler. Such manipulation of the a…

  • Medium 5.3

    Active IQ OneCollect version 2.7.3 contains hard-coded credentials that could allow an authenticated attacker with low …

  • Medium 5.3

    Active IQ Config Advisor version 6.7.3 contains hard-coded credentials that could allow an authenticated attacker with …

  • Medium 5.6

    liangliangyy DjangoBlog Setting settings.py hard-coded credentials

    A security flaw has been discovered in liangliangyy DjangoBlog up to 2.1.0.0. This affects an unknown function of the file djangoblog/settings.py of the component Setting Handler. The manipulation of the argument SECRET_KEY results in hard-coded credentials. …

  • Medium 6.4

    Siklu EtherHaul 8010 siklu-uimage-nxp-enc-10_6_2-18707-ea552dc00b devices have a static root password.

  • Medium 5.3

    i-SENS SmartLog App air.SmartLog.android hard-coded credentials

    A weakness has been identified in i-SENS SmartLog App up to 2.6.8 on Android. This affects an unknown function of the component air.SmartLog.android. This manipulation causes hard-coded credentials. The attack can only be executed locally. The exploit has bee…

  • Medium 6.6

    Hyper Data Protector

    A use of hard-coded password vulnerability has been reported to affect Hyper Data Protector. The remote attackers can then exploit the vulnerability to gain unauthorized access. We have already fixed the vulnerability in the following version: Hyper Data Prot…

  • Medium 5.3

    KiotViet Sync <= 1.8.5 - Use of Hard-coded Password to Authorization Bypass

    The KiotViet Sync plugin for WordPress is vulnerable to authorizarion bypass in all versions up to, and including, 1.8.5. This is due to the plugin using a hardcoded password for authentication in the QueryControllerAdmin::authenticated function. This makes i…

  • Medium 6.5

    A hard-coded weak password vulnerability has been discovered in all Magic-branded devices from Chinese network equipmen…

  • Medium 6.7

    Tenda RP3 Pro Firmware Update force_upgrade.sh hard-coded password

    A flaw has been found in Tenda RP3 Pro up to 22.5.7.93. This impacts an unknown function of the file force_upgrade.sh of the component Firmware Update Handler. Executing manipulation of the argument current_force_upgrade_pwd can lead to use of hard-coded pass…

  • Medium 5.3

    yeqifu carRental Druid login.html hard-coded credentials

    A vulnerability was determined in yeqifu carRental up to 3fabb7eae93d209426638863980301d6f99866b3. Affected by this vulnerability is an unknown functionality of the file /carRental_war/druid/login.html of the component Druid. Executing manipulation can lead t…

  • Medium 6.9
    CVE-2025-57788 Public exploit

    Unauthorized API Access Risk

    A vulnerability in a known login mechanism allows unauthenticated attackers to execute API calls without requiring user credentials. RBAC helps limit the exposure but does not eliminate risk.

  • Medium 6.8

    D-Link DIR-890L UART Port rgbin hard-coded credentials

    A vulnerability, which was classified as critical, has been found in D-Link DIR-890L up to 111b04. This issue affects some unknown processing of the file rgbin of the component UART Port. The manipulation leads to hard-coded credentials. It is possible to lau…

  • Medium 4.3

    NuCom NC-WR744G Console Application hard-coded credentials

    A vulnerability classified as critical was found in NuCom NC-WR744G 8.5.5 Build 20200530.307. This vulnerability affects unknown code of the component Console Application. The manipulation of the argument CMCCAdmin/useradmin/CUAdmin leads to hard-coded creden…

  • Medium 5.3

    Netwrix Directory Manager v.11.0.0.0 and before & after v.11.1.25134.03 contains a hardcoded password.

  • Medium 6.5

    TOTOLINK A810R V4.1.2cu.5182_B20201026 was discovered to contain a hardcoded password for the telnet service in product…

  • Medium 6.8

    An issue in Macro-video Technologies Co.,Ltd V380E6_C1 IP camera (Hw_HsAKPIQp_WF_XHR) 1020302 allows a physically proxi…

  • Medium 4.3

    Audi UTR Dashcam Video Stream hard-coded credentials

    A vulnerability classified as problematic was found in Audi UTR Dashcam 2.0. Affected by this vulnerability is an unknown functionality of the component Video Stream Handler. The manipulation leads to hard-coded credentials. The attack can only be initiated w…

  • Medium 5.3

    IROAD X5 Mobile App API Endpoint hard-coded credentials

    A vulnerability classified as critical has been found in IROAD X5 Mobile App up to 5.2.5 on Android. Affected is an unknown function of the component API Endpoint. The manipulation leads to hard-coded credentials. It is possible to launch the attack remotely.…

  • Medium 6.4

    Use of Hard-Coded Password Vulnerability in ELI Electrocardiograph Devices

    A use of hard-coded password vulnerability may allow authentication abuse.This issue affects ELI 380 Resting Electrocardiograph: Versions 2.6.0 and prior; ELI 280/BUR280/MLBUR 280 Resting Electrocardiograph: Versions 2.3.1 and prior; ELI 250c/BUR 250c Resting…

  • Medium 6.5

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

  • Medium 6.4

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

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

  • Medium 5.7

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

  • Medium 4.8

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

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

  • Medium 5.3

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

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

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