$52 GRAYBYTE WORDPRESS FILE MANAGER $17

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/ruby18/share/ri/1.8/system/FileUtils/

HOME
Current File : /opt/alt/ruby18/share/ri/1.8/system/FileUtils//remove_entry_secure-i.yaml
--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: "This method removes a file system entry <tt>path</tt>. <tt>path</tt> shall be a regular file, a directory, or something. If <tt>path</tt> is a directory, remove it recursively. This method is required to avoid TOCTTOU (time-of-check-to-time-of-use) local security vulnerability of #rm_r. #rm_r causes security hole when:"
- !ruby/struct:SM::Flow::VERB 
  body: "  * Parent directory is world writable (including /tmp).\n  * Removing directory tree includes world writable directory.\n  * The system has symbolic link.\n"
- !ruby/struct:SM::Flow::P 
  body: To avoid this security hole, this method applies special preprocess. If <tt>path</tt> is a directory, this method chown(2) and chmod(2) all removing directories. This requires the current process is the owner of the removing whole directory tree, or is the super user (root).
- !ruby/struct:SM::Flow::P 
  body: "WARNING: You must ensure that <b>ALL</b> parent directories cannot be moved by other untrusted users. For example, parent directories should not be owned by untrusted users, and should not be world writable except when the sticky bit set."
- !ruby/struct:SM::Flow::P 
  body: "WARNING: Only the owner of the removing directory tree, or Unix super user (root) should invoke this method. Otherwise this method does not work."
- !ruby/struct:SM::Flow::P 
  body: "For details of this security vulnerability, see Perl's case:"
- !ruby/struct:SM::Flow::VERB 
  body: "  http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-0448\n  http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0452\n"
- !ruby/struct:SM::Flow::P 
  body: For fileutils.rb, this vulnerability is reported in [ruby-dev:26100].
full_name: FileUtils#remove_entry_secure
is_singleton: false
name: remove_entry_secure
params: (path, force = false)
visibility: public


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.50 PM
root / linksafe
0755
DryRun
--
3 Mar 2024 10.50 PM
root / linksafe
0755
Entry_
--
3 Mar 2024 10.50 PM
root / linksafe
0755
NoWrite
--
3 Mar 2024 10.50 PM
root / linksafe
0755
StreamUtils_
--
3 Mar 2024 10.50 PM
root / linksafe
0755
Verbose
--
3 Mar 2024 10.50 PM
root / linksafe
0755
cd-i.yaml
0.625 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
cdesc-FileUtils.yaml
6.063 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
chdir-i.yaml
0.23 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
chmod-i.yaml
0.584 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
chmod_R-i.yaml
0.492 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
chown-i.yaml
0.738 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
chown_R-i.yaml
0.747 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
cmp-i.yaml
0.224 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
collect_method-c.yaml
0.447 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
commands-c.yaml
0.411 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
compare_file-i.yaml
0.54 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
compare_stream-i.yaml
0.3 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
copy-i.yaml
0.234 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
copy_entry-i.yaml
1.041 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
copy_file-i.yaml
0.364 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
copy_stream-i.yaml
0.348 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
cp-i.yaml
0.863 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
cp_r-i.yaml
1.287 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
fu_have_symlink%3f-i.yaml
0.184 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
fu_world_writable%3f-i.yaml
0.19 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
getwd-i.yaml
0.215 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
have_option%3f-c.yaml
0.494 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
identical%3f-i.yaml
0.237 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
install-i.yaml
0.729 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
link-i.yaml
0.234 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
ln-i.yaml
1.232 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
ln_s-i.yaml
1.324 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
ln_sf-i.yaml
0.355 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
makedirs-i.yaml
0.242 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
mkdir-i.yaml
0.526 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
mkdir_p-i.yaml
0.816 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
mkpath-i.yaml
0.238 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
move-i.yaml
0.234 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
mv-i.yaml
0.769 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
options-c.yaml
0.404 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
options_of-c.yaml
0.405 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
pwd-i.yaml
0.329 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
remove-i.yaml
0.233 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
remove_dir-i.yaml
0.348 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
remove_entry-i.yaml
0.471 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
remove_entry_secure-i.yaml
1.881 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
remove_file-i.yaml
0.317 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
rm-i.yaml
0.644 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
rm_f-i.yaml
0.404 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
rm_r-i.yaml
1.182 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
rm_rf-i.yaml
0.533 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
rmdir-i.yaml
0.544 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
rmtree-i.yaml
0.236 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
safe_unlink-i.yaml
0.245 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
symlink-i.yaml
0.242 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
touch-i.yaml
0.519 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
uptodate%3f-i.yaml
0.525 KB
26 Jul 2023 1.47 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF