CWE-1110 – Incomplete Design Documentation

Read Time:13 Second

Description

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.

Modes of Introduction:

 

 

Related Weaknesses

CWE-1059

 

Consequences

 

Potential Mitigations

CVE References

CWE-111 – Direct Use of Unsafe JNI

Read Time:49 Second

Description

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.

Many safety features that programmers may take for granted do not apply for native code, so you must carefully review all such code for potential problems. The languages used to implement native code may be more susceptible to buffer overflows and other attacks. Native code is unprotected by the security features enforced by the runtime environment, such as strong typing and array bounds checking.

Modes of Introduction:

– Implementation

 

 

Related Weaknesses

CWE-695
CWE-20

 

Consequences

Access Control: Bypass Protection Mechanism

 

Potential Mitigations

Phase: Implementation

Description: 

Implement error handling around the JNI call.

Phase: Implementation

Description: 

Do not use JNI calls if you don’t trust the native library.

Phase: Implementation

Description: 

Be reluctant to use JNI calls. A Java API equivalent may exist.

CVE References

CWE-1108 – Excessive Reliance on Global Variables

Read Time:16 Second

Description

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.

Modes of Introduction:

 

 

Related Weaknesses

CWE-1076

 

Consequences

Other: Reduce Maintainability

 

Potential Mitigations

CVE References

CWE-1105 – Insufficient Encapsulation of Machine-Dependent Functionality

Read Time:14 Second

Description

The product or code uses machine-dependent functionality, but
it does not sufficiently encapsulate or isolate this functionality from
the rest of the code.

Modes of Introduction:

 

 

Related Weaknesses

CWE-758
CWE-1061

 

Consequences

Other: Reduce Maintainability

 

Potential Mitigations

CVE References

CWE-1102 – Reliance on Machine-Dependent Data Representation

Read Time:15 Second

Description

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.

Modes of Introduction:

 

 

Related Weaknesses

CWE-758
CWE-1105

 

Consequences

Other: Reduce Maintainability

 

Potential Mitigations

CVE References

News, Advisories and much more

Exit mobile version