1949
Weakness Ordinalities
Indirect :
Common Consequences
Scope Impact Likelihood
Other Reduce Maintainability
Detection Methods
Automated Static Analysis
Automated static analysis, commonly referred to as Static Application Security Testing (SAST),
can find some instances of this weakness by analyzing source code (or binary/compiled code)
without having to execute it. Typically, this is done by building a model of data flow and control
flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input)
with "sinks" (destinations where the data interacts with external components, a lower layer such
as the OS, etc.)
Effectiveness = High
MemberOf Relationships
This MemberOf relationships table shows additional CWE Catgeories and Views that reference this
weakness as a member. This information is often useful in understanding where a weakness fits
within the context of external information sources.
Nature Type ID Name Page
MemberOf 1412 Comprehensive Categorization: Poor Coding Practices 1400 2538
References
[REF-963]Robert A. Martin and Lawrence H. Shafer. "Providing a Framework for
Effective Software Quality Assessment". 1996 July. < https://www.researchgate.net/
publication/285403022_PROVIDING_A_FRAMEWORK_FOR_EFFECTIVE_SOFTWARE_QUALITY_MEASUREMENT_>.2023-04-07.
CWE-1109: Use of Same Variable for Multiple Purposes
Weakness ID : 1109
Structure : Simple
Abstraction : Base
Description
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.
Extended Description
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.
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.
Relationships
The table(s) below shows the weaknesses and high level categories that are related to this
weakness. These relationships are defined as ChildOf, ParentOf, MemberOr and give insight to
CWE Version 4.14
CWE-1110: Incomplete Design Documentation
CWE-1110: Incomplete Design Documentation