CWE-1284: Improper Validation of Specified Quantity in Input

BaseIncomplete

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.

View on MITRE
Back to CWE Lookup

Extended Description

Specified quantities include size, length, frequency, price, rate, number of operations, time, and others. Code may rely on specified quantities to allocate resources, perform calculations, control iteration, etc. 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.

Technical Details

Structure
Simple

Applicable To

Languages
Not Language-Specific
Platforms

Learn More