RVM automatically loads environment...

- AV AC AU C I A
发布: 2025-04-13
修订: 2025-04-13

RVM, by default, hooks `cd` and automatically detects the presence of certain files in the directory being changed to. These files and their mechanics are detailed at <https://rvm.io/workflow/projects>. The code that parses these files is available at <https://github.com/rvm/rvm/blob/master/scripts/functions/rvmrc_project> (look for the `__rvm_load_project_config` function). The code, as of a vulnerable commit, is available at <https://github.com/rvm/rvm/blob/b04c0158d/scripts/functions/rvmrc_project#L61>. The parsing of these files allows for the exporting of arbitrary environment variables into the current shell. For example, to set the environment variable `FOO` to the value `"bar"`: * `.versions.conf` should contain the line `"env-FOO=bar"`; OR * `Gemfile` should contain the line `"#ruby-env-FOO=bar"` (Note that the parsing of `Gemfile` throws a notice in the user's shell); OR * `.ruby-version`, `.rbfu-version` or `.rbenv-version` should be accompanied by a file named...

0%
暂无可用Exp或PoC
当前有0条受影响产品信息