Component
chmod
Description
--preserve-root can be bypassed with any directory that resolves to root.
In Chmoder::chmod()
if self.recursive && self.preserve_root && file == Path::new("/") {
return Err(ChmodError::PreserveRoot("/".to_string()).into());
}
Test / Reproduction Steps
../target/release/chmod -R --preserve-root 000 /../ -v
Component
chmodDescription
--preserve-rootcan be bypassed with any directory that resolves to root.In
Chmoder::chmod()Test / Reproduction Steps