Umbra Wiki weakness weakness/CWE-606
Back to wiki

CWE-606 — Unchecked Input for Loop Condition

provenance: imported · CWE: CWE-606

CWE-606: Unchecked Input for Loop Condition

MITRE CWE weakness

Kind Weakness
Abstraction Base
Status Draft
Likelihood of exploit

Description

The product does not properly check inputs that are used for loop conditions, potentially leading to a denial of service or other consequences because of excessive looping.

Common consequences

  • Availability: DoS: Resource Consumption (CPU)

Mitigations

Implementation — Do not use user-controlled data for loop conditions.

Implementation — Perform input validation.

References

  • CWE page: https://cwe.mitre.org/data/definitions/606.html
  • CWE list: https://cwe.mitre.org/data/index.html