CWE一覧に戻る
CWE-179

誤った行動順序早期検証

Incorrect Behavior Order: Early Validation
脆弱性 作成中
JA

この製品は、入力を修正する保護メカニズムを適用する前に入力を検証するため、攻撃者は、修正後にのみ発生する危険な入力によって検証をバイパスすることができる。

製品は、データが正規化されクレンジングされた後、適切なタイミングでデータを検証する必要がある。早期の検証は、正規化とクレンジングによって生成される危険な入力をもたらすさまざまな操作の影響を受けやすい。

EN

The product validates input before applying protection mechanisms that modify the input, which could allow an attacker to bypass the validation via dangerous inputs that only arise after the modification.

Product needs to validate data at the proper time, after data has been canonicalized and cleansed. Early validation is susceptible to various manipulations that result in dangerous inputs that are produced by canonicalization and cleansing.

Scope: Access Control, Integrity / Impact: Bypass Protection Mechanism; Execute Unauthorized Code or Commands
Inputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180). Make sure that the application does not decode the same input twice (CWE-174). Such errors could be used to bypass allowlist validation schemes by introducing dangerous inputs after they have been checked.
MITRE公式ページ — CWE-179