Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Randomize tmp_path for more security #207

Merged
merged 1 commit into from
Dec 31, 2020
Merged

Conversation

mattbrictson
Copy link
Owner

tomo setup used to stage files in /tmp/tomo, which is a stable and predictable path. Since /tmp is globally writable, this path could be exploited by another process to interfere with the tomo setup command.

To prevent this, tomo will now use a randomly generated temporary path, like this: /tmp/tomo-a4DBHX0P.

If you prefer the old behavior, or wish to use a different path, set the tmp_path in your tomo config, like this:

set tmp_path: "/tmp/tomo"

`tomo setup` used to stage files in `/tmp/tomo`, which is a stable and
predictable path. Since `/tmp` is globally writable, this path could be
exploited by another process to interfere with the `tomo setup` command.

To prevent this, tomo will now use a randomly generated temporary path,
like this: `/tmp/tomo-a4DBHX0P`.

If you prefer the old behavior, or wish to use a different path, set
the `tmp_path` in your tomo config, like this:

```ruby
set tmp_path: "/tmp/tomo"
```
@mattbrictson mattbrictson added ⚠️ Breaking Introduces a backwards-incompatible change automerge Automatically merge this PR once all required checks pass labels Dec 31, 2020
@mattbrictson mattbrictson changed the title Randomize tmp_path for more security Randomize :tmp_path for more security Dec 31, 2020
@mattbrictson mattbrictson changed the title Randomize :tmp_path for more security Randomize tmp_path for more security Dec 31, 2020
@kodiakhq kodiakhq bot merged commit 2361417 into main Dec 31, 2020
@kodiakhq kodiakhq bot deleted the security/randomize-tmp-path branch December 31, 2020 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Automatically merge this PR once all required checks pass ⚠️ Breaking Introduces a backwards-incompatible change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant