Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Upgraded rails version to v5.2.4.4 to address:
Browse files Browse the repository at this point in the history
- CVE-2020-15169- https://groups.google.com/g/rubyonrails-security/c/b-C9kSGXYrc?pli=1
- Remved unwanted security patch that was necessary for old rails v4.x
  • Loading branch information
adongare committed Sep 11, 2020
1 parent 3e8dd61 commit 332e436
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 82 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ script:
- bundle exec rake teaspoon DIR='javascripts'
- bash <(curl -s https://codecov.io/bash) -f ./coverage-frontend/default/lcov.info
- bundle exec brakeman -qAzw1
- bundle exec bundle-audit check --update --ignore CVE-2020-5267
- bundle exec bundle-audit check --update
- bundle exec overcommit --sign
- bundle exec overcommit --run
- bundle exec rake test
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source 'https://rubygems.org'

gem 'rails', '5.2.4.3'
gem 'rails', '5.2.4.4'

gem 'sprockets'

Expand Down
80 changes: 40 additions & 40 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -43,43 +43,43 @@ GIT
GEM
remote: https://rubygems.org/
specs:
actioncable (5.2.4.3)
actionpack (= 5.2.4.3)
actioncable (5.2.4.4)
actionpack (= 5.2.4.4)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
actionmailer (5.2.4.3)
actionpack (= 5.2.4.3)
actionview (= 5.2.4.3)
activejob (= 5.2.4.3)
actionmailer (5.2.4.4)
actionpack (= 5.2.4.4)
actionview (= 5.2.4.4)
activejob (= 5.2.4.4)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (5.2.4.3)
actionview (= 5.2.4.3)
activesupport (= 5.2.4.3)
actionpack (5.2.4.4)
actionview (= 5.2.4.4)
activesupport (= 5.2.4.4)
rack (~> 2.0, >= 2.0.8)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.2.4.3)
activesupport (= 5.2.4.3)
actionview (5.2.4.4)
activesupport (= 5.2.4.4)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activejob (5.2.4.3)
activesupport (= 5.2.4.3)
activejob (5.2.4.4)
activesupport (= 5.2.4.4)
globalid (>= 0.3.6)
activemodel (5.2.4.3)
activesupport (= 5.2.4.3)
activerecord (5.2.4.3)
activemodel (= 5.2.4.3)
activesupport (= 5.2.4.3)
activemodel (5.2.4.4)
activesupport (= 5.2.4.4)
activerecord (5.2.4.4)
activemodel (= 5.2.4.4)
activesupport (= 5.2.4.4)
arel (>= 9.0)
activestorage (5.2.4.3)
actionpack (= 5.2.4.3)
activerecord (= 5.2.4.3)
activestorage (5.2.4.4)
actionpack (= 5.2.4.4)
activerecord (= 5.2.4.4)
marcel (~> 0.3.1)
activesupport (5.2.4.3)
activesupport (5.2.4.4)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
Expand Down Expand Up @@ -199,7 +199,7 @@ GEM
sprockets (~> 3.0)
libv8 (3.16.14.19)
log4r (1.1.10)
loofah (2.6.0)
loofah (2.7.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
macaddr (1.7.2)
Expand All @@ -217,7 +217,7 @@ GEM
mimemagic (0.3.5)
mini_mime (1.0.2)
mini_portile2 (2.4.0)
minitest (5.14.1)
minitest (5.14.2)
mongo (2.13.0)
bson (>= 4.8.2, < 5.0.0)
mongoid (6.4.5)
Expand All @@ -232,7 +232,7 @@ GEM
net-ssh (6.1.0)
netrc (0.11.0)
newrelic_rpm (6.12.0.367)
nio4r (2.5.2)
nio4r (2.5.3)
nokogiri (1.10.10)
mini_portile2 (~> 2.4.0)
non-stupid-digest-assets (1.0.9)
Expand All @@ -256,18 +256,18 @@ GEM
rack (2.2.3)
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails (5.2.4.3)
actioncable (= 5.2.4.3)
actionmailer (= 5.2.4.3)
actionpack (= 5.2.4.3)
actionview (= 5.2.4.3)
activejob (= 5.2.4.3)
activemodel (= 5.2.4.3)
activerecord (= 5.2.4.3)
activestorage (= 5.2.4.3)
activesupport (= 5.2.4.3)
rails (5.2.4.4)
actioncable (= 5.2.4.4)
actionmailer (= 5.2.4.4)
actionpack (= 5.2.4.4)
actionview (= 5.2.4.4)
activejob (= 5.2.4.4)
activemodel (= 5.2.4.4)
activerecord (= 5.2.4.4)
activestorage (= 5.2.4.4)
activesupport (= 5.2.4.4)
bundler (>= 1.3.0)
railties (= 5.2.4.3)
railties (= 5.2.4.4)
sprockets-rails (>= 2.0.0)
rails-controller-testing (1.0.5)
actionpack (>= 5.0.1.rc1)
Expand All @@ -286,9 +286,9 @@ GEM
json
require_all (~> 3.0)
ruby-progressbar
railties (5.2.4.3)
actionpack (= 5.2.4.3)
activesupport (= 5.2.4.3)
railties (5.2.4.4)
actionpack (= 5.2.4.4)
activesupport (= 5.2.4.4)
method_source
rake (>= 0.8.7)
thor (>= 0.19.0, < 2.0)
Expand Down Expand Up @@ -421,7 +421,7 @@ DEPENDENCIES
overcommit
pry
pry-byebug
rails (= 5.2.4.3)
rails (= 5.2.4.4)
rails-controller-testing
rails_best_practices
rest-client
Expand Down
1 change: 0 additions & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
require "action_controller/railtie"
require "action_mailer/railtie"
require "rails/test_unit/railtie"
require_relative './security_patch_cve20205267'

if defined?(Bundler)
# If you precompile assets before deploying to production, use this line
Expand Down
39 changes: 0 additions & 39 deletions config/security_patch_cve20205267.rb

This file was deleted.

0 comments on commit 332e436

Please sign in to comment.