Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1310 CNY

100%

CWE-1076 (对预期协议的遵守不足) — Vulnerability Class 1

1 vulnerabilities classified as CWE-1076 (对预期协议的遵守不足). AI Chinese analysis included.

CWE-1076 represents an architectural and design weakness where software artifacts fail to adhere to established industry standards or internal conventions. This deviation does not directly cause a vulnerability but significantly increases the risk of future security flaws by obscuring code logic and complicating maintenance. Attackers typically exploit this indirect weakness by leveraging the resulting complexity to identify overlooked logic errors, misconfigurations, or inconsistent input validation patterns that deviate from expected secure coding practices. To mitigate this risk, developers must enforce strict adherence to recognized frameworks and style guides through automated static analysis tools and rigorous peer reviews. Consistent documentation and standardized coding practices ensure that security controls are uniformly applied, reducing the cognitive load on security auditors and minimizing the likelihood of human error during code modifications or audits.

MITRE CWE Description
The product's architecture, source code, design, documentation, or other artifact does not follow required conventions.
Common Consequences (1)
OtherReduce Maintainability
This issue makes it more difficult to maintain the product, which indirectly affects security by making it more difficult or time-consuming to find and/or fix vulnerabilities. It also might make it easier to introduce vulnerabilities.
Examples (2)
The usage of symbolic names instead of hard-coded constants is preferred.
char buffer[1024]; ... fgets(buffer, 1024, stdin);
Bad · C
enum { MAX_BUFFER_SIZE = 1024 }; ... char buffer[MAX_BUFFER_SIZE]; ... fgets(buffer, MAX_BUFFER_SIZE, stdin);
Good · C
The following code fragment calls finalize() explicitly:
// time to clean up widget.finalize();
Bad · Java
CVE IDTitleCVSSSeverityPublished
CVE-2021-1268 Cisco IOS XR Software IPv6 Flood Denial of Service Vulnerability — Cisco IOS XR Software 7.4 High2021-02-04

Vulnerabilities classified as CWE-1076 (对预期协议的遵守不足) represent 1 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.