CWE-181 · Słabość
Incorrect Behavior Order: Validate Before Filter
- Abstrakcja
- Wariant
- Status
- Szkic
- Dodano
- 19 lipca 2006
- Ostatnia zmiana
- 11 grudnia 2025
Opis
The product validates data before it has been filtered, which prevents the product from detecting data that becomes invalid after the filtering step.
This can be used by an attacker to bypass the validation and launch attacks that expose weaknesses that would otherwise be prevented, such as injection.
Inne nazwy
- Validate-before-cleanse
Skutki
Access Control
Bypass Protection Mechanism
Zapobieganie
Implementation, Architecture and Design
Inputs should be decoded and canonicalized to the application's current internal representation before being filtered.
Przykłady podatności
- CVE-2002-0934 Directory traversal vulnerability allows remote attackers to read or modify arbitrary files via invalid characters between two . (dot) characters, which are filtered and result in a ".." sequence.
- CVE-2003-0282 Directory traversal vulnerability allows attackers to overwrite arbitrary files via invalid characters between two . (dot) characters, which are filtered and result in a ".." sequence.
Słabość nadrzędna
Kiedy powstaje
- Implementation
Dotyczy
Not Language-Specific
Uwagi
This category is probably under-studied.
Wpis z katalogu CWE 4.20.