CWE一覧に戻る
CWE-54

パスの等価性: 'filedir' (末尾のバックスラッシュ)

Path Equivalence: 'filedir\' (Trailing Backslash)
脆弱性 作成中
JA

本製品は、適切な検証を行うことなく、末尾にバックスラッシュ('filedir')を含む形式のパス入力を受け付けます。このため、パスの解決方法が曖昧になり、攻撃者がファイルシステムを意図しない場所に移動したり、任意のファイルにアクセスしたりする可能性があります。

EN

The product accepts path input in the form of trailing backslash ('filedir\') without appropriate validation, which can lead to ambiguous path resolution and allow an attacker to traverse the file system to unintended locations or access arbitrary files.

Scope: Confidentiality, Integrity / Impact: Read Files or Directories; Modify Files or Directories
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-54