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

FIX for file permissions - using too high causes that gem install set 777 on files installed in system #20

Merged
merged 1 commit into from
Oct 3, 2019

Conversation

infakt-HNP
Copy link

@infakt-HNP infakt-HNP commented Sep 27, 2019

that's insecure on production envs.

@infakt-HNP infakt-HNP changed the title correct chmods - using too high causes setting 777 during gem install correct chmods - using too high causes that gem install set 777 on files installed in system Sep 27, 2019
@infakt-HNP infakt-HNP mentioned this pull request Sep 27, 2019
@infakt-HNP infakt-HNP changed the title correct chmods - using too high causes that gem install set 777 on files installed in system FIX for file permissions - using too high causes that gem install set 777 on files installed in system Sep 27, 2019
@dspinhirne
Copy link
Owner

Could you please comment more on the change which was made as well as the outcome.

@infakt-HNP
Copy link
Author

@dspinhirne all files in your repo have chmod 755, is causes that bundle install set chmod 777 during deployments. That's a security issue, for example nginx user or apache can replace gem files on the server.
So, 644 is enough to make this gem usable.

@dspinhirne dspinhirne merged commit 3aac46c into dspinhirne:master Oct 3, 2019
@infakt-HNP
Copy link
Author

@dspinhirne I see that a version is 2.0.4, but in ruby gems that's 2.0.3 https://rubygems.org/gems/netaddr/versions/
Could you build new gemfile and add file to rubygems.org or allow me, hubert.nodzak-pluta [at] infakt.pl via gem owner netaddr --add <my-email>

siyuee pushed a commit to siyuee/netaddr-rb that referenced this pull request Feb 13, 2020
As per dspinhirne#20, this change chmods all files in the directory to have 644 permissions instead of 755.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants