CWE-1287: Improper Validation of Specified Type of Input

BaseIncomplete

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.

View on MITRE
Back to CWE Lookup

Extended Description

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. This weakness can appear in type-unsafe programming languages, or in programming languages that support casting or conversion of an input to another type.

Technical Details

Structure
Simple

Applicable To

Languages
Not Language-Specific
Platforms

Learn More