CWE-181: Incorrect Behavior Order: Validate Before Filter
Also known as: Validate-before-cleanse
The product validates data before it has been filtered, which prevents the product from detecting data that becomes invalid after the filtering step.
Last updated
Overview
CWE-181 (Incorrect Behavior Order: Validate Before Filter) is a variant-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Common consequences
What can happen when CWE-181 is exploited.
Bypass Protection Mechanism
Affects: Access Control
This prevents the product from detecting data that becomes invalid after the filtering step. An attacker can bypass the validation and launch attacks that expose weaknesses that would otherwise be prevented, such as injection.
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.
How to prevent it
Practical mitigations for CWE-181, grouped by where in the lifecycle they apply.