CWEweakness

CWE-656 Reliance on Security Through Obscurity

Official page ↗
Alternate terms
Never Assuming your secrets are safe
Abstraction
Class
Structure
Simple
Status
Draft
Languages
Not Language-Specific
CWE version
5.0

Description

The product uses a protection mechanism whose strength depends heavily on its obscurity, such that knowledge of its algorithms or key data is sufficient to defeat the mechanism.

Common consequences

• Confidentiality, Integrity, Availability: Varies by Context — The reliance on "security through obscurity" can produce resultant weaknesses if an attacker is able to reverse engineer the inner workings of the mechanism.

Potential mitigations

• [Architecture and Design] Always consider whether knowledge of your code or design is sufficient to break it. Reverse engineering is a highly successful discipline, and financially feasible for motivated adversaries. Black-box techniques are established for binary analysis of executables that use obfuscation, runtime analysis of proprietary protocols, inferring file formats, and others. • [Architecture and Design] When available, use publicly-vetted algorithms and procedures, as these are more likely to undergo more extensive security analysis and testing. This is especially the case with encryption and authentication. • [Architecture and Design] Obscurity can be one small part of defense in depth, since it can create more work for an attacker; however, it is a significant risk if used as the primary means of protection.

Observed examples

• CVE-2006-6588: Reliance on hidden form fields in a web application. Many web application vulnerabilities exist because the developer did not consider that "hidden" form fields can be processed using a modified client. • CVE-2006-7142: Hard-coded cryptographic key stored in executable program. • CVE-2005-4002: Hard-coded cryptographic key stored in executable program. • CVE-2006-4068: Hard-coded hashed values for username and password contained in client-side script, allowing brute-force offline attacks.

Related

Observed example · CVE (4)

  • CVE-2006-7142 The centralized management feature for Utimaco Safeguard stores hard-coded cryptographic keys in executable programs for encrypted… vulnerability
  • CVE-2006-6588 The forum implementation in the ecommerce component in the Apache Open For Business Project (OFBiz) trusts the (1) dataResourceTypeId, (2)… vulnerability
  • CVE-2006-4068 The pswd.js script relies on the client to calculate whether a username and password match hard-coded hashed values for a server, and uses… vulnerability
  • CVE-2005-4002 WebEOC before 6.0.2 uses the same secret key for all installations, which allows attackers with the key to decrypt data from any WebEOC… vulnerability

Can precede · CWE (3)

  • CWE-259 Use of Hard-coded Password weakness
  • CWE-321 Use of Hard-coded Cryptographic Key weakness
  • CWE-472 External Control of Assumed-Immutable Web Parameter weakness

Child of · CWE (2)

  • CWE-657 Violation of Secure Design Principles weakness
  • CWE-693 Protection Mechanism Failure weakness

Referenced by CVE · weakness (12)

  • CVE-2026-112067 The extension hides the correct answer to each CAPTCHA inside the image data of the CAPTCHA itself. vulnerability
  • CVE-2026-7161 An insufficient encryption vulnerability exists in the Device Authentication functionality of GeoVision GV-IP Device Utility 9.0.5. vulnerability
  • CVE-2026-42363 An insufficient encryption vulnerability exists in the Device Authentication functionality of GeoVision GV-IP Device Utility 9.0.5. vulnerability
  • CVE-2025-59093 Exos 9300 instances are using a randomly generated database password to connect to the configured MSSQL server. vulnerability
  • CVE-2025-7020 An incorrect encryption implementation vulnerability exists in the system log dump feature of BYD's DiLink 3.0 OS (e.g. vulnerability
  • CVE-2025-25983 An issue in Macro-video Technologies Co.,Ltd V380 Pro android application 2.1.44 and V380 Pro android application 2.1.64 allows an attacker… vulnerability
  • CVE-2024-12297 Moxa’s Ethernet switch is vulnerable to an authentication bypass because of flaws in its authorization mechanism. vulnerability
  • CVE-2024-9138 Moxa’s cellular routers, secure routers, and network security appliances are affected by a high-severity vulnerability, CVE-2024-9138. vulnerability
  • CVE-2024-5244 TP-Link Omada ER605 Reliance on Security Through Obscurity Vulnerability. vulnerability
  • CVE-2020-10284 No authentication is required to control the robot inside the network, moreso the latest available user manual shows an option that lets… vulnerability
  • CVE-2020-10286 the main user account has restricted privileges but is in the sudoers group and there is not any mechanism in place to prevent sudo su or… vulnerability
  • CVE-2020-10277 There is no mechanism in place to prevent a bad operator to boot from a live OS image, this can lead to extraction of sensible files (such… vulnerability

Referenced by CWE · peer of (1)

  • CWE-603 Use of Client-Side Authentication weakness

Referenced by OWASP · mapped cwe (2)