CWE一覧に戻る
CWE-363

リンク・フォローを有効にするレース条件

Race Condition Enabling Link Following
脆弱性 レビュー中
JA

本製品は、ファイルやディレクトリにアクセスする前にそのステータスをチェックするため、アクセスが実行される前にファイルがリンクに置き換えられてしまい、誤ったファイルにアクセスしてしまうという競合状態が発生する。

開発者は、チェック時点と使用時点の間に非常に狭い時間窓があることを予期しているかもしれないが、それでもレースコンディションは存在する。攻撃者が製品を遅くさせ(例えばメモリ消費)、時間窓を大きくさせる可能性がある。また、状況によっては、攻撃者が多数の攻撃を行うことで競争に勝つこともできる。

EN

The product checks the status of a file or directory before accessing it, which produces a race condition in which the file can be replaced with a link before the access is performed, causing the product to access the wrong file.

While developers might expect that there is a very narrow time window between the time of check and time of use, there is still a race condition. An attacker could cause the product to slow down (e.g. with memory consumption), causing the time window to become larger. Alternately, in some situations, the attacker could win the race by performing a large number of attacks.

Scope: Confidentiality, Integrity / Impact: Read Files or Directories; Modify Files or Directories
MITRE公式ページ — CWE-363