CWE-243Creation of chroot Jail Without Changing Working Directory

PUBLISHEDweakness recordHigh
released 2006-07-19 · last modified 2023-06-29

Metadata

CWE ID:
CWE-243
摘要:
Variant
结构:
Simple
状态:
Draft
发布日期:
2006-07-19
更新日期:
2023-06-29

名称

Creation of chroot Jail Without Changing Working Directory

描述

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.

常见后果

范围:
Confidentiality
影响:
Read Files or Directories

相关 CWE