CWE-181: Incorrect Behavior Order: Validate Before Filter
Filter
The product validates data before it has been filtered, which prevents the product from detecting data that becomes invalid after the filtering step.
What the weakness is: CWE-181 at MITRE. All weaknesses
Related attack patterns (CAPEC): 7
- CAPEC-3 Using Leading 'Ghost' Character Sequences to Bypass Input Filters Likelihood: Medium · Severity: Medium
- CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
- CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
- CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
- CAPEC-80 Using UTF-8 Encoding to Bypass Validation Logic Likelihood: High · Severity: High
- CAPEC-120 Double Encoding Likelihood: Low · Severity: Medium
- CAPEC-267 Leverage Alternate Encoding Likelihood: High · Severity: High
The attack patterns MITRE's CAPEC relates to CWE-181, as MITRE names them. Credits.
Ask an AI about CWE-181
Show the prompt
Explain CWE-181: Incorrect Behavior Order: Validate Before Filter and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/181.html and https://cve.bz/cve/cwe/181?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.
No records match.