{"_id": "cwe_doc_1004", "title": "CWE-1004: Sensitive Cookie Without 'HttpOnly' Flag", "text": "The product uses a cookie to store sensitive information, but the cookie is not marked with the HttpOnly flag.\n\nCommon Consequences: Confidentiality Read Application Data If the HttpOnly flag is not set, then sensitive information stored in the cookie may be exposed to unintended parties. | Integrity Gain Privileges or Assume Identity If the cookie in question is an authentication cookie, then not setting the HttpOnly flag may allow an adversary to steal authentication data (e.g., a session ID) and assume the identity of the user.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1004"} {"_id": "cwe_doc_1007", "title": "CWE-1007: Insufficient Visual Distinction of Homoglyphs Presented to User", "text": "The product displays information or identifiers to a user, but the display mechanism does not make it easy for the user to distinguish between visually similar or identical glyphs (homoglyphs), which may cause the user to misinterpret a glyph and perform an unintended, insecure action.\n\nAdversaries can exploit this visual similarity for attacks such as phishing, e.g. by providing a link to an attacker-controlled hostname that looks like a hostname that the victim trusts. In a different use of homoglyphs, an adversary may create a back door username that is visually similar to the username of a regular user, which then makes it more difficult for a system administrator to detect the malicious username while reviewing logs.\n\nCommon Consequences: Integrity Confidentiality Other Varies by Context Hide Activities An attacker may ultimately redirect a user to a malicious website, by deceiving the user into believing the URL they are accessing is a trusted domain. However, the attack can also be used to forge log entries by using homoglyphs in usernames. Homoglyph manipulations are often the first step towards executing advanced attacks such as stealing a user's credentials, Cross-Site Scripting (XSS), or log forgery. If an attacker redirects a user to a malicious site, the attacker can mimic a trusted domain to steal account credentials and perform actions on behalf of the user, without the user's knowledge. Similarly, an attacker could create a username for a website that contains homoglyph characters, making it difficult for an admin to review logs and determine which users performed which actions.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1007"} {"_id": "cwe_doc_102", "title": "CWE-102: Struts: Duplicate Validation Forms", "text": "The product uses multiple Struts validation forms with the same name.\n\nCommon Consequences: Integrity Unexpected State If two validation forms have the same name, the Struts Validator arbitrarily chooses one of the forms to use for input validation and discards the other. This decision might not correspond to the programmer's expectations, possibly leading to resultant weaknesses. Moreover, it indicates that the validation logic is not up-to-date, and can indicate that other, more subtle validation errors are present.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-102"} {"_id": "cwe_doc_1021", "title": "CWE-1021: Improper Restriction of Rendered UI Layers or Frames", "text": "The web application does not restrict or incorrectly restricts frame objects or UI layers that belong to another application or domain.\n\nCommon Consequences: Access Control Gain Privileges or Assume Identity Bypass Protection Mechanism Read Application Data Modify Application Data An attacker can trick a user into performing actions that are masked and hidden from the user's view. The impact varies widely, depending on the functionality of the underlying application. For example, in a social media application, clickjacking could be used to trick the user into changing privacy settings.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1021"} {"_id": "cwe_doc_1022", "title": "CWE-1022: Use of Web Link to Untrusted Target with window.opener Access", "text": "The web application produces links to untrusted external sites outside of its sphere of control, but it does not properly prevent the external site from modifying security-critical properties of the window.opener object, such as the location property.\n\nCommon Consequences: Confidentiality Alter Execution Logic If an attacker can run script on the target page, then they could read or modify certain properties of the window.opener object, including the location property - even if the original and target site are not the same origin. An attacker can modify the location property to automatically redirect the user to an untrusted page that contains undesired content or malicious script code, e.g. as part of a phishing attack. Since this redirect happens in the original window/tab - which is not necessarily visible, since the browser is focusing the display on the new target page - the user might not notice any suspicious redirection.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1022"} {"_id": "cwe_doc_1023", "title": "CWE-1023: Incomplete Comparison with Missing Factors", "text": "The product performs a comparison between entities that must consider multiple factors or characteristics of each entity, but the comparison does not include one or more of these factors.\n\nCommon Consequences: Integrity Access Control Alter Execution Logic Bypass Protection Mechanism An incomplete comparison can lead to resultant weaknesses, e.g., by operating on the wrong object or making a security decision without considering a required factor.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1023"} {"_id": "cwe_doc_1024", "title": "CWE-1024: Comparison of Incompatible Types", "text": "The product performs a comparison between two entities, but the entities are of different, incompatible types that cannot be guaranteed to provide correct results when they are directly compared.\n\nCommon Consequences: Other Varies by Context", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1024"} {"_id": "cwe_doc_1025", "title": "CWE-1025: Comparison Using Wrong Factors", "text": "The code performs a comparison between two entities, but the comparison examines the wrong factors or characteristics of the entities.\n\nCommon Consequences: Other Varies by Context This can lead to incorrect results and resultant weaknesses. For example, the code might inadvertently compare references to objects, instead of the relevant contents of those objects, causing two \"equal\" objects to be considered unequal.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1025"} {"_id": "cwe_doc_103", "title": "CWE-103: Struts: Incomplete validate() Method Definition", "text": "The product has a validator form that either does not define a validate() method, or defines a validate() method but does not call super.validate().\n\nCommon Consequences: Other Unexpected State Varies by Context If the code does not call super.validate(), the Validation Framework cannot check the contents of the form against a validation form. In other words, the validation framework will be disabled for the given form. Disabling the validation framework for a form exposes the product to numerous types of attacks. | Confidentiality Integrity Availability Other Other Although J2EE applications are not generally susceptible to memory corruption attacks, if a J2EE application interfaces with native code that does not perform array bounds checking, an attacker may be able to use an input validation mistake in the J2EE application to launch a buffer overflow attack.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-103"} {"_id": "cwe_doc_1037", "title": "CWE-1037: Processor Optimization Removal or Modification of Security-critical Code", "text": "The developer builds a security-critical protection mechanism into the software, but the processor optimizes the execution of the program such that the mechanism is removed or modified.\n\nCommon Consequences: Integrity Bypass Protection Mechanism High A successful exploitation of this weakness will change the order of an application's execution and will likely be used to bypass specific protection mechanisms. This bypass can be exploited further to potentially read data that should otherwise be unaccessible.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1037"} {"_id": "cwe_doc_1038", "title": "CWE-1038: Insecure Automated Optimizations", "text": "The product uses a mechanism that automatically optimizes code, e.g. to improve a characteristic such as performance, but the optimizations can have an unintended side effect that might violate an intended security assumption.\n\nCommon Consequences: Integrity Alter Execution Logic The optimizations alter the order of execution resulting in side effects that were not intended by the original developer.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1038"} {"_id": "cwe_doc_1039", "title": "CWE-1039: Inadequate Detection or Handling of Adversarial Input Perturbations in Automated Recognition Mechanism", "text": "The product uses an automated mechanism such as machine learning to recognize complex data inputs (e.g. image or audio) as a particular concept or category, but it does not properly detect or handle inputs that have been modified or constructed in a way that causes the mechanism to detect a different, incorrect concept.\n\nCommon Consequences: Availability Integrity Bypass Protection Mechanism DoS: Resource Consumption (Other) DoS: Instability When the automated mechanism is used in a protection mechanism to automatically classify input streams, and those classifications are used for security-critical decisions, then any mistake in classification can introduce a vulnerability that allows attackers to cause the product to make the wrong security decision or disrupt service of the automated mechanism. An attacker may be able to craft inputs that are misinterpreted in a way that grants excess privileges. | Confidentiality Read Application Data This weakness could lead to breaches of data privacy through exposing features of the training data, e.g., by using membership inference attacks or prompt injection attacks. | Other Varies by Context The consequences depend on how the application applies or integrates the affected algorithm.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1039"} {"_id": "cwe_doc_104", "title": "CWE-104: Struts: Form Bean Does Not Extend Validation Class", "text": "If a form bean does not extend an ActionForm subclass of the Validator framework, it can expose the application to other weaknesses related to insufficient input validation.\n\nCommon Consequences: Other Other Bypassing the validation framework for a form exposes the application to numerous types of attacks. Unchecked input is an important component of vulnerabilities like cross-site scripting, process control, and SQL injection. | Confidentiality Integrity Availability Other Other Although J2EE applications are not generally susceptible to memory corruption attacks, if a J2EE application interfaces with native code that does not perform array bounds checking, an attacker may be able to use an input validation mistake in the J2EE application to launch a buffer overflow attack.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-104"} {"_id": "cwe_doc_1041", "title": "CWE-1041: Use of Redundant Code", "text": "The product has multiple functions, methods, procedures, macros, etc. that contain the same code, i.e., the code has been copied or duplicated.\n\nCommon Consequences: Other Reduce 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. For example, if there are two copies of the same code, the programmer might fix a weakness in one copy while forgetting to fix the same weakness in another copy.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1041"} {"_id": "cwe_doc_1042", "title": "CWE-1042: Static Member Data Element outside of a Singleton Class Element", "text": "The code contains a member element that is declared as static (but not final), in which its parent class element is not a singleton class - that is, a class element that can be used only once in the 'to' association of a Create action.\n\nCommon Consequences: Other Reduce Performance This issue can make the product perform more slowly. If the relevant code is reachable by an attacker, then this performance problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1042"} {"_id": "cwe_doc_1043", "title": "CWE-1043: Data Element Aggregating an Excessively Large Number of Non-Primitive Elements", "text": "The product uses a data element that has an excessively large number of sub-elements with non-primitive data types such as structures or aggregated objects.\n\nCommon Consequences: Other Reduce Performance This issue can make the product perform more slowly. If the relevant code is reachable by an attacker, then this performance problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1043"} {"_id": "cwe_doc_1044", "title": "CWE-1044: Architecture with Number of Horizontal Layers Outside of Expected Range", "text": "The product's architecture contains too many - or too few - horizontal layers.\n\nCommon Consequences: Other Reduce 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1044"} {"_id": "cwe_doc_1045", "title": "CWE-1045: Parent Class with a Virtual Destructor and a Child Class without a Virtual Destructor", "text": "A parent class has a virtual destructor method, but the parent has a child class that does not have a virtual destructor.\n\nCommon Consequences: Other Reduce Reliability This issue can prevent the product from running reliably, since the child might not perform essential destruction operations. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability, such as a memory leak (CWE-401).", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1045"} {"_id": "cwe_doc_1046", "title": "CWE-1046: Creation of Immutable Text Using String Concatenation", "text": "The product creates an immutable text string using string concatenation operations.\n\nCommon Consequences: Other Reduce Performance When building a string via a looping feature (e.g., a FOR or WHILE loop), the use of += to append to the existing string will result in the creation of a new object with each iteration, which can be inefficient in comparison with use of text buffer data elements. This issue can make the product perform more slowly. If the relevant code is reachable by an attacker, then this could be influenced to create performance problems.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1046"} {"_id": "cwe_doc_1047", "title": "CWE-1047: Modules with Circular Dependencies", "text": "The product contains modules in which one module has references that cycle back to itself, i.e., there are circular dependencies.\n\nAs an example, with Java, this weakness might indicate cycles between packages.\n\nCommon Consequences: Other Reduce Maintainability This issue makes it more difficult to maintain the product due to insufficient modularity, which indirectly affects security by making it more difficult or time-consuming to find and/or fix vulnerabilities. It can also prevent the product from running reliably. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1047"} {"_id": "cwe_doc_1048", "title": "CWE-1048: Invokable Control Element with Large Number of Outward Calls", "text": "The code contains callable control elements that contain an excessively large number of references to other application objects external to the context of the callable, i.e. a Fan-Out value that is excessively large.\n\nCommon Consequences: Other Reduce Maintainability Increase Analytical Complexity 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1048"} {"_id": "cwe_doc_1049", "title": "CWE-1049: Excessive Data Query Operations in a Large Data Table", "text": "The product performs a data query with a large number of joins and sub-queries on a large data table.\n\nCommon Consequences: Other Reduce Performance This issue can make the product perform more slowly. If the relevant code is reachable by an attacker, then this performance problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1049"} {"_id": "cwe_doc_105", "title": "CWE-105: Struts: Form Field Without Validator", "text": "The product has a form field that is not validated by a corresponding validation form, which can introduce other weaknesses related to insufficient input validation.\n\nCommon Consequences: Integrity Unexpected State Omitting validation for even a single input field may give attackers the leeway they need to compromise the product. Although J2EE applications are not generally susceptible to memory corruption attacks, if a J2EE application interfaces with native code that does not perform array bounds checking, an attacker may be able to use an input validation mistake in the J2EE application to launch a buffer overflow attack. | Integrity Bypass Protection Mechanism If unused fields are not validated, shared business logic in an action may allow attackers to bypass the validation checks that are performed for other uses of the form.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-105"} {"_id": "cwe_doc_1050", "title": "CWE-1050: Excessive Platform Resource Consumption within a Loop", "text": "The product has a loop body or loop condition that contains a control element that directly or indirectly consumes platform resources, e.g. messaging, sessions, locks, or file descriptors.\n\nCommon Consequences: Availability DoS: Resource Consumption (CPU) DoS: Resource Consumption (Memory) DoS: Resource Consumption (Other) Reduce Performance This issue can make the product perform more slowly. If an attacker can influence the number of iterations in the loop, then this performance problem might allow a denial of service by consuming more platform resources than intended.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1050"} {"_id": "cwe_doc_1051", "title": "CWE-1051: Initialization with Hard-Coded Network Resource Configuration Data", "text": "The product initializes data using hard-coded values that act as network resource identifiers.\n\nCommon Consequences: Other Reduce Reliability This issue can prevent the product from running reliably, e.g. if it runs in an environment does not use the hard-coded network resource identifiers. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1051"} {"_id": "cwe_doc_1052", "title": "CWE-1052: Excessive Use of Hard-Coded Literals in Initialization", "text": "The product initializes a data element using a hard-coded literal that is not a simple integer or static constant element.\n\nCommon Consequences: Other Reduce Maintainability This issue makes it more difficult to modify or 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1052"} {"_id": "cwe_doc_1053", "title": "CWE-1053: Missing Documentation for Design", "text": "The product does not have documentation that represents how it is designed.\n\nCommon Consequences: Other Reduce Maintainability Increase Analytical Complexity This issue can make it more difficult to understand and maintain the product. It can make it more difficult and time-consuming to detect and/or fix vulnerabilities.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1053"} {"_id": "cwe_doc_1054", "title": "CWE-1054: Invocation of a Control Element at an Unnecessarily Deep Horizontal Layer", "text": "The code at one architectural layer invokes code that resides at a deeper layer than the adjacent layer, i.e., the invocation skips at least one layer, and the invoked code is not part of a vertical utility layer that can be referenced from any horizontal layer.\n\nCommon Consequences: Other Reduce Maintainability This issue makes it more difficult to understand and 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1054"} {"_id": "cwe_doc_1055", "title": "CWE-1055: Multiple Inheritance from Concrete Classes", "text": "The product contains a class with inheritance from more than one concrete class.\n\nCommon Consequences: Other Reduce 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1055"} {"_id": "cwe_doc_1056", "title": "CWE-1056: Invokable Control Element with Variadic Parameters", "text": "A named-callable or method control element has a signature that supports a variable (variadic) number of parameters or arguments.\n\nCommon Consequences: Other Reduce Reliability This issue can prevent the product from running reliably. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability. With variadic arguments, it can be difficult or inefficient for manual analysis to be certain of which function/method is being invoked.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1056"} {"_id": "cwe_doc_1057", "title": "CWE-1057: Data Access Operations Outside of Expected Data Manager Component", "text": "The product uses a dedicated, central data manager component as required by design, but it contains code that performs data-access operations that do not use this data manager.\n\nCommon Consequences: Availability Reduce Performance This issue can make the product perform more slowly than intended, since the intended central data manager may have been explicitly optimized for performance or other quality characteristics. If the relevant code is reachable by an attacker, then this performance problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1057"} {"_id": "cwe_doc_1058", "title": "CWE-1058: Invokable Control Element in Multi-Thread Context with non-Final Static Storable or Member Element", "text": "The code contains a function or method that operates in a multi-threaded environment but owns an unsafe non-final static storable or member data element.\n\nCommon Consequences: Other Reduce Reliability This issue can prevent the product from running reliably. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1058"} {"_id": "cwe_doc_1059", "title": "CWE-1059: Insufficient Technical Documentation", "text": "The product does not contain sufficient technical or engineering documentation (whether on paper or in electronic form) that contains descriptions of all of the relevant software/hardware elements of the product.\n\nCommon Consequences: Other Varies by Context Hide Activities Reduce Reliability Quality Degradation Reduce Maintainability Without a method of verification, one cannot be sure that everything only functions as expected. When technical documentation is limited or lacking, products are more difficult to maintain. This indirectly affects security by making it more difficult or time-consuming to find and/or fix vulnerabilities. When using time-limited or labor-limited third-party/in-house security consulting services (such as threat modeling, vulnerability discovery, or pentesting), insufficient documentation can force those consultants to invest unnecessary time in learning how the product is organized, instead of focusing their expertise on finding the flaws or suggesting effective mitigations. With respect to hardware design, the lack of a formal, final manufacturer reference can make it difficult or impossible to evaluate the final product, including post-manufacture verification. One cannot ensure that design functionality or operation is within acceptable tolerances, conforms to specifications, and is free from unexpected behavior.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1059"} {"_id": "cwe_doc_106", "title": "CWE-106: Struts: Plug-in Framework not in Use", "text": "When an application does not use an input validation framework such as the Struts Validator, there is a greater risk of introducing weaknesses related to insufficient input validation.\n\nUnchecked input is the leading cause of vulnerabilities in J2EE applications. Unchecked input leads to cross-site scripting, process control, and SQL injection vulnerabilities, among others. Although J2EE applications are not generally susceptible to memory corruption attacks, if a J2EE application interfaces with native code that does not perform array bounds checking, an attacker may be able to use an input validation mistake in the J2EE application to launch a buffer overflow attack.\n\nCommon Consequences: Integrity Unexpected State", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-106"} {"_id": "cwe_doc_1060", "title": "CWE-1060: Excessive Number of Inefficient Server-Side Data Accesses", "text": "The product performs too many data queries without using efficient data processing functionality such as stored procedures.\n\nCommon Consequences: Other Reduce Performance This issue can make the product perform more slowly due to computational expense. If the relevant code is reachable by an attacker, then this performance problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1060"} {"_id": "cwe_doc_1061", "title": "CWE-1061: Insufficient Encapsulation", "text": "The product does not sufficiently hide the internal representation and implementation details of data or methods.\n\nCommon Consequences: Access Control Varies by Context Bypass Protection Mechanism Modify Application Data An attacker might be able to use external components or modules to modify data unexpectedly, invoke unexpected functionality, introduce dependencies that the programmer did not intend, or access data or methods that were not intended to be accessible. | Other Reduce Maintainability Increase Analytical Complexity 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1061"} {"_id": "cwe_doc_1062", "title": "CWE-1062: Parent Class with References to Child Class", "text": "The code has a parent class that contains references to a child class, its methods, or its members.\n\nCommon Consequences: Other Reduce Reliability This issue can prevent the product from running reliably. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1062"} {"_id": "cwe_doc_1063", "title": "CWE-1063: Creation of Class Instance within a Static Code Block", "text": "A static code block creates an instance of a class.\n\nThis pattern identifies situations where a storable data element or member data element is initialized with a value in a block of code which is declared as static.\n\nCommon Consequences: Other Reduce Performance This issue can make the product perform more slowly by performing initialization before it is needed. If the relevant code is reachable by an attacker, then this performance problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1063"} {"_id": "cwe_doc_1064", "title": "CWE-1064: Invokable Control Element with Signature Containing an Excessive Number of Parameters", "text": "The product contains a function, subroutine, or method whose signature has an unnecessarily large number of parameters/arguments.\n\nCommon Consequences: Other Reduce Maintainability Increase Analytical Complexity This issue makes it more difficult to understand and/or 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1064"} {"_id": "cwe_doc_1065", "title": "CWE-1065: Runtime Resource Management Control Element in a Component Built to Run on Application Servers", "text": "The product uses deployed components from application servers, but it also uses low-level functions/methods for management of resources, instead of the API provided by the application server.\n\nCommon Consequences: Other Reduce Reliability This issue can prevent the product from running reliably. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1065"} {"_id": "cwe_doc_1066", "title": "CWE-1066: Missing Serialization Control Element", "text": "The product contains a serializable data element that does not have an associated serialization method.\n\nCommon Consequences: Other Reduce Reliability This issue can prevent the product from running reliably, e.g. by triggering an exception. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1066"} {"_id": "cwe_doc_1067", "title": "CWE-1067: Excessive Execution of Sequential Searches of Data Resource", "text": "The product contains a data query against an SQL table or view that is configured in a way that does not utilize an index and may cause sequential searches to be performed.\n\nCommon Consequences: Availability Reduce Performance This issue can make the product perform more slowly. If the relevant code is reachable by an attacker, then this performance problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1067"} {"_id": "cwe_doc_1068", "title": "CWE-1068: Inconsistency Between Implementation and Documented Design", "text": "The implementation of the product is not consistent with the design as described within the relevant documentation.\n\nCommon Consequences: Other Reduce Maintainability Increase Analytical Complexity This issue makes it more difficult to maintain the product due to inconsistencies, 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1068"} {"_id": "cwe_doc_1069", "title": "CWE-1069: Empty Exception Block", "text": "An invokable code block contains an exception handling block that does not contain any code, i.e. is empty.\n\nCommon Consequences: Other Reduce Reliability When an exception handling block (such as a Catch and Finally block) is used, but that block is empty, this can prevent the product from running reliably. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1069"} {"_id": "cwe_doc_107", "title": "CWE-107: Struts: Unused Validation Form", "text": "An unused validation form indicates that validation logic is not up-to-date.\n\nCommon Consequences: Other Quality Degradation", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-107"} {"_id": "cwe_doc_1070", "title": "CWE-1070: Serializable Data Element Containing non-Serializable Item Elements", "text": "The product contains a serializable, storable data element such as a field or member, but the data element contains member elements that are not serializable.\n\nCommon Consequences: Other Reduce Reliability This issue can prevent the product from running reliably. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1070"} {"_id": "cwe_doc_1071", "title": "CWE-1071: Empty Code Block", "text": "The source code contains a block that does not contain any code, i.e., the block is empty.\n\nCommon Consequences: Other Reduce Reliability Varies by Context The lack of any behavior within the block might violate a convention or API in such a way that it is an error. It could indicate a situation in which some kind of action should be taken.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1071"} {"_id": "cwe_doc_1072", "title": "CWE-1072: Data Resource Access without Use of Connection Pooling", "text": "The product accesses a data resource through a database without using a connection pooling capability.\n\nCommon Consequences: Other Reduce Performance This issue can make the product perform more slowly, as connection pools allow connections to be reused without the overhead and time consumption of opening and closing a new connection. If the relevant code is reachable by an attacker, then this performance problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1072"} {"_id": "cwe_doc_1073", "title": "CWE-1073: Non-SQL Invokable Control Element with Excessive Number of Data Resource Accesses", "text": "The product contains a client with a function or method that contains a large number of data accesses/queries that are sent through a data manager, i.e., does not use efficient database capabilities.\n\nCommon Consequences: Other Reduce Performance This issue can make the product perform more slowly. If the relevant code is reachable by an attacker, then this performance problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1073"} {"_id": "cwe_doc_1074", "title": "CWE-1074: Class with Excessively Deep Inheritance", "text": "A class has an inheritance level that is too high, i.e., it has a large number of parent classes.\n\nCommon Consequences: Other Reduce Maintainability Increase Analytical Complexity This issue makes it more difficult to understand and 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1074"} {"_id": "cwe_doc_1075", "title": "CWE-1075: Unconditional Control Flow Transfer outside of Switch Block", "text": "The product performs unconditional control transfer (such as a \"goto\") in code outside of a branching structure such as a switch block.\n\nCommon Consequences: Other Reduce Maintainability Increase Analytical Complexity 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1075"} {"_id": "cwe_doc_1076", "title": "CWE-1076: Insufficient Adherence to Expected Conventions", "text": "The product's architecture, source code, design, documentation, or other artifact does not follow required conventions.\n\nCommon Consequences: Other Reduce 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1076"} {"_id": "cwe_doc_1077", "title": "CWE-1077: Floating Point Comparison with Incorrect Operator", "text": "The code performs a comparison such as an equality test between two float (floating point) values, but it uses comparison operators that do not account for the possibility of loss of precision.\n\nCommon Consequences: Other Reduce Reliability This issue can prevent the product from running reliably. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1077"} {"_id": "cwe_doc_1078", "title": "CWE-1078: Inappropriate Source Code Style or Formatting", "text": "The source code does not follow desired style or formatting for indentation, white space, comments, etc.\n\nCommon Consequences: Other Increase Analytical Complexity Variations in indentation and other white space, comments, etc. can make it more difficult for human analysts to understand the actual behavior that is being implemented.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1078"} {"_id": "cwe_doc_1079", "title": "CWE-1079: Parent Class without Virtual Destructor Method", "text": "A parent class contains one or more child classes, but the parent class does not have a virtual destructor method.\n\nCommon Consequences: Other Reduce Reliability This issue can prevent the product from running reliably due to undefined or unexpected behaviors. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1079"} {"_id": "cwe_doc_108", "title": "CWE-108: Struts: Unvalidated Action Form", "text": "The product contains a Struts Action Form that does not have a corresponding validation form.\n\nCommon Consequences: Other Other If an action form mapping does not have a validation form defined, it may be vulnerable to a number of attacks that rely on unchecked input. Unchecked input is the root cause of some of today's worst and most common software security problems. Cross-site scripting, SQL injection, and process control vulnerabilities all stem from incomplete or absent input validation. | Confidentiality Integrity Availability Other Other Although J2EE applications are not generally susceptible to memory corruption attacks, if a J2EE application interfaces with native code that does not perform array bounds checking, an attacker may be able to use an input validation mistake in the J2EE application to launch a buffer overflow attack.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-108"} {"_id": "cwe_doc_1080", "title": "CWE-1080: Source Code File with Excessive Number of Lines of Code", "text": "A source code file has too many lines of code.\n\nCommon Consequences: Other Reduce Maintainability Increase Analytical Complexity This issue makes it more difficult to understand and/or 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1080"} {"_id": "cwe_doc_1082", "title": "CWE-1082: Class Instance Self Destruction Control Element", "text": "The code contains a class instance that calls the method or function to delete or destroy itself, e.g., use of \"delete this\" in C++.\n\nCommon Consequences: Other Reduce Reliability This issue can prevent the product from running reliably. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1082"} {"_id": "cwe_doc_1083", "title": "CWE-1083: Data Access from Outside Expected Data Manager Component", "text": "The product is intended to manage data access through a particular data manager component such as a relational or non-SQL database, but it contains code that performs data access operations without using that component.\n\nCommon Consequences: Other Reduce Reliability If a data access operation is performed outside of that component, then this may indicate a violation of the intended design. This issue can prevent the product from running reliably. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1083"} {"_id": "cwe_doc_1084", "title": "CWE-1084: Invokable Control Element with Excessive File or Data Access Operations", "text": "A function or method contains too many operations that utilize a data manager or file resource.\n\nCommon Consequences: Other Reduce 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1084"} {"_id": "cwe_doc_1085", "title": "CWE-1085: Invokable Control Element with Excessive Volume of Commented-out Code", "text": "A function, method, procedure, etc. contains an excessive amount of code that has been commented out within its body.\n\nCommon Consequences: Other Reduce 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1085"} {"_id": "cwe_doc_1086", "title": "CWE-1086: Class with Excessive Number of Child Classes", "text": "A class contains an unnecessarily large number of child classes.\n\nCommon Consequences: Other Reduce Maintainability Increase Analytical Complexity This issue makes it more difficult to understand and maintain the software, 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1086"} {"_id": "cwe_doc_1087", "title": "CWE-1087: Class with Virtual Method without a Virtual Destructor", "text": "A class contains a virtual method, but the method does not have an associated virtual destructor.\n\nCommon Consequences: Other Reduce Reliability This issue can prevent the product from running reliably, e.g. due to undefined behavior. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1087"} {"_id": "cwe_doc_1088", "title": "CWE-1088: Synchronous Access of Remote Resource without Timeout", "text": "The code has a synchronous call to a remote resource, but there is no timeout for the call, or the timeout is set to infinite.\n\nCommon Consequences: Other Reduce Reliability This issue can prevent the product from running reliably, since an outage for the remote resource can cause the product to hang. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1088"} {"_id": "cwe_doc_1089", "title": "CWE-1089: Large Data Table with Excessive Number of Indices", "text": "The product uses a large data table that contains an excessively large number of indices.\n\nCommon Consequences: Other Reduce Performance This issue can make the product perform more slowly. If the relevant code is reachable by an attacker, then this performance problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1089"} {"_id": "cwe_doc_109", "title": "CWE-109: Struts: Validator Turned Off", "text": "Automatic filtering via a Struts bean has been turned off, which disables the Struts Validator and custom validation logic. This exposes the application to other weaknesses related to insufficient input validation.\n\nCommon Consequences: Access Control Bypass Protection Mechanism", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-109"} {"_id": "cwe_doc_1090", "title": "CWE-1090: Method Containing Access of a Member Element from Another Class", "text": "A method for a class performs an operation that directly accesses a member element from another class.\n\nCommon Consequences: Other Reduce Maintainability Increase Analytical Complexity This issue suggests poor encapsulation and makes it more difficult to understand and 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1090"} {"_id": "cwe_doc_1091", "title": "CWE-1091: Use of Object without Invoking Destructor Method", "text": "The product contains a method that accesses an object but does not later invoke the element's associated finalize/destructor method.\n\nCommon Consequences: Other Reduce Performance This issue can make the product perform more slowly by retaining memory and/or other resources longer than necessary. If the relevant code is reachable by an attacker, then this performance problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1091"} {"_id": "cwe_doc_1092", "title": "CWE-1092: Use of Same Invokable Control Element in Multiple Architectural Layers", "text": "The product uses the same control element across multiple architectural layers.\n\nCommon Consequences: Other Reduce Maintainability This issue makes it more difficult to understand and 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1092"} {"_id": "cwe_doc_1093", "title": "CWE-1093: Excessively Complex Data Representation", "text": "The product uses an unnecessarily complex internal representation for its data structures or interrelationships between those structures.\n\nCommon Consequences: Other Reduce Maintainability Increase Analytical Complexity This issue makes it more difficult to understand or 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. | Other Reduce Performance", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1093"} {"_id": "cwe_doc_1094", "title": "CWE-1094: Excessive Index Range Scan for a Data Resource", "text": "The product contains an index range scan for a large data table, but the scan can cover a large number of rows.\n\nCommon Consequences: Other Reduce Performance This issue can make the product perform more slowly. If the relevant code is reachable by an attacker, then this performance problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1094"} {"_id": "cwe_doc_1095", "title": "CWE-1095: Loop Condition Value Update within the Loop", "text": "The product uses a loop with a control flow condition based on a value that is updated within the body of the loop.\n\nCommon Consequences: Other Reduce Maintainability Increase Analytical Complexity This issue makes it more difficult to understand and/or 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1095"} {"_id": "cwe_doc_1096", "title": "CWE-1096: Singleton Class Instance Creation without Proper Locking or Synchronization", "text": "The product implements a Singleton design pattern but does not use appropriate locking or other synchronization mechanism to ensure that the singleton class is only instantiated once.\n\nCommon Consequences: Other Reduce Reliability This issue can prevent the product from running reliably, e.g. by making the instantiation process non-thread-safe and introducing deadlock (CWE-833) or livelock conditions. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1096"} {"_id": "cwe_doc_1097", "title": "CWE-1097: Persistent Storable Data Element without Associated Comparison Control Element", "text": "The product uses a storable data element that does not have all of the associated functions or methods that are necessary to support comparison.\n\nCommon Consequences: Other Reduce Reliability This issue can prevent the product from running reliably, due to incorrect or unexpected comparison results. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1097"} {"_id": "cwe_doc_1098", "title": "CWE-1098: Data Element containing Pointer Item without Proper Copy Control Element", "text": "The code contains a data element with a pointer that does not have an associated copy or constructor method.\n\nCommon Consequences: Other Reduce Reliability This issue can prevent the product from running reliably. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1098"} {"_id": "cwe_doc_1099", "title": "CWE-1099: Inconsistent Naming Conventions for Identifiers", "text": "The product's code, documentation, or other artifacts do not consistently use the same naming conventions for variables, callables, groups of related callables, I/O capabilities, data types, file names, or similar types of elements.\n\nCommon Consequences: Other Reduce Maintainability Increase Analytical Complexity This issue makes it more difficult to understand and/or maintain the product due to inconsistencies, 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1099"} {"_id": "cwe_doc_11", "title": "CWE-11: ASP.NET Misconfiguration: Creating Debug Binary", "text": "The product has an ASP .NET component that contains a debug binary.\n\nCommon Consequences: Confidentiality Read Application Data Debug binaries give detailed debugging messages, which is useful in a development or testing environment, but can pose a security risk if the debug binary is deployed to production. Attackers can leverage the additional information they gain from debugging output to mount attacks targeted on the framework, database, or other resources used by the application.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-11"} {"_id": "cwe_doc_110", "title": "CWE-110: Struts: Validator Without Form Field", "text": "Validation fields that do not appear in forms they are associated with indicate that the validation logic is out of date.\n\nCommon Consequences: Other Other It is critically important that validation logic be maintained and kept in sync with the rest of the application. Unchecked input is the root cause of some of today's worst and most common software security problems. Cross-site scripting, SQL injection, and process control vulnerabilities all stem from incomplete or absent input validation.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-110"} {"_id": "cwe_doc_1100", "title": "CWE-1100: Insufficient Isolation of System-Dependent Functions", "text": "The product or code does not isolate system-dependent functionality into separate standalone modules.\n\nCommon Consequences: Other Reduce Maintainability This issue makes it more difficult to maintain and/or port 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1100"} {"_id": "cwe_doc_1101", "title": "CWE-1101: Reliance on Runtime Component in Generated Code", "text": "The product uses automatically-generated code that cannot be executed without a specific runtime support component.\n\nCommon Consequences: Other Reduce 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1101"} {"_id": "cwe_doc_1102", "title": "CWE-1102: Reliance on Machine-Dependent Data Representation", "text": "The code uses a data representation that relies on low-level data representation or constructs that may vary across different processors, physical machines, OSes, or other physical components.\n\nCommon Consequences: Other Reduce Maintainability This issue makes it more difficult to maintain and/or port 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1102"} {"_id": "cwe_doc_1103", "title": "CWE-1103: Use of Platform-Dependent Third Party Components", "text": "The product relies on third-party components that do not provide equivalent functionality across all desirable platforms.\n\nCommon Consequences: Other Reduce 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1103"} {"_id": "cwe_doc_1104", "title": "CWE-1104: Use of Unmaintained Third Party Components", "text": "The product relies on third-party components that are not actively supported or maintained by the original developer or a trusted proxy for the original developer.\n\nCommon Consequences: Other Reduce Maintainability Varies by Context Relying on unmaintained components makes it difficult or impossible to fix significant bugs and vulnerabilities, can render code obsolete, and undermine security by complicating maintenance and increasing the risk of new vulnerabilities.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1104"} {"_id": "cwe_doc_1105", "title": "CWE-1105: Insufficient Encapsulation of Machine-Dependent Functionality", "text": "The product or code uses machine-dependent functionality, but it does not sufficiently encapsulate or isolate this functionality from the rest of the code.\n\nCommon Consequences: Other Reduce Maintainability This issue makes it more difficult to port or 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1105"} {"_id": "cwe_doc_1106", "title": "CWE-1106: Insufficient Use of Symbolic Constants", "text": "The source code uses literal constants that may need to change or evolve over time, instead of using symbolic constants.\n\nCommon Consequences: Other Reduce Maintainability Increase Analytical Complexity 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1106"} {"_id": "cwe_doc_1107", "title": "CWE-1107: Insufficient Isolation of Symbolic Constant Definitions", "text": "The source code uses symbolic constants, but it does not sufficiently place the definitions of these constants into a more centralized or isolated location.\n\nCommon Consequences: Other Reduce 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1107"} {"_id": "cwe_doc_1108", "title": "CWE-1108: Excessive Reliance on Global Variables", "text": "The code is structured in a way that relies too much on using or setting global variables throughout various points in the code, instead of preserving the associated information in a narrower, more local context.\n\nCommon Consequences: Other Reduce Maintainability Increase Analytical Complexity 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1108"} {"_id": "cwe_doc_1109", "title": "CWE-1109: Use of Same Variable for Multiple Purposes", "text": "The code contains a callable, block, or other code element in which the same variable is used to control more than one unique task or store more than one instance of data.\n\nCommon Consequences: Other Reduce 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. | Other Increase Analytical Complexity Use of the same variable for multiple purposes can make it more difficult for a person to read or understand the code, potentially hiding other quality issues.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1109"} {"_id": "cwe_doc_111", "title": "CWE-111: Direct Use of Unsafe JNI", "text": "When a Java application uses the Java Native Interface (JNI) to call code written in another programming language, it can expose the application to weaknesses in that code, even if those weaknesses cannot occur in Java.\n\nCommon Consequences: Access Control Bypass Protection Mechanism", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-111"} {"_id": "cwe_doc_1110", "title": "CWE-1110: Incomplete Design Documentation", "text": "The product's design documentation does not adequately describe control flow, data flow, system initialization, relationships between tasks, components, rationales, or other important aspects of the design.\n\nCommon Consequences: Other Reduce Maintainability | Other Increase Analytical Complexity", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1110"} {"_id": "cwe_doc_1111", "title": "CWE-1111: Incomplete I/O Documentation", "text": "The product's documentation does not adequately define inputs, outputs, or system/software interfaces.\n\nCommon Consequences: Other Reduce Maintainability | Other Increase Analytical Complexity", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1111"} {"_id": "cwe_doc_1112", "title": "CWE-1112: Incomplete Documentation of Program Execution", "text": "The document does not fully define all mechanisms that are used to control or influence how product-specific programs are executed, such as environmental variables, configuration files, registry keys, command-line switches or options, or system settings.\n\nCommon Consequences: Other Reduce Maintainability | Other Increase Analytical Complexity", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1112"} {"_id": "cwe_doc_1113", "title": "CWE-1113: Inappropriate Comment Style", "text": "The source code uses comment styles or formats that are inconsistent or do not follow expected standards for the product.\n\nCommon Consequences: Other Reduce Maintainability | Other Increase Analytical Complexity This issue makes it more difficult to maintain the product due to insufficient legibility, 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1113"} {"_id": "cwe_doc_1114", "title": "CWE-1114: Inappropriate Whitespace Style", "text": "The source code contains whitespace that is inconsistent across the code or does not follow expected standards for the product.\n\nCommon Consequences: Other Increase Analytical Complexity A human auditor might indirectly trust that whitespace (especially indentation) reflects the actual control flow of the code, which could make it more difficult to find vulnerabilities. | Other Reduce Maintainability This issue makes it more difficult to understand and maintain the product, which indirectly affects security by making it more difficult or time-consuming to find and/or fix vulnerabilities.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1114"} {"_id": "cwe_doc_1115", "title": "CWE-1115: Source Code Element without Standard Prologue", "text": "The source code contains elements such as source files that do not consistently provide a prologue or header that has been standardized for the project.\n\nCommon Consequences: Other Reduce Maintainability This issue makes it more difficult to maintain the product due to insufficient analyzability, 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. | Other Increase Analytical Complexity The lack of a prologue can make it more difficult to accurately and quickly understand the associated code.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1115"} {"_id": "cwe_doc_1116", "title": "CWE-1116: Inaccurate Source Code Comments", "text": "The source code contains comments that do not accurately describe or explain aspects of the portion of the code with which the comment is associated.\n\nCommon Consequences: Other Reduce 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. | Other Increase Analytical Complexity When a comment does not accurately reflect the associated code elements, this can introduce confusion to a reviewer (due to inconsistencies) or make it more difficult and less efficient to validate that the code is implementing the intended behavior correctly.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1116"} {"_id": "cwe_doc_1117", "title": "CWE-1117: Callable with Insufficient Behavioral Summary", "text": "The code contains a function or method whose signature and/or associated inline documentation does not sufficiently describe the callable's inputs, outputs, side effects, assumptions, or return codes.\n\nCommon Consequences: Other Reduce 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1117"} {"_id": "cwe_doc_1118", "title": "CWE-1118: Insufficient Documentation of Error Handling Techniques", "text": "The documentation does not sufficiently describe the techniques that are used for error handling, exception processing, or similar mechanisms.\n\nCommon Consequences: Other Reduce Maintainability", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1118"} {"_id": "cwe_doc_1119", "title": "CWE-1119: Excessive Use of Unconditional Branching", "text": "The code uses too many unconditional branches (such as \"goto\").\n\nCommon Consequences: Other Reduce Maintainability Increase Analytical Complexity This issue makes it more difficult to understand and/or 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1119"} {"_id": "cwe_doc_112", "title": "CWE-112: Missing XML Validation", "text": "The product accepts XML from an untrusted source but does not validate the XML against the proper schema.\n\nCommon Consequences: Integrity Unexpected State Varies by Context By accepting an XML document without validating it against a DTD or XML schema, the programmer leaves a door open for attackers to provide unexpected, unreasonable, or malicious input.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-112"} {"_id": "cwe_doc_1120", "title": "CWE-1120: Excessive Code Complexity", "text": "The code is too complex, as calculated using a well-defined, quantitative measure.\n\nCommon Consequences: Other Reduce Maintainability Increase Analytical Complexity This issue makes it more difficult to understand and/or 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. | Other Reduce Performance This issue can make the product perform more slowly. If the relevant code is reachable by an attacker, then this performance problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1120"} {"_id": "cwe_doc_1121", "title": "CWE-1121: Excessive McCabe Cyclomatic Complexity", "text": "The code contains McCabe cyclomatic complexity that exceeds a desirable maximum.\n\nCommon Consequences: Other Reduce Maintainability Increase Analytical Complexity This issue makes it more difficult to understand and/or 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1121"} {"_id": "cwe_doc_1122", "title": "CWE-1122: Excessive Halstead Complexity", "text": "The code is structured in a way that a Halstead complexity measure exceeds a desirable maximum.\n\nCommon Consequences: Other Reduce Maintainability Increase Analytical Complexity This issue makes it more difficult to understand and/or 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1122"} {"_id": "cwe_doc_1123", "title": "CWE-1123: Excessive Use of Self-Modifying Code", "text": "The product uses too much self-modifying code.\n\nCommon Consequences: Other Reduce Maintainability Increase Analytical Complexity This issue makes it more difficult to understand or 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1123"} {"_id": "cwe_doc_1124", "title": "CWE-1124: Excessively Deep Nesting", "text": "The code contains a callable or other code grouping in which the nesting / branching is too deep.\n\nCommon Consequences: Other Reduce 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1124"} {"_id": "cwe_doc_1125", "title": "CWE-1125: Excessive Attack Surface", "text": "The product has an attack surface whose quantitative measurement exceeds a desirable maximum.\n\nCommon Consequences: Other Varies by Context", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1125"} {"_id": "cwe_doc_1126", "title": "CWE-1126: Declaration of Variable with Unnecessarily Wide Scope", "text": "The source code declares a variable in one scope, but the variable is only used within a narrower scope.\n\nCommon Consequences: Other Reduce Maintainability Increase Analytical Complexity This issue makes it more difficult to understand and/or 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.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1126"} {"_id": "cwe_doc_1127", "title": "CWE-1127: Compilation with Insufficient Warnings or Errors", "text": "The code is compiled without sufficient warnings enabled.\n\nCommon Consequences: Other Reduce 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. | Other Increase Analytical Complexity This issue may prevent the detection of subtle bugs or quality issues.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1127"} {"_id": "cwe_doc_113", "title": "CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers", "text": "The product receives data from an HTTP agent/component (e.g., web server, proxy, browser, etc.), but it does not neutralize or incorrectly neutralizes CR and LF characters before the data is included in outgoing HTTP headers.\n\nHTTP agents or components may include a web server, load balancer, reverse proxy, web caching proxy, application firewall, web browser, etc. Regardless of the role, they are expected to maintain coherent, consistent HTTP communication state across all components. However, including unexpected data in an HTTP header allows an attacker to specify the entirety of the HTTP message that is rendered by the client HTTP agent (e.g., web browser) or back-end HTTP agent (e.g., web server), whether the message is part of a request or a response. When an HTTP request contains unexpected CR and LF characters, the server may respond with an output stream that is interpreted as \"splitting\" the stream into two different HTTP messages instead of one. CR is carriage return, also given by %0d or \\r, and LF is line feed, also given by %0a or \\n. In addition to CR and LF characters, other valid/RFC compliant special characters and unique character encodings can be utilized, such as HT (horizontal tab, also given by %09 or \\t) and SP (space, also given as + sign or %20). These types of unvalidated and unexpected data in HTTP message headers allow an attacker to control the second \"split\" message to mount attacks such as server-side request forgery, cross-site scripting, and cache poisoning attacks.\n\nCommon Consequences: Integrity Access Control Modify Application Data Gain Privileges or Assume Identity CR and LF characters in an HTTP header may give attackers control of the remaining headers and body of the message that the application intends to send/receive, as well as allowing them to create additional messages entirely under their control.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-113"} {"_id": "cwe_doc_114", "title": "CWE-114: Process Control", "text": "Executing commands or loading libraries from an untrusted source or in an untrusted environment can cause an application to execute malicious commands (and payloads) on behalf of an attacker.\n\nCommon Consequences: Confidentiality Integrity Availability Execute Unauthorized Code or Commands", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-114"} {"_id": "cwe_doc_115", "title": "CWE-115: Misinterpretation of Input", "text": "The product misinterprets an input, whether from an attacker or another product, in a security-relevant fashion.\n\nCommon Consequences: Integrity Unexpected State", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-115"} {"_id": "cwe_doc_116", "title": "CWE-116: Improper Encoding or Escaping of Output", "text": "The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.\n\nCommon Consequences: Integrity Confidentiality Availability Access Control Modify Application Data Execute Unauthorized Code or Commands Bypass Protection Mechanism The communications between components can be modified in unexpected ways. If an application uses attacker-supplied inputs to construct a structured message without properly encoding or escaping, then the attacker could insert special characters that will cause the data to be misinterpreted as control information or metadata. As a result, the component that receives the output will perform the wrong operations, or otherwise interpret the data incorrectly. Attackers could change the commands that are sent to another component, inserting malicious commands instead, bypassing other security mechanisms.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-116"} {"_id": "cwe_doc_1164", "title": "CWE-1164: Irrelevant Code", "text": "The product contains code that is not essential for execution, i.e., makes no state changes and has no side effects that alter data or control flow - or is unreachable under any circumstances - such that removal of the code would have no impact to intended functionality or correctness.\n\nCommon Consequences: Other Reduce Reliability | Other Reduce Performance", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1164"} {"_id": "cwe_doc_117", "title": "CWE-117: Improper Output Neutralization for Logs", "text": "The product constructs a log message from external input, but it does not neutralize or incorrectly neutralizes special elements when the message is written to a log file.\n\nCommon Consequences: Integrity Confidentiality Availability Non-Repudiation Modify Application Data Hide Activities Execute Unauthorized Code or Commands Interpretation of the log files may be hindered or misdirected if an attacker can supply data to the application that is subsequently logged verbatim. In the most benign case, an attacker may be able to insert false entries into the log file by providing the application with input that includes appropriate characters. Forged or otherwise corrupted log files can be used to cover an attacker's tracks, possibly by skewing statistics, or even to implicate another party in the commission of a malicious act. If the log file is processed automatically, the attacker can render the file unusable by corrupting the format of the file or injecting unexpected characters. An attacker may inject code or other commands into the log file and take advantage of a vulnerability in the log processing utility.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-117"} {"_id": "cwe_doc_1173", "title": "CWE-1173: Improper Use of Validation Framework", "text": "The product does not use, or incorrectly uses, an input validation framework that is provided by the source language, framework, or an independent library.\n\nCommon Consequences: Integrity Unexpected State Unchecked input leads to cross-site scripting, process control, and SQL injection vulnerabilities, among others. | Other Reduce Maintainability Not using provided input validation frameworks can hurt the maintainability of code, since future developers may not recognize the downstream input validation that is required or expected in place of a validation framework.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1173"} {"_id": "cwe_doc_1174", "title": "CWE-1174: ASP.NET Misconfiguration: Improper Model Validation", "text": "The ASP.NET application does not use, or incorrectly uses, the model validation framework.\n\nCommon Consequences: Integrity Unexpected State Unchecked input leads to cross-site scripting, process control, and SQL injection vulnerabilities, among others.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1174"} {"_id": "cwe_doc_1176", "title": "CWE-1176: Inefficient CPU Computation", "text": "The product performs CPU computations using algorithms that are not as efficient as they could be for the needs of the developer, i.e., the computations can be optimized further.\n\nCommon Consequences: Availability Reduce Performance DoS: Resource Consumption (CPU) This issue can make the product perform more slowly, possibly in ways that are noticeable to the users. If an attacker can influence the amount of computation that must be performed, e.g. by triggering worst-case complexity, then this performance problem might introduce a vulnerability.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1176"} {"_id": "cwe_doc_1177", "title": "CWE-1177: Use of Prohibited Code", "text": "The product uses a function, library, or third party component that has been explicitly prohibited, whether by the developer or the customer.\n\nCommon Consequences: Other Reduce Maintainability This issue can also make the product more costly and difficult to maintain.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1177"} {"_id": "cwe_doc_118", "title": "CWE-118: Incorrect Access of Indexable Resource", "text": "The product does not restrict or incorrectly restricts operations within the boundaries of a resource that is accessed using an index or pointer, such as memory or files.\n\nCommon Consequences: Other Varies by Context", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-118"} {"_id": "cwe_doc_1188", "title": "CWE-1188: Initialization of a Resource with an Insecure Default", "text": "The product initializes or sets a resource with a default that is intended to be changed by the product's installer, administrator, or maintainer, but the default is not secure.\n\nCommon Consequences: Other Varies by Context The impact of insecure defaults varies widely depending on the functionality that the product controls.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1188"} {"_id": "cwe_doc_1189", "title": "CWE-1189: Improper Isolation of Shared Resources on System-on-a-Chip (SoC)", "text": "The System-On-a-Chip (SoC) does not properly isolate shared resources between trusted and untrusted agents.\n\nA System-On-a-Chip (SoC) has a lot of functionality, but it may have a limited number of pins or pads. A pin can only perform one function at a time. However, it can be configured to perform multiple different functions. This technique is called pin multiplexing. Similarly, several resources on the chip may be shared to multiplex and support different features or functions. When such resources are shared between trusted and untrusted agents, untrusted agents may be able to access the assets intended to be accessed only by the trusted agents.\n\nCommon Consequences: Access Control Bypass Protection Mechanism If resources being used by a trusted user are shared with an untrusted user, the untrusted user may be able to modify the functionality of the shared resource of the trusted user. | Integrity Quality Degradation The functionality of the shared resource may be intentionally degraded.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1189"} {"_id": "cwe_doc_119", "title": "CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer", "text": "The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary.\n\nCommon Consequences: Integrity Confidentiality Availability Execute Unauthorized Code or Commands Modify Memory This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data. If the memory accessible by the attacker can be effectively controlled, it may be possible to execute arbitrary code, as with a standard buffer overflow. If the attacker can overwrite a pointer's worth of memory (usually 32 or 64 bits), they can alter the intended control flow by redirecting a function pointer to their own malicious code. Even when the attacker can only modify a single byte, arbitrary code execution can be possible. Sometimes this is because the same problem can be exploited repeatedly to the same effect. Other times it is because the attacker can overwrite security-critical application-specific data -- such as a flag indicating whether the user is an administrator. | Availability Confidentiality Read Memory DoS: Crash, Exit, or Restart DoS: Resource Consumption (CPU) DoS: Resource Consumption (Memory) Out of bounds memory access will very likely result in the corruption of relevant memory, and perhaps instructions, possibly leading to a crash. Other attacks leading to lack of availability are possible, including putting the program into an infinite loop. | Confidentiality Read Memory In the case of an out-of-bounds read, the attacker may have access to sensitive information. If the sensitive information contains system details, such as the current buffer's position in memory, this knowledge can be used to craft further attacks, possibly with more severe consequences.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-119"} {"_id": "cwe_doc_1190", "title": "CWE-1190: DMA Device Enabled Too Early in Boot Phase", "text": "The product enables a Direct Memory Access (DMA) capable device before the security configuration settings are established, which allows an attacker to extract data from or gain privileges on the product.\n\nSeveral virtualization-based mitigations have been introduced to thwart DMA attacks. These are usually configured/setup during boot time. However, certain IPs that are powered up before boot is complete (known as early boot IPs) may be DMA capable. Such IPs, if not trusted, could launch DMA attacks and gain access to assets that should otherwise be protected.\n\nCommon Consequences: Access Control Bypass Protection Mechanism Modify Memory High An attacker could exploit this to access secrets. DMA devices have direct write access to main memory and due to time of attack will be able to bypass OS or Bootloader access control.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1190"} {"_id": "cwe_doc_1191", "title": "CWE-1191: On-Chip Debug and Test Interface With Improper Access Control", "text": "The chip does not implement or does not correctly perform access control to check whether users are authorized to access internal registers and test modes through the physical debug/test interface.\n\nIf authorization, authentication, or some other form of access control is not implemented or not implemented correctly, a user may be able to bypass on-chip protection mechanisms through the debug interface.\n\nCommon Consequences: Confidentiality Read Application Data High | Confidentiality Read Memory High | Authorization Execute Unauthorized Code or Commands High | Integrity Modify Memory High", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1191"} {"_id": "cwe_doc_1192", "title": "CWE-1192: Improper Identifier for IP Block used in System-On-Chip (SOC)", "text": "The System-on-Chip (SoC) does not have unique, immutable identifiers for each of its components.\n\nCommon Consequences: Access Control Bypass Protection Mechanism High", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1192"} {"_id": "cwe_doc_1193", "title": "CWE-1193: Power-On of Untrusted Execution Core Before Enabling Fabric Access Control", "text": "The product enables components that contain untrusted firmware before memory and fabric access controls have been enabled.\n\nCommon Consequences: Access Control Bypass Protection Mechanism High If untrusted IPs or peripheral microcontrollers are enabled too soon, then the untrusted component can master transactions on the hardware bus and target memory or other assets to compromise the SoC boot firmware.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1193"} {"_id": "cwe_doc_12", "title": "CWE-12: ASP.NET Misconfiguration: Missing Custom Error Page", "text": "An ASP .NET application must enable custom error pages in order to prevent attackers from mining information from the framework's built-in responses.\n\nCommon Consequences: Confidentiality Read Application Data Default error pages gives detailed information about the error that occurred, and should not be used in production environments. Attackers can leverage the additional information provided by a default error page to mount attacks targeted on the framework, database, or other resources used by the application.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-12"} {"_id": "cwe_doc_120", "title": "CWE-120: Buffer Copy without Checking Size of Input", "text": "The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.\n\nCommon Consequences: Integrity Confidentiality Availability Modify Memory Execute Unauthorized Code or Commands Buffer overflows often can be used to execute arbitrary code, which is usually outside the scope of the product's implicit security policy. This can often be used to subvert any other security service. | Availability Modify Memory DoS: Crash, Exit, or Restart DoS: Resource Consumption (CPU) Buffer overflows generally lead to crashes. Other attacks leading to lack of availability are possible, including putting the product into an infinite loop.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-120"} {"_id": "cwe_doc_1204", "title": "CWE-1204: Generation of Weak Initialization Vector (IV)", "text": "The product uses a cryptographic primitive that uses an Initialization Vector (IV), but the product does not generate IVs that are sufficiently unpredictable or unique according to the expected cryptographic requirements for that primitive.\n\nBy design, some cryptographic primitives (such as block ciphers) require that IVs must have certain properties for the uniqueness and/or unpredictability of an IV. Primitives may vary in how important these properties are.\n\nCommon Consequences: Confidentiality Read Application Data If the IV is not properly initialized, the cryptography may be weakened or broken by attacking the IVs themselves. Data that is encrypted can be compromised, and information about the data can be leaked. See [REF-1179].", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1204"} {"_id": "cwe_doc_1209", "title": "CWE-1209: Failure to Disable Reserved Bits", "text": "The reserved bits in a hardware design are not disabled prior to production.\n\nCommon Consequences: Confidentiality Integrity Availability Access Control Accountability Authentication Authorization Non-Repudiation Varies by Context If the logic being controlled by these bits is still enabled in production, an adversary could use the logic to induce unwanted/unsupported behavior in the hardware. Adversaries with access to these bits will write to them in hopes of compromising hardware state. This type of weakness all depends on the capabilities of the logic being controlled or configured by the reserved bits.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1209"} {"_id": "cwe_doc_121", "title": "CWE-121: Stack-based Buffer Overflow", "text": "The product writes past the end of a buffer that was allocated on the stack.\n\nCommon Consequences: Availability Modify Memory DoS: Crash, Exit, or Restart DoS: Resource Consumption (CPU) DoS: Resource Consumption (Memory) Buffer overflows generally lead to crashes. Other attacks leading to lack of availability are possible, including putting the program into an infinite loop. | Integrity Confidentiality Availability Access Control Modify Memory Execute Unauthorized Code or Commands Bypass Protection Mechanism Buffer overflows often can be used to execute arbitrary code, which is usually outside the scope of a program's implicit security policy. | Integrity Confidentiality Availability Access Control Other Modify Memory Execute Unauthorized Code or Commands Bypass Protection Mechanism Other When the consequence is arbitrary code execution, this can often be used to subvert any other security service.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-121"} {"_id": "cwe_doc_122", "title": "CWE-122: Heap-based Buffer Overflow", "text": "The product writes past the end of a buffer that was allocated on the heap.\n\nCommon Consequences: Availability DoS: Crash, Exit, or Restart DoS: Resource Consumption (CPU) DoS: Resource Consumption (Memory) Buffer overflows generally lead to crashes. Other attacks leading to lack of availability are possible, including putting the program into an infinite loop. | Integrity Confidentiality Availability Access Control Execute Unauthorized Code or Commands Bypass Protection Mechanism Modify Memory Buffer overflows often can be used to execute arbitrary code, which is usually outside the scope of a program's implicit security policy. Besides important user data, heap-based overflows can be used to overwrite function pointers that may be living in memory, pointing it to the attacker's code. Even in applications that do not explicitly use function pointers, the run-time will usually leave many in memory. For example, object methods in C++ are generally implemented using function pointers. Even in C programs, there is often a global offset table used by the underlying runtime. | Integrity Confidentiality Availability Access Control Other Execute Unauthorized Code or Commands Bypass Protection Mechanism Other When the consequence is arbitrary code execution, this can often be used to subvert any other security service.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-122"} {"_id": "cwe_doc_1220", "title": "CWE-1220: Insufficient Granularity of Access Control", "text": "The product implements access controls via a policy or other feature with the intention to disable or restrict accesses (reads and/or writes) to assets in a system from untrusted agents. However, implemented access controls lack the required granularity\n\nCommon Consequences: Confidentiality Integrity Availability Access Control Modify Memory Read Memory Execute Unauthorized Code or Commands Gain Privileges or Assume Identity Bypass Protection Mechanism Other High A common weakness that can exist in such protection schemes is that access controls or policies are not granular enough, which renders the control policy too broad, because it allows accesses from unauthorized agents to security-sensitive assets. This condition allows agents beyond trusted agents to access assets and could lead to a loss of functionality or the ability to set up the device securely. This further results in security risks from leaked, sensitive, key material to modification of device configuration.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1220"} {"_id": "cwe_doc_1221", "title": "CWE-1221: Incorrect Register Defaults or Module Parameters", "text": "Hardware description language code incorrectly defines register defaults or hardware Intellectual Property (IP) parameters to insecure values.\n\nCommon Consequences: Confidentiality Integrity Availability Access Control Varies by Context The system security settings of a hardware design can be affected by incorrectly defined default values or IP parameters. The hardware IP would be in an insecure state at power reset, and this can be exposed or exploited by untrusted software running on the system. Degradation of system functionality or loss of access control enforcement can occur. | Other Reduce Maintainability Both register defaults and parameters are hardcoded values, which cannot be changed using software or firmware patches but must be changed in hardware silicon. Thus, such security issues are considerably more difficult to address later in the lifecycle.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1221"} {"_id": "cwe_doc_1222", "title": "CWE-1222: Insufficient Granularity of Address Regions Protected by Register Locks", "text": "The product defines a large address region protected from modification by the same register lock control bit. This results in a conflict between the functional requirement that some addresses need to be writable by software during operation and the security requirement that the system configuration lock bit must be set during the boot process.\n\nA problem can arise wherein the protected region definition is not granular enough. After the programmable lock bit has been set, then this new functionality cannot be implemented without changing the hardware design.\n\nCommon Consequences: Access Control Other System security configuration cannot be defined in a way that does not conflict with functional requirements of device.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1222"} {"_id": "cwe_doc_1223", "title": "CWE-1223: Race Condition for Write-Once Attributes", "text": "A write-once register in hardware design is programmable by an untrusted software component earlier than the trusted software component, resulting in a race condition issue.\n\nImplementation issues in hardware design of such controls can expose such registers to a race condition security flaw. For example, consider a hardware design that has two different software/firmware modules executing in parallel. One module is trusted (module A) and another is untrusted (module B). In this design, it could be possible for Module B to send write cycles to the write-once register before Module A. Since the field is write-once, the programmed value from Module A will be ignored and the pre-empted value programmed by Module B will be used by hardware.\n\nCommon Consequences: Access Control Bypass Protection Mechanism System configuration cannot be programmed in a secure way.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1223"} {"_id": "cwe_doc_1224", "title": "CWE-1224: Improper Restriction of Write-Once Bit Fields", "text": "The hardware design control register \"sticky bits\" or write-once bit fields are improperly implemented, such that they can be reprogrammed by software.\n\nCommon Consequences: Confidentiality Integrity Availability Access Control Varies by Context Modify Memory System configuration cannot be programmed in a secure way. Failure to implement write-once restrictions in hardware design can expose such registers to being re-programmed by software and written multiple times. For example, write-once fields could be implemented to only be write-protected if they have been set to value \"1\", wherein they would work as \"write-1-once\" and not \"write-once\".", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1224"} {"_id": "cwe_doc_1229", "title": "CWE-1229: Creation of Emergent Resource", "text": "The product manages resources or behaves in a way that indirectly creates a new, distinct resource that can be used by attackers in violation of the intended policy.\n\nA product is only expected to behave in a way that was specifically intended by the developer. Resource allocation and management is expected to be performed explicitly by the associated code. However, in systems with complex behavior, the product might indirectly produce new kinds of resources that were never intended in the original design. For example, a covert channel is a resource that was never explicitly intended by the developer, but it is useful to attackers. \"Parasitic computing,\" while not necessarily malicious in nature, effectively tricks a product into performing unintended computations on behalf of another party.\n\nCommon Consequences: Other Varies by Context", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1229"} {"_id": "cwe_doc_123", "title": "CWE-123: Write-what-where Condition", "text": "Any condition where the attacker has the ability to write an arbitrary value to an arbitrary location, often as the result of a buffer overflow.\n\nCommon Consequences: Integrity Confidentiality Availability Access Control Modify Memory Execute Unauthorized Code or Commands Gain Privileges or Assume Identity DoS: Crash, Exit, or Restart Bypass Protection Mechanism Clearly, write-what-where conditions can be used to write data to areas of memory outside the scope of a policy. Also, they almost invariably can be used to execute arbitrary code, which is usually outside the scope of a program's implicit security policy. If the attacker can overwrite a pointer's worth of memory (usually 32 or 64 bits), they can redirect a function pointer to their own malicious code. Even when the attacker can only modify a single byte arbitrary code execution can be possible. Sometimes this is because the same problem can be exploited repeatedly to the same effect. Other times it is because the attacker can overwrite security-critical application-specific data -- such as a flag indicating whether the user is an administrator. | Integrity Availability DoS: Crash, Exit, or Restart Modify Memory Many memory accesses can lead to program termination, such as when writing to addresses that are invalid for the current process. | Access Control Other Bypass Protection Mechanism Other When the consequence is arbitrary code execution, this can often be used to subvert any other security service.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-123"} {"_id": "cwe_doc_1230", "title": "CWE-1230: Exposure of Sensitive Information Through Metadata", "text": "The product prevents direct access to a resource containing sensitive information, but it does not sufficiently limit access to metadata that is derived from the original, sensitive information.\n\nDevelopers might correctly prevent unauthorized access to a database or other resource containing sensitive information, but they might not consider that portions of the original information might also be recorded in metadata, search indices, statistical reports, or other resources. If these resources are not also restricted, then attackers might be able to extract some or all of the original information, or otherwise infer some details. For example, an attacker could specify search terms that are known to be unique to a particular person, or view metadata such as activity or creation dates in order to identify usage patterns.\n\nCommon Consequences: Confidentiality Read Application Data", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1230"} {"_id": "cwe_doc_1231", "title": "CWE-1231: Improper Prevention of Lock Bit Modification", "text": "The product uses a trusted lock bit for restricting access to registers, address regions, or other resources, but the product does not prevent the value of the lock bit from being modified after it has been set.\n\nCommon Consequences: Access Control Modify Memory High Design or coding errors in the implementation of the lock bit protection feature may allow the lock bit to be modified or cleared by software after it has been set. Attackers might be able to unlock the system and features that the bit is intended to protect. Registers protected by tje lock bit can be modified even when the lock is set.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1231"} {"_id": "cwe_doc_1232", "title": "CWE-1232: Improper Lock Behavior After Power State Transition", "text": "Register lock bit protection disables changes to system configuration once the bit is set. Some of the protected registers or lock bits become programmable after power state transitions (e.g., Entry and wake from low power sleep modes) causing the system configuration to be changeable.\n\nCommon Consequences: Access Control Modify Memory High", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1232"} {"_id": "cwe_doc_1233", "title": "CWE-1233: Security-Sensitive Hardware Controls with Missing Lock Bit Protection", "text": "The product uses a register lock bit protection mechanism, but it does not ensure that the lock bit prevents modification of system registers or controls that perform changes to important hardware system configuration.\n\nCommon Consequences: Access Control Modify Memory System Configuration protected by the lock bit can be modified even when the lock is set. If the lock bit does not effectively write-protect all system registers or controls that could modify the protected system configuration, then an adversary may be able to use software to access the registers/controls and modify the protected hardware configuration.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1233"} {"_id": "cwe_doc_1234", "title": "CWE-1234: Hardware Internal or Debug Modes Allow Override of Locks", "text": "System configuration protection may be bypassed during debug mode.\n\nCommon Consequences: Access Control Bypass Protection Mechanism High Bypass of the lock bit protection may allow access and modification of system configuration information, even when the lock bit is set.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1234"} {"_id": "cwe_doc_1235", "title": "CWE-1235: Incorrect Use of Autoboxing and Unboxing for Performance Critical Operations", "text": "The code uses boxed primitives, which may introduce inefficiencies into performance-critical operations.\n\nCommon Consequences: Availability DoS: Resource Consumption (CPU) DoS: Resource Consumption (Memory) DoS: Resource Consumption (Other) Reduce Performance Low Incorrect autoboxing/unboxing would result in reduced performance, which sometimes can lead to resource consumption issues, impacting availability when used with generic collections.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1235"} {"_id": "cwe_doc_1236", "title": "CWE-1236: Improper Neutralization of Formula Elements in a CSV File", "text": "The product saves user-provided information into a Comma-Separated Value (CSV) file, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as a command when the file is opened by a spreadsheet product.\n\nCommon Consequences: Confidentiality Read Application Data Execute Unauthorized Code or Commands Low Attackers can populate data fields which, when saved to a CSV file, may attempt information exfiltration or other malicious activity when automatically executed by the spreadsheet software. Note that current versions of Excel warn users of untrusted content.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1236"} {"_id": "cwe_doc_1239", "title": "CWE-1239: Improper Zeroization of Hardware Register", "text": "The hardware product does not properly clear sensitive information from built-in registers when the user of the hardware block changes.\n\nCommon Consequences: Confidentiality Varies by Context The consequences will depend on the information disclosed due to the vulnerability. When a different entity obtains access to the IP due to a change in operating mode or conditions, the new entity can extract information belonging to the previous user if no mechanisms are in place to clear register contents.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1239"} {"_id": "cwe_doc_124", "title": "CWE-124: Buffer Underwrite", "text": "The product writes to a buffer using an index or pointer that references a memory location prior to the beginning of the buffer.\n\nCommon Consequences: Integrity Availability Modify Memory DoS: Crash, Exit, or Restart Out of bounds memory access will very likely result in the corruption of relevant memory, and perhaps instructions, possibly leading to a crash. | Integrity Confidentiality Availability Access Control Other Execute Unauthorized Code or Commands Modify Memory Bypass Protection Mechanism Other If the corrupted memory can be effectively controlled, it may be possible to execute arbitrary code. If the corrupted memory is data rather than instructions, the system will continue to function with improper changes, possibly in violation of an implicit or explicit policy. The consequences would only be limited by how the affected data is used, such as an adjacent memory location that is used to specify whether the user has special privileges. | Access Control Other Bypass Protection Mechanism Other When the consequence is arbitrary code execution, this can often be used to subvert any other security service.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-124"} {"_id": "cwe_doc_1240", "title": "CWE-1240: Use of a Cryptographic Primitive with a Risky Implementation", "text": "To fulfill the need for a cryptographic primitive, the product implements a cryptographic algorithm using a non-standard, unproven, or disallowed/non-compliant cryptographic implementation.\n\nCryptographic protocols and systems depend on cryptographic primitives (and associated algorithms) as their basic building blocks. Some common examples of primitives are digital signatures, one-way hash functions, ciphers, and public key cryptography; however, the notion of \"primitive\" can vary depending on point of view. See \"Terminology Notes\" for further explanation of some concepts. Cryptographic primitives are defined to accomplish one very specific task in a precisely defined and mathematically reliable fashion. For example, suppose that for a specific cryptographic primitive (such as an encryption routine), the consensus is that the primitive can only be broken after trying out N different inputs (where the larger the value of N, the stronger the cryptography). For an encryption scheme like AES-256, one would expect N to be so large as to be infeasible to execute in a reasonable amount of time. If a vulnerability is ever found that shows that one can break a cryptographic primitive in significantly less than the expected number of attempts, then that primitive is considered weakened (or sometimes in extreme cases, colloquially it is \"broken\"). As a result, anything using this cryptographic primitive would now be considered insecure or risky. Thus, even breaking or weakening a seemingly small cryptographic primitive has the potential to render the whole system vulnerable, due to its reliance on the primitive. A historical example can be found in TLS when using DES. One would colloquially call DES the cryptographic primitive for transport encryption in this version of TLS. In the past, DES was considered strong, because no weaknesses were found in it; importantly, DES has a key length of 56 bits. Trying N=2^56 keys was considered impractical for most actors. Unfortunately, attacking a system with 56-bit keys is now practical via brute force, which makes defeating DES encryption practical. It is now practical for an adversary to read any information sent under this version of TLS and use this information to attack the system. As a result, it can be claimed that this use of TLS is weak, and that any system depending on TLS with DES could potentially render the entire system vulnerable to attack. Cryptographic primitives and associated algorithms are only considered safe after extensive research and review from experienced cryptographers from academia, industry, and government entities looking for any possible flaws. Furthermore, cryptographic primitives and associated algorithms are frequently reevaluated for safety when new mathematical and attack techniques are discovered. As a result and over time, even well-known cryptographic primitives can lose their compliance status with the discovery of novel attacks that might either defeat the algorithm or reduce its robustness significantly. If ad-hoc cryptographic primitives are implemented, it is almost certain that the implementation will be vulnerable to attacks that are well understood by cryptographers, resulting in the exposure of sensitive information and other consequences. This weakness is even more difficult to manage for hardware-implemented deployment of cryptographic algorithms. First, because hardware is not patchable as easily as software, any flaw discovered after release and production typically cannot be fixed without a recall of the product. Secondly, the hardware product is often expected to work for years, during which time computation power available to the attacker only increases. Therefore, for hardware implementations of cryptographic primitives, it is absolutely essential that only strong, proven cryptographic primitives are used.\n\nCommon Consequences: Confidentiality Read Application Data High Incorrect usage of crypto primitives could render the supposedly encrypted data as unencrypted plaintext in the worst case.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1240"} {"_id": "cwe_doc_1241", "title": "CWE-1241: Use of Predictable Algorithm in Random Number Generator", "text": "The device uses an algorithm that is predictable and generates a pseudo-random number.\n\nPseudo-random number generator algorithms are predictable because their registers have a finite number of possible states, which eventually lead to repeating patterns. As a result, pseudo-random number generators (PRNGs) can compromise their randomness or expose their internal state to various attacks, such as reverse engineering or tampering.\n\nCommon Consequences: Confidentiality Read Application Data High", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1241"} {"_id": "cwe_doc_1242", "title": "CWE-1242: Inclusion of Undocumented Features or Chicken Bits", "text": "The device includes chicken bits or undocumented features that can create entry points for unauthorized actors.\n\nA common design practice is to use undocumented bits on a device that can be used to disable certain functional security features. These bits are commonly referred to as \"chicken bits\". They can facilitate quick identification and isolation of faulty components, features that negatively affect performance, or features that do not provide the required controllability for debug and test. Another way to achieve this is through implementation of undocumented features.\n\nCommon Consequences: Confidentiality Integrity Availability Access Control Modify Memory Read Memory Execute Unauthorized Code or Commands Gain Privileges or Assume Identity Bypass Protection Mechanism An attacker might exploit these interfaces for unauthorized access.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1242"} {"_id": "cwe_doc_1243", "title": "CWE-1243: Sensitive Non-Volatile Information Not Protected During Debug", "text": "Access to security-sensitive information stored in fuses is not limited during debug.\n\nSeveral security-sensitive values are programmed into fuses to be used during early-boot flows or later at runtime. Examples of these security-sensitive values include root keys, encryption keys, manufacturing-specific information, chip-manufacturer-specific information, and original-equipment-manufacturer (OEM) data. After the chip is powered on, these values are sensed from fuses and stored in temporary locations such as registers and local memories. These locations are typically access-control protected from untrusted agents capable of accessing them. Even to trusted agents, only read-access is provided.\n\nCommon Consequences: Confidentiality Access Control Modify Memory Read Memory Bypass Protection Mechanism If these locations are not blocked during debug operations, it can allow a user to access this sensitive information.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1243"} {"_id": "cwe_doc_1244", "title": "CWE-1244: Internal Asset Exposed to Unsafe Debug Access Level or State", "text": "The product uses physical debug or test interfaces with support for multiple access levels, but it assigns the wrong debug access level to an internal asset, providing unintended access to the asset from untrusted debug agents.\n\nCommon Consequences: Confidentiality Read Memory If a protection mechanism does not ensure that internal assets have the correct debug access level during each boot stage or change in system state, an attacker could obtain sensitive information from the internal asset using a debugger. | Integrity Modify Memory | Authorization Access Control Gain Privileges or Assume Identity Bypass Protection Mechanism", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1244"} {"_id": "cwe_doc_1245", "title": "CWE-1245: Improper Finite State Machines (FSMs) in Hardware Logic", "text": "Faulty finite state machines (FSMs) in the hardware logic allow an attacker to put the system in an undefined state, to cause a denial of service (DoS) or gain privileges on the victim's system.\n\nThe functionality and security of the system heavily depend on the implementation of FSMs. FSMs can be used to indicate the current security state of the system. Lots of secure data operations and data transfers rely on the state reported by the FSM.\n\nCommon Consequences: Availability Access Control Unexpected State DoS: Crash, Exit, or Restart DoS: Instability Gain Privileges or Assume Identity Faulty FSM designs that do not account for all states, either through undefined states (left as don't cares) or through incorrect implementation, might lead an attacker to drive the system into an unstable state from which the system cannot recover without a reset, thus causing a DoS. Depending on what the FSM is used for, an attacker might also gain additional privileges to launch further attacks and compromise the security guarantees.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1245"} {"_id": "cwe_doc_1246", "title": "CWE-1246: Improper Write Handling in Limited-write Non-Volatile Memories", "text": "The product does not implement or incorrectly implements wear leveling operations in limited-write non-volatile memories.\n\nCommon Consequences: Availability DoS: Instability If wear leveling is improperly implemented, attackers may be able to programmatically cause the storage to become unreliable within a much shorter time than would normally be expected.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1246"} {"_id": "cwe_doc_1247", "title": "CWE-1247: Improper Protection Against Voltage and Clock Glitches", "text": "The device does not contain or contains incorrectly implemented circuitry or sensors to detect and mitigate voltage and clock glitches and protect sensitive information or software contained on the device.\n\nCommon Consequences: Confidentiality Integrity Availability Access Control Gain Privileges or Assume Identity Bypass Protection Mechanism Read Memory Modify Memory Execute Unauthorized Code or Commands", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1247"} {"_id": "cwe_doc_1248", "title": "CWE-1248: Semiconductor Defects in Hardware Logic with Security-Sensitive Implications", "text": "The security-sensitive hardware module contains semiconductor defects.\n\nCommon Consequences: Availability Access Control DoS: Instability Semiconductor defects manifest as faults on chip-internal signals or registers, have the effect of inputs, outputs, or intermediate signals being always 0 or always 1, and do not switch as expected. If such faults occur in security-sensitive hardware modules, the security objectives of the hardware module may be compromised.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1248"} {"_id": "cwe_doc_1249", "title": "CWE-1249: Application-Level Admin Tool with Inconsistent View of Underlying Operating System", "text": "The product provides an application for administrators to manage parts of the underlying operating system, but the application does not accurately identify all of the relevant entities or resources that exist in the OS; that is, the application's model of the OS's state is inconsistent with the OS's actual state.\n\nMany products provide web-based applications or other interfaces for managing the underlying operating system. This is common with cloud, network access devices, home networking, and other systems. When the management tool does not accurately represent what is in the OS - such as user accounts - then the administrator might not see suspicious activities that would be noticed otherwise. For example, numerous systems utilize a web front-end for administrative control. They also offer the ability to add, alter, and drop users with various privileges as it relates to the functionality of the system. A potential architectural weakness may exist where the user information reflected in the web interface does not mirror the users in the underlying operating system. Many web UI or REST APIs use the underlying operating system for authentication; the system's logic may also track an additional set of user capabilities within configuration files and datasets for authorization capabilities. When there is a discrepancy between the user information in the UI or REST API's interface system and the underlying operating system's user listing, this may introduce a weakness into the system. For example, if an attacker compromises the OS and adds a new user account - a \"ghost\" account - then the attacker could escape detection if the management tool does not list the newly-added account. This discrepancy could be exploited in several ways: A rogue admin could insert a new account into a system that will persist if they are terminated or wish to take action on a system that cannot be directly associated with them. An attacker can leverage a separate command injection attack available through the web interface to insert a ghost account with shell privileges such as ssh. An attacker can leverage existing web interface APIs, manipulated in such a way that a new user is inserted into the operating system, and the user web account is either partially created or not at all. An attacker could create an admin account which is viewable by an administrator, use this account to create the ghost account, delete logs and delete the first created admin account. Many of these attacker scenarios can be realized by leveraging separate vulnerabilities related to XSS, command injection, authentication bypass, or logic flaws on the various systems.\n\nCommon Consequences: Access Control Varies by Context | Accountability Hide Activities | Other Unexpected State", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1249"} {"_id": "cwe_doc_125", "title": "CWE-125: Out-of-bounds Read", "text": "The product reads data past the end, or before the beginning, of the intended buffer.\n\nCommon Consequences: Confidentiality Read Memory An attacker could get secret values such as cryptographic keys, PII, memory addresses, or other information that could be used in additional attacks. | Confidentiality Bypass Protection Mechanism Out-of-bounds memory could contain memory addresses or other information that can be used to bypass ASLR and other protection mechanisms in order to improve the reliability of exploiting a separate weakness for code execution. | Availability DoS: Crash, Exit, or Restart An attacker could cause a segmentation fault or crash by causing memory to be read outside of the bounds of the buffer. This is especially likely when the code reads a variable amount of data and assumes that a sentinel exists to stop the read operation, such as a NUL in a string. | Other Varies by Context The read operation could produce other undefined or unexpected results.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-125"} {"_id": "cwe_doc_1250", "title": "CWE-1250: Improper Preservation of Consistency Between Independent Representations of Shared State", "text": "The product has or supports multiple distributed components or sub-systems that are each required to keep their own local copy of shared data - such as state or cache - but the product does not ensure that all local copies remain consistent with each other.\n\nIn highly distributed environments, or on systems with distinct physical components that operate independently, there is often a need for each component to store and update its own local copy of key data such as state or cache, so that all components have the same \"view\" of the overall system and operate in a coordinated fashion. For example, users of a social media service or a massively multiplayer online game might be using their own personal computers while also interacting with different physical hosts in a globally distributed service, but all participants must be able to have the same \"view\" of the world. Alternately, a processor's Memory Management Unit (MMU) might have \"shadow\" MMUs to distribute its workload, and all shadow MMUs are expected to have the same accessible ranges of memory. In such environments, it becomes critical for the product to ensure that this \"shared state\" is consistently modified across all distributed systems. If state is not consistently maintained across all systems, then critical transactions might take place out of order, or some users might not get the same data as other users. When this inconsistency affects correctness of operations, it can introduce vulnerabilities in mechanisms that depend on consistent state.\n\nCommon Consequences: Other Unexpected State One or more of the components/sub-systems could assume that the state is different than it actually is.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1250"} {"_id": "cwe_doc_1251", "title": "CWE-1251: Mirrored Regions with Different Values", "text": "The product's architecture mirrors regions without ensuring that their contents always stay in sync.\n\nIn the interest of increased performance, one might need to duplicate a resource. A cache memory is a common example of this concept, which keeps a \"local\" copy of a data element in the high speed cache memory. Unfortunately, this speed improvement comes with a downside, since the product needs to ensure that the local copy always mirrors the original copy truthfully. If they get out of sync, the computational result is no longer true. During hardware design, memory is not the only item that gets mirrored. There are many other entities that get mirrored, as well: registers, memory regions, and, in some cases, even whole computational units. For example, within a multi-core processor, if all memory accesses for each and every core goes through a single Memory-Management Unit (MMU) then the MMU will become a performance bottleneck. In such cases, duplicating local MMUs that will serve only a subset of the cores rather than all of them may resolve the performance issue. These local copies are also called \"shadow copies\" or \"mirrored copies.\" If the original resource never changed, local duplicate copies getting out of sync would never be an issue. However, the values of the original copy will sometimes change. When the original copy changes, the mirrored copies must also change, and change fast. This situation of shadow-copy-possibly-out-of-sync-with-original-copy might occur as a result of multiple scenarios, including the following: After the values in the original copy change, due to some reason the original copy does not send the \"update\" request to its shadow copies. After the values in the original copy change, the original copy dutifully sends the \"update\" request to its shadow copies, but due to some reason the shadow copy does not \"execute\" this update request. After the values in the original copy change, the original copy sends the \"update\" request to its shadow copies, and the shadow copy executes this update request faithfully. However, during the small time period when the original copy has \"new\" values and the shadow copy is still holding the \"old\" values, an attacker can exploit the old values. Then it becomes a race condition between the attacker and the update process of who can reach the target, shadow copy first, and, if the attacker reaches first, the attacker wins. The attacker might send a \"spoofed\" update request to the target shadow copy, pretending that this update request is coming from the original copy. This spoofed request might cause the targeted shadow copy to update its values to some attacker-friendly values, while the original copies remain unchanged by the attacker. Suppose a situation where the original copy has a system of reverting back to its original value if it does not hear back from all the shadow copies that such copies have successfully completed the update request. In such a case, an attack might occur as follows: (1) the original copy might send an update request; (2) the shadow copy updates it; (3) the shadow copy sends back the successful completion message; (4) through a separate issue, the attacker is able to intercept the shadow copy's completion message. In this case, the original copy thinks that the update did not succeed, hence it reverts to its original value. Now there is a situation where the original copy has the \"old\" value, and the shadow copy has the \"new\" value.\n\nCommon Consequences: Confidentiality Integrity Availability Access Control Accountability Authentication Authorization Non-Repudiation Varies by Context Having mirrored regions with different values might result in the exposure of sensitive information or possibly system compromise.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1251"} {"_id": "cwe_doc_1252", "title": "CWE-1252: CPU Hardware Not Configured to Support Exclusivity of Write and Execute Operations", "text": "The CPU is not configured to provide hardware support for exclusivity of write and execute operations on memory. This allows an attacker to execute data from all of memory.\n\nCommon Consequences: Confidentiality Integrity Execute Unauthorized Code or Commands Without configuring exclusivity of operations via segregated areas of memory, an attacker may be able to inject malicious code onto memory and later execute it.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1252"} {"_id": "cwe_doc_1253", "title": "CWE-1253: Incorrect Selection of Fuse Values", "text": "The logic level used to set a system to a secure state relies on a fuse being unblown.\n\nFuses are often used to store secret data, including security configuration data. When not blown, a fuse is considered to store a logic 0, and, when blown, it indicates a logic 1. Fuses are generally considered to be one-directional, i.e., once blown to logic 1, it cannot be reset to logic 0.\n\nCommon Consequences: Access Control Authorization Bypass Protection Mechanism Gain Privileges or Assume Identity If the logic used to determine system-security state (by leveraging the values sensed from the fuses) uses negative logic, an attacker might blow the fuse and drive the system to an insecure state. | Availability DoS: Crash, Exit, or Restart | Confidentiality Read Memory | Integrity Modify Memory Execute Unauthorized Code or Commands", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1253"} {"_id": "cwe_doc_1254", "title": "CWE-1254: Incorrect Comparison Logic Granularity", "text": "The product's comparison logic is performed over a series of steps rather than across the entire string in one operation. If there is a comparison logic failure on one of these steps, the operation may be vulnerable to a timing attack that can result in the interception of the process for nefarious purposes.\n\nComparison logic is used to compare a variety of objects including passwords, Message Authentication Codes (MACs), and responses to verification challenges. When comparison logic is implemented at a finer granularity (e.g., byte-by-byte comparison) and breaks in the case of a comparison failure, an attacker can exploit this implementation to identify when exactly the failure occurred. With multiple attempts, the attacker may be able to guesses the correct password/response to challenge and elevate their privileges.\n\nCommon Consequences: Confidentiality Authorization Bypass Protection Mechanism", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1254"} {"_id": "cwe_doc_1255", "title": "CWE-1255: Comparison Logic is Vulnerable to Power Side-Channel Attacks", "text": "A device's real time power consumption may be monitored during security token evaluation and the information gleaned may be used to determine the value of the reference token.\n\nCommon Consequences: Confidentiality Integrity Availability Access Control Accountability Authentication Authorization Non-Repudiation Modify Memory Read Memory Read Files or Directories Modify Files or Directories Execute Unauthorized Code or Commands Gain Privileges or Assume Identity Bypass Protection Mechanism Read Application Data Modify Application Data Hide Activities The power consumed by a device may be instrumented and monitored in real time. If the algorithm for evaluating security tokens is not sufficiently robust, the power consumption may vary by token entry comparison against the reference value. Further, if retries are unlimited, the power difference between a \"good\" entry and a \"bad\" entry may be observed and used to determine whether each entry itself is correct thereby allowing unauthorized parties to calculate the reference value. As compromising a security token may result in complete system control, the impacts are relatively universal.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1255"} {"_id": "cwe_doc_1256", "title": "CWE-1256: Improper Restriction of Software Interfaces to Hardware Features", "text": "The product provides software-controllable device functionality for capabilities such as power and clock management, but it does not properly limit functionality that can lead to modification of hardware memory or register bits, or the ability to observe physical side channels.\n\nIt is frequently assumed that physical attacks such as fault injection and side-channel analysis require an attacker to have physical access to the target device. This assumption may be false if the device has improperly secured power management features, or similar features. For mobile devices, minimizing power consumption is critical, but these devices run a wide variety of applications with different performance requirements. Software-controllable mechanisms to dynamically scale device voltage and frequency and monitor power consumption are common features in today's chipsets, but they also enable attackers to mount fault injection and side-channel attacks without having physical access to the device. Fault injection attacks involve strategic manipulation of bits in a device to achieve a desired effect such as skipping an authentication step, elevating privileges, or altering the output of a cryptographic operation. Manipulation of the device clock and voltage supply is a well-known technique to inject faults and is cheap to implement with physical device access. Poorly protected power management features allow these attacks to be performed from software. Other features, such as the ability to write repeatedly to DRAM at a rapid rate from unprivileged software, can result in bit flips in other memory locations (Rowhammer, [REF-1083]). Side channel analysis requires gathering measurement traces of physical quantities such as power consumption. Modern processors often include power metering capabilities in the hardware itself (e.g., Intel RAPL) which if not adequately protected enable attackers to gather measurements necessary for performing side-channel attacks from software.\n\nCommon Consequences: Integrity Modify Memory Modify Application Data Bypass Protection Mechanism", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1256"} {"_id": "cwe_doc_1257", "title": "CWE-1257: Improper Access Control Applied to Mirrored or Aliased Memory Regions", "text": "Aliased or mirrored memory regions in hardware designs may have inconsistent read/write permissions enforced by the hardware.\n\nA common security weakness that can exist in such memory mapping is that aliased memory regions could have different read/write access protections enforced by the hardware such that an untrusted agent is blocked from accessing a memory address but is not blocked from accessing the corresponding aliased memory address. Such inconsistency can then be used to bypass the access protection of the primary memory block and read or modify the protected memory. An untrusted agent could also possibly create memory aliases in the system address map for malicious purposes if it is able to change the mapping of an address region or modify memory region sizes.\n\nCommon Consequences: Confidentiality Read Memory High An untrusted agent might be blocked from accessing a memory region, but it is not blocked from accessing the corresponding aliased memory region. | Integrity Modify Memory High An untrusted agent might be blocked from accessing a memory region, but it is not blocked from accessing the corresponding aliased memory region. | Availability DoS: Instability High", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1257"} {"_id": "cwe_doc_1258", "title": "CWE-1258: Exposure of Sensitive System Information Due to Uncleared Debug Information", "text": "The hardware product enters debug mode but does not fully clear security-sensitive values, such as keys and intermediate values in cryptographic operations.\n\nSecurity sensitive values, keys, intermediate steps of cryptographic operations, etc. are stored in temporary registers in the hardware.\n\nCommon Consequences: Confidentiality Read Memory Sensitive data could be accessed by a debugger, allowing sensitive information to be accessible by untrusted parties. | Access Control Bypass Protection Mechanism", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1258"} {"_id": "cwe_doc_1259", "title": "CWE-1259: Improper Restriction of Security Token Assignment", "text": "The System-On-A-Chip (SoC) implements a Security Token mechanism to differentiate what actions are allowed or disallowed when a transaction originates from an entity. However, the Security Tokens are improperly protected, such as improperly restricting the assignment to trusted components.\n\nCommon Consequences: Confidentiality Integrity Availability Access Control Modify Files or Directories Execute Unauthorized Code or Commands Bypass Protection Mechanism Gain Privileges or Assume Identity Modify Memory Modify Memory DoS: Crash, Exit, or Restart High An improperly protected Security Token may be able to be programmed by a malicious agent (i.e., the Security Token is mutable) to spoof the action as if it originated from a trusted agent.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1259"} {"_id": "cwe_doc_126", "title": "CWE-126: Buffer Over-read", "text": "The product reads from a buffer using buffer access mechanisms such as indexes or pointers that reference memory locations after the targeted buffer.\n\nCommon Consequences: Confidentiality Read Memory | Confidentiality Bypass Protection Mechanism By reading out-of-bounds memory, an attacker might be able to get secret values, such as memory addresses, which can bypass protection mechanisms such as ASLR in order to improve the reliability and likelihood of exploiting a separate weakness to achieve code execution instead of just denial of service. | Availability Integrity DoS: Crash, Exit, or Restart An attacker might be able to cause a crash or other denial of service by causing the product to read a memory location that is not allowed (such as a segmentation fault), or to cause other conditions in which the read operation returns more data than is expected.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-126"} {"_id": "cwe_doc_1260", "title": "CWE-1260: Improper Handling of Overlap Between Protected Memory Ranges", "text": "The product allows address regions to overlap, which can result in the bypassing of intended memory protection.\n\nIsolated memory regions and access control (read/write) policies are used by hardware to protect privileged software. Software components are often allowed to change or remap memory region definitions in order to enable flexible and dynamically changeable memory management by system software.\n\nCommon Consequences: Confidentiality Integrity Availability Modify Memory Read Memory DoS: Instability DoS: Prevent Access High If a software component running at lower privilege can program a memory address region to overlap with other memory regions used by software running at higher privilege, privilege escalation may be available to attackers. The memory protection unit (MPU) logic can incorrectly handle such an address overlap and allow the lower-privilege software to read or write into the protected memory region, resulting in a privilege escalation attack. An address overlap weakness can also be used to launch a denial of service attack on the higher-privilege software memory regions.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1260"} {"_id": "cwe_doc_1261", "title": "CWE-1261: Improper Handling of Single Event Upsets", "text": "The hardware logic does not effectively handle when single-event upsets (SEUs) occur.\n\nTechnology trends such as CMOS-transistor down-sizing, use of new materials, and system-on-chip architectures continue to increase the sensitivity of systems to soft errors. These errors are random, and their causes might be internal (e.g., interconnect coupling) or external (e.g., cosmic radiation). These soft errors are not permanent in nature and cause temporary bit flips known as single-event upsets (SEUs). SEUs are induced errors in circuits caused when charged particles lose energy by ionizing the medium through which they pass, leaving behind a wake of electron-hole pairs that cause temporary failures. If these failures occur in security-sensitive modules in a chip, it might compromise the security guarantees of the chip. For instance, these temporary failures could be bit flips that change the privilege of a regular user to root.\n\nCommon Consequences: Availability Access Control DoS: Crash, Exit, or Restart DoS: Instability Gain Privileges or Assume Identity Bypass Protection Mechanism", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1261"} {"_id": "cwe_doc_1262", "title": "CWE-1262: Improper Access Control for Register Interface", "text": "The product uses memory-mapped I/O registers that act as an interface to hardware functionality from software, but there is improper access control to those registers.\n\nSoftware commonly accesses peripherals in a System-on-Chip (SoC) or other device through a memory-mapped register interface. Malicious software could tamper with any security-critical hardware data that is accessible directly or indirectly through the register interface, which could lead to a loss of confidentiality and integrity.\n\nCommon Consequences: Confidentiality Integrity Read Memory Read Application Data Modify Memory Modify Application Data Gain Privileges or Assume Identity Bypass Protection Mechanism Unexpected State Alter Execution Logic Confidentiality of hardware assets may be violated if the protected information can be read out by software through the register interface. Registers storing security state, settings, other security-critical data may be corruptible by software without correctly implemented protections.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1262"} {"_id": "cwe_doc_1263", "title": "CWE-1263: Improper Physical Access Control", "text": "The product is designed with access restricted to certain information, but it does not sufficiently protect against an unauthorized actor with physical access to these areas.\n\nThe specific requirements around how robust the design of the physical protection mechanism depends on the type of product being protected. Selecting the correct physical protection mechanism and properly enforcing it through implementation and manufacturing are critical to the overall physical security of the product.\n\nCommon Consequences: Confidentiality Integrity Access Control Varies by Context Sections of a product intended to have restricted access may be inadvertently or intentionally rendered accessible when the implemented physical protections are insufficient.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1263"} {"_id": "cwe_doc_1264", "title": "CWE-1264: Hardware Logic with Insecure De-Synchronization between Control and Data Channels", "text": "The hardware logic for error handling and security checks can incorrectly forward data before the security check is complete.\n\nMany high-performance on-chip bus protocols and processor data-paths employ separate channels for control and data to increase parallelism and maximize throughput. Bugs in the hardware logic that handle errors and security checks can make it possible for data to be forwarded before the completion of the security checks. If the data can propagate to a location in the hardware observable to an attacker, loss of data confidentiality can occur. 'Meltdown' is a concrete example of how de-synchronization between data and permissions checking logic can violate confidentiality requirements. Data loaded from a page marked as privileged was returned to the CPU regardless of current privilege level for performance reasons. The assumption was that the CPU could later remove all traces of this data during the handling of the illegal memory access exception, but this assumption was proven false as traces of the secret data were not removed from the microarchitectural state.\n\nCommon Consequences: Confidentiality Read Memory Read Application Data", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1264"} {"_id": "cwe_doc_1265", "title": "CWE-1265: Unintended Reentrant Invocation of Non-reentrant Code Via Nested Calls", "text": "The product invokes code that is believed to be reentrant, but the code performs a call that unintentionally produces a nested invocation of non-reentrant code.\n\nIn a complex product, a single function call may lead to many different possible code paths, some of which may involve deeply nested calls. It may be difficult to foresee all possible code paths that could emanate from a given function call, even if that call is assumed to be reentrant. In some systems, an external actor can manipulate inputs to the system and thereby achieve a wide range of possible control flows. This is frequently a concern in products that execute scripts from untrusted sources. Examples of such products are web browsers and PDF readers. A weakness is present when one of the possible code paths resulting from a function call alters program state that the original caller assumes to be unchanged during the call.\n\nCommon Consequences: Integrity Unexpected State Unknown Exploitation of this weakness can leave the application in an unexpected state and cause variables to be reassigned before the first invocation has completed. This may eventually result in memory corruption or unexpected code execution.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1265"} {"_id": "cwe_doc_1266", "title": "CWE-1266: Improper Scrubbing of Sensitive Data from Decommissioned Device", "text": "The product does not properly provide a capability for the product administrator to remove sensitive data at the time the product is decommissioned. A scrubbing capability could be missing, insufficient, or incorrect.\n\nCommon Consequences: Confidentiality Read Memory Read Application Data Improper scrubbing of sensitive data from a decommissioned device leaves that data vulnerable to acquisition by a malicious actor. Sensitive data may include, but is not limited to, device/manufacturer proprietary information, user/device credentials, network configurations, and other forms of sensitive data.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1266"} {"_id": "cwe_doc_1267", "title": "CWE-1267: Policy Uses Obsolete Encoding", "text": "The product uses an encoding mechanism that is no longer trusted, i.e., an obsolete encoding, to implement access controls.\n\nCommon Consequences: Confidentiality Integrity Availability Access Control Modify Memory Read Memory Modify Files or Directories Read Files or Directories DoS: Resource Consumption (Other) Execute Unauthorized Code or Commands Gain Privileges or Assume Identity Bypass Protection Mechanism Reduce Reliability High", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1267"} {"_id": "cwe_doc_1268", "title": "CWE-1268: Policy Privileges are not Assigned Consistently Between Control and Data Agents", "text": "The product's hardware-enforced access control for a particular resource improperly accounts for privilege discrepancies between control and write policies.\n\nCommon Consequences: Confidentiality Integrity Availability Access Control Modify Memory Read Memory DoS: Crash, Exit, or Restart Execute Unauthorized Code or Commands Gain Privileges or Assume Identity Bypass Protection Mechanism Read Files or Directories Reduce Reliability High Resources that include agents in their control policy but not in their write policy could unintentionally allow an untrusted agent to insert itself in the write policy register. Inclusion in the write policy register could allow a malicious or misbehaving agent write access to resources. This action could result in security compromises including leaked information, leaked encryption keys, or modification of device configuration.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1268"} {"_id": "cwe_doc_1269", "title": "CWE-1269: Product Released in Non-Release Configuration", "text": "The product released to market is released in pre-production or manufacturing configuration.\n\nCommon Consequences: Confidentiality Integrity Availability Access Control Accountability Authentication Authorization Non-Repudiation Other High", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1269"} {"_id": "cwe_doc_127", "title": "CWE-127: Buffer Under-read", "text": "The product reads from a buffer using buffer access mechanisms such as indexes or pointers that reference memory locations prior to the targeted buffer.\n\nCommon Consequences: Confidentiality Read Memory | Confidentiality Bypass Protection Mechanism By reading out-of-bounds memory, an attacker might be able to get secret values, such as memory addresses, which can bypass protection mechanisms such as ASLR in order to improve the reliability and likelihood of exploiting a separate weakness to achieve code execution instead of just denial of service.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-127"} {"_id": "cwe_doc_1270", "title": "CWE-1270: Generation of Incorrect Security Tokens", "text": "The product implements a Security Token mechanism to differentiate what actions are allowed or disallowed when a transaction originates from an entity. However, the Security Tokens generated in the system are incorrect.\n\nSystems-On-a-Chip (SoC) (Integrated circuits and hardware engines) implement Security Tokens to differentiate and identify actions originated from various agents. These actions could be \"read\", \"write\", \"program\", \"reset\", \"fetch\", \"compute\", etc. Security Tokens are generated and assigned to every agent on the SoC that is either capable of generating an action or receiving an action from another agent. Every agent could be assigned a unique Security Token based on its trust level or privileges.\n\nCommon Consequences: Confidentiality Integrity Availability Access Control Modify Files or Directories Execute Unauthorized Code or Commands Bypass Protection Mechanism Gain Privileges or Assume Identity Read Memory Modify Memory DoS: Crash, Exit, or Restart High Incorrectly generated Security Tokens could result in the same token used for multiple agents or multiple tokens being used for the same agent. This condition could result in a Denial-of-Service (DoS) or the execution of an action that in turn could result in privilege escalation or unintended access.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1270"} {"_id": "cwe_doc_1271", "title": "CWE-1271: Uninitialized Value on Reset for Registers Holding Security Settings", "text": "Security-critical logic is not set to a known value on reset.\n\nCommon Consequences: Access Control Authentication Authorization Varies by Context When the device is first brought out of reset, the state of registers will be indeterminate if they have not been initialized by the logic. Before the registers are initialized, there will be a window during which the device is in an insecure state and may be vulnerable to attack.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1271"} {"_id": "cwe_doc_1272", "title": "CWE-1272: Sensitive Information Uncleared Before Debug/Power State Transition", "text": "The product performs a power or debug state transition, but it does not clear sensitive information that should no longer be accessible due to changes to information access restrictions.\n\nCommon Consequences: Confidentiality Integrity Availability Access Control Accountability Authentication Authorization Non-Repudiation Read Memory Read Application Data High If there is information available in the previous state which should not be available in the next state and is not properly removed before the transition into the next state, sensitive information may leak from the system. The sensitive information may be used to unlock additional capabilities of the device and take advantage of hidden functionalities which could be used to compromise device security.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1272"} {"_id": "cwe_doc_1273", "title": "CWE-1273: Device Unlock Credential Sharing", "text": "The credentials necessary for unlocking a device are shared across multiple parties and may expose sensitive information.\n\n\"Unlocking a device\" often means activating certain unadvertised debug and manufacturer-specific capabilities of a device using sensitive credentials. Unlocking a device might be necessary for the purpose of troubleshooting device problems. For example, suppose a device contains the ability to dump the content of the full system memory by disabling the memory-protection mechanisms. Since this is a highly security-sensitive capability, this capability is \"locked\" in the production part. Unless the device gets unlocked by supplying the proper credentials, the debug capabilities are not available. For cases where the chip designer, chip manufacturer (fabricator), and manufacturing and assembly testers are all employed by the same company, the risk of compromise of the credentials is greatly reduced. However, the risk is greater when the chip designer is employed by one company, the chip manufacturer is employed by another company (a foundry), and the assemblers and testers are employed by yet a third company. Since these different companies will need to perform various tests on the device to verify correct device function, they all need to share the unlock key. Unfortunately, the level of secrecy and policy might be quite different at each company, greatly increasing the risk of sensitive credentials being compromised.\n\nCommon Consequences: Confidentiality Integrity Availability Access Control Accountability Authentication Authorization Non-Repudiation Modify Memory Read Memory Modify Files or Directories Read Files or Directories Modify Application Data Execute Unauthorized Code or Commands Gain Privileges or Assume Identity Bypass Protection Mechanism Once unlock credentials are compromised, an attacker can use the credentials to unlock the device and gain unauthorized access to the hidden functionalities protected by those credentials.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1273"} {"_id": "cwe_doc_1274", "title": "CWE-1274: Improper Access Control for Volatile Memory Containing Boot Code", "text": "The product conducts a secure-boot process that transfers bootloader code from Non-Volatile Memory (NVM) into Volatile Memory (VM), but it does not have sufficient access control or other protections for the Volatile Memory.\n\nCommon Consequences: Access Control Integrity Modify Memory Execute Unauthorized Code or Commands Gain Privileges or Assume Identity High If the volatile-memory-region protections or access controls are insufficient to prevent modifications from an adversary or untrusted agent, the secure boot may be bypassed or replaced with the execution of an adversary's own code.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1274"} {"_id": "cwe_doc_1275", "title": "CWE-1275: Sensitive Cookie with Improper SameSite Attribute", "text": "The SameSite attribute for sensitive cookies is not set, or an insecure value is used.\n\nCommon Consequences: Confidentiality Integrity Non-Repudiation Access Control Modify Application Data If the \"None\" value is used, a website may create a cross-domain POST HTTP request to another website, and the browser automatically adds cookies to this request. This may enable Cross-Site-Request-Forgery (CSRF) attacks if there are no additional protections in place (such as Anti-CSRF tokens). The likelihood of the integrity breach is Low because a successful attack does not depend solely on an insecure SameSite attribute. In order to perform a CSRF attack, many other conditions might need to be met, such as the lack of CSRF tokens, no confirmations for sensitive actions on the website, a \"simple\" \"Content-Type\" header in the HTTP request, etc.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1275"} {"_id": "cwe_doc_1276", "title": "CWE-1276: Hardware Child Block Incorrectly Connected to Parent System", "text": "Signals between a hardware IP and the parent system design are incorrectly connected.\n\nCommon Consequences: Confidentiality Integrity Availability Varies by Context This may cause security risks. For example, if the IP should only be reset by a system-wide hard reset, but instead the reset input is connected to a software-triggered debug mode reset (which is also asserted during a hard reset), integrity of data inside the IP can be violated.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1276"} {"_id": "cwe_doc_1277", "title": "CWE-1277: Firmware Not Updateable", "text": "The product does not provide its users with the ability to update or patch its firmware to address any vulnerabilities or weaknesses that may be present.\n\nCommon Consequences: Confidentiality Integrity Access Control Authentication Authorization Gain Privileges or Assume Identity Bypass Protection Mechanism Execute Unauthorized Code or Commands DoS: Crash, Exit, or Restart Medium Without the ability to patch or update firmware, consumers will be left vulnerable to exploitation of any known vulnerabilities, or any vulnerabilities that are discovered in the future. This can expose consumers to permanent risk throughout the entire lifetime of the device, which could be years or decades. It may be possible for the attack to be used against an entire class of devices. Some external protective measures and mitigations might be employed to aid in preventing or reducing the risk of malicious attack, but the root weakness cannot be corrected.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1277"} {"_id": "cwe_doc_1278", "title": "CWE-1278: Missing Protection Against Hardware Reverse Engineering Using Integrated Circuit (IC) Imaging Techniques", "text": "Information stored in hardware may be recovered by an attacker with the capability to capture and analyze images of the integrated circuit using techniques such as scanning electron microscopy.\n\nThese secrets may be stored in non-volatile memory or in the circuit netlist. Memory technologies such as masked ROM make it easier to extract secrets than One-time Programmable (OTP) memory.\n\nCommon Consequences: Confidentiality Varies by Context A common goal of malicious actors who reverse engineer ICs is to produce and sell counterfeit versions of the IC. The physical structure of a device, viewed at high enough magnification, can reveal the information stored inside. Typical steps in IC reverse engineering involve removing the chip packaging (decapsulation), then using various imaging techniques ranging from high resolution x-ray microscopy to invasive techniques involving removing IC layers and imaging each layer using a scanning electron microscope. The goal of such activities is to recover secret keys, unique device identifiers, and proprietary code and circuit designs embedded in hardware that the attacker has been unsuccessful at accessing through other means.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1278"} {"_id": "cwe_doc_1279", "title": "CWE-1279: Cryptographic Operations are Run Before Supporting Units are Ready", "text": "Performing cryptographic operations without ensuring that the supporting inputs are ready to supply valid data may compromise the cryptographic result.\n\nCommon Consequences: Access Control Confidentiality Integrity Availability Accountability Authentication Authorization Non-Repudiation Varies by Context", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1279"} {"_id": "cwe_doc_128", "title": "CWE-128: Wrap-around Error", "text": "Wrap around errors occur whenever a value is incremented past the maximum value for its type and therefore \"wraps around\" to a very small, negative, or undefined value.\n\nCommon Consequences: Availability DoS: Crash, Exit, or Restart DoS: Resource Consumption (CPU) DoS: Resource Consumption (Memory) DoS: Instability This weakness will generally lead to undefined behavior and therefore crashes. In the case of overflows involving loop index variables, the likelihood of infinite loops is also high. | Integrity Modify Memory If the value in question is important to data (as opposed to flow), simple data corruption has occurred. Also, if the wrap around results in other conditions such as buffer overflows, further memory corruption may occur. | Confidentiality Availability Access Control Execute Unauthorized Code or Commands Bypass Protection Mechanism This weakness can sometimes trigger buffer overflows which can be used to execute arbitrary code. This is usually outside the scope of a program's implicit security policy.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-128"} {"_id": "cwe_doc_1280", "title": "CWE-1280: Access Control Check Implemented After Asset is Accessed", "text": "A product's hardware-based access control check occurs after the asset has been accessed.\n\nThe product implements a hardware-based access control check. The asset should be accessible only after the check is successful. If, however, this operation is not atomic and the asset is accessed before the check is complete, the security of the system may be compromised.\n\nCommon Consequences: Access Control Confidentiality Integrity Modify Memory Read Memory Modify Application Data Read Application Data Gain Privileges or Assume Identity Bypass Protection Mechanism", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1280"} {"_id": "cwe_doc_1281", "title": "CWE-1281: Sequence of Processor Instructions Leads to Unexpected Behavior", "text": "Specific combinations of processor instructions lead to undesirable behavior such as locking the processor until a hard reset performed.\n\nIf the instruction set architecture (ISA) and processor logic are not designed carefully and tested thoroughly, certain combinations of instructions may lead to locking the processor or other unexpected and undesirable behavior. Upon encountering unimplemented instruction opcodes or illegal instruction operands, the processor should throw an exception and carry on without negatively impacting security. However, specific combinations of legal and illegal instructions may cause unexpected behavior with security implications such as allowing unprivileged programs to completely lock the CPU.\n\nCommon Consequences: Integrity Availability Varies by Context", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1281"} {"_id": "cwe_doc_1282", "title": "CWE-1282: Assumed-Immutable Data is Stored in Writable Memory", "text": "Immutable data, such as a first-stage bootloader, device identifiers, and \"write-once\" configuration settings are stored in writable memory that can be re-programmed or updated in the field.\n\nCommon Consequences: Integrity Varies by Context Security is lost if assets assumed to be immutable can be modified.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1282"} {"_id": "cwe_doc_1283", "title": "CWE-1283: Mutable Attestation or Measurement Reporting Data", "text": "The register contents used for attestation or measurement reporting data to verify boot flow are modifiable by an adversary.\n\nCommon Consequences: Integrity Modify Memory Modify Application Data An adversary could spoof the measurement.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1283"} {"_id": "cwe_doc_1284", "title": "CWE-1284: Improper Validation of Specified Quantity in Input", "text": "The product receives input that is expected to specify a quantity (such as size or length), but it does not validate or incorrectly validates that the quantity has the required properties.\n\nCommon Consequences: Other Integrity Availability Varies by Context DoS: Resource Consumption (CPU) Modify Memory Read Memory When the quantity is not properly validated, then attackers can specify malicious quantities to cause excessive resource allocation, trigger unexpected failures, enable buffer overflows, etc.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1284"} {"_id": "cwe_doc_1285", "title": "CWE-1285: Improper Validation of Specified Index, Position, or Offset in Input", "text": "The product receives input that is expected to specify an index, position, or offset into an indexable resource such as a buffer or file, but it does not validate or incorrectly validates that the specified index/position/offset has the required properties.\n\nOften, indexable resources such as memory buffers or files can be accessed using a specific position, index, or offset, such as an index for an array or a position for a file. When untrusted input is not properly validated before it is used as an index, attackers could access (or attempt to access) unauthorized portions of these resources. This could be used to cause buffer overflows, excessive resource allocation, or trigger unexpected failures.\n\nCommon Consequences: Other Varies by Context", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1285"} {"_id": "cwe_doc_1286", "title": "CWE-1286: Improper Validation of Syntactic Correctness of Input", "text": "The product receives input that is expected to be well-formed - i.e., to comply with a certain syntax - but it does not validate or incorrectly validates that the input complies with the syntax.\n\nCommon Consequences: Other Varies by Context When untrusted input is not properly validated for the expected syntax, attackers could cause parsing failures, trigger unexpected errors, or expose latent vulnerabilities that might not be directly exploitable if the input had conformed to the syntax.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1286"} {"_id": "cwe_doc_1287", "title": "CWE-1287: Improper Validation of Specified Type of Input", "text": "The product receives input that is expected to be of a certain type, but it does not validate or incorrectly validates that the input is actually of the expected type.\n\nCommon Consequences: Other Varies by Context When input does not comply with the expected type, attackers could trigger unexpected errors, cause incorrect actions to take place, or exploit latent vulnerabilities that would not be possible if the input conformed with the expected type.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1287"} {"_id": "cwe_doc_1288", "title": "CWE-1288: Improper Validation of Consistency within Input", "text": "The product receives a complex input with multiple elements or fields that must be consistent with each other, but it does not validate or incorrectly validates that the input is actually consistent.\n\nCommon Consequences: Other Varies by Context When complex inputs are inconsistent, attackers could trigger unexpected errors, cause incorrect actions to take place, or exploit latent vulnerabilities.", "source": "MITRE CWE", "license": "MITRE-CWE-TOU", "source_id": "CWE-1288"} {"_id": "cwe_doc_1289", "title": "CWE-1289: Improper Validation of Unsafe Equivalence in Input", "text": "The product receives an input value that is used as a resource identifier or other type of reference, but it does not validate or incorrectly validates that the input is equivalent to a potentially-unsafe value.\n\nCommon Consequences: Other Varies by Context Bypass Protection Mechanism Attackers can sometimes bypass input validation schemes by finding inputs that appear to be safe, but will be dangerous when processed at a lower layer or by a downstream component. For example, a simple XSS protection mechanism might try to validate that an input has no \"