CWE-1284Improper Validation of Specified Quantity in Input

PUBLISHEDweakness record
released 2020-02-24 · last modified 2026-04-30

Metadata

CWE ID:
CWE-1284
摘要:
Base
结构:
Simple
状态:
Incomplete
发布日期:
2020-02-24
更新日期:
2026-04-30

名称

Improper Validation of Specified Quantity in Input

描述

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.

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.

常见后果

范围:
Other, Integrity, Availability
影响:
Varies by Context, DoS: Resource Consumption (CPU), Modify Memory, Read Memory
注释:
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.

相关 CWE