VariantDraft
CWE-181Incorrect Behavior Order: Validate Before Filter
Category: other
Description
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.
Common consequences· 1
- Access Control — Bypass Protection Mechanism
Potential mitigations· 1
- [Implementation, Architecture and Design]Inputs should be decoded and canonicalized to the application's current internal representation before being filtered.
Related CAPEC attack patterns· 7
References
Exploits (incoming)7
| Type | Target | Confidence | Tier |
|---|---|---|---|
| AttackPattern | Using UTF-8 Encoding to Bypass Validation Logiccapec-80 | 100% | live |
| AttackPattern | Using Slashes in Alternate Encodingcapec-79 | 100% | live |
| AttackPattern | Leverage Alternate Encodingcapec-267 | 100% | live |
| AttackPattern | Double Encodingcapec-120 | 100% | live |
| AttackPattern | Exploiting Multiple Input Interpretation Layerscapec-43 | 100% | live |
| AttackPattern | Using Leading 'Ghost' Character Sequences to Bypass Input Filterscapec-3 | 100% | live |
| AttackPattern | Using Escaped Slashes in Alternate Encodingcapec-78 | 100% | live |
Related by meaning· 6
Nearest entities by semantic similarity across the cs-graph corpus.