CWE一覧に戻る
CWE-243

作業ディレクトリを変更しないchroot Jailの作成

Creation of chroot Jail Without Changing Working Directory
脆弱性 レビュー中
JA

製品は、chroot()システムコールを使用してjailを作成しますが、その後の作業ディレクトリは変更しません。これは、jailの外側のファイルへのアクセスを防止しません。

chroot()の不適切な使用により、攻撃者がchroot jailから脱出できる可能性がある。chroot()関数の呼び出しは、プロセスの現在の作業ディレクトリを変更しないため、相対パスは、chroot()が呼び出された後も、chroot jailの外のファイルシステムリソースを参照する可能性があります。

EN

The product uses the chroot() system call to create a jail, but does not change the working directory afterward. This does not prevent access to files outside of the jail.

Improper use of chroot() may allow attackers to escape from the chroot jail. The chroot() function call does not change the process's current working directory, so relative paths may still refer to file system resources outside of the chroot jail after chroot() has been called.

Scope: Confidentiality / Impact: Read Files or Directories
MITRE公式ページ — CWE-243