COMMON WEAKNESS ENUMERATIONDraft

CWE-351

Insufficient Type Distinction

The product does not properly distinguish between different types of elements in a way that leads to insecure behavior.

Abstraction

Base

Structure

Simple

Likelihood of Exploit

Medium

Understand the problem

What is the problem?

The product does not properly distinguish between different types of elements in a way that leads to insecure behavior.

Root cause

How and when does the problem arise?

Lifecycle phase

Implementation

Risk

What does successful exploitation lead to?

Other

Affected security scopes: Other

Defence

How is it prevented and fixed?

  • Follow secure coding guidelines for input handling and boundary checking.
  • Enforce strict security reviews and automated static analysis (SAST) checks.