| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
PopenExecutor constructs a "cd '<dir>'; ..." for the chdir: option in
spawn/system/IO.popen; the directory path was embedded in single quotes
without escaping, allowing single-quote breakout and arbitrary command
injection:
system('echo hello', chdir: "x'; touch /tmp/pwned; echo '")
MRI uses the POSIX chdir syscall directly and is not affected
| Back | FazBrowse Home | New Git URL |
PopenExecutor constructs a cd '<dir>'; ... for the chdir: option in spawn/system/IO.popen;
directory path was embedded in single quotes without escaping, allowing single-quote breakout command injection:
system('echo hello', chdir: "x'; touch /tmp/pwned; echo '")p.s. MRI uses the POSIX chdir syscall directly and is not affected