Skip to content

Commit

Permalink
Changed "upgrade to" to "update to" to match bundle update (closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Aug 15, 2024
1 parent ae4e6ee commit 3a5b620
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,55 +31,55 @@ Audit a project's `Gemfile.lock`:
Criticality: Medium
URL: http://www.osvdb.org/show/osvdb/91452
Title: XSS vulnerability in sanitize_css in Action Pack
Solution: upgrade to ~> 2.3.18, ~> 3.1.12, >= 3.2.13
Solution: update to ~> 2.3.18, ~> 3.1.12, >= 3.2.13

Name: actionpack
Version: 3.2.10
Advisory: OSVDB-91454
Criticality: Medium
URL: http://osvdb.org/show/osvdb/91454
Title: XSS Vulnerability in the `sanitize` helper of Ruby on Rails
Solution: upgrade to ~> 2.3.18, ~> 3.1.12, >= 3.2.13
Solution: update to ~> 2.3.18, ~> 3.1.12, >= 3.2.13

Name: actionpack
Version: 3.2.10
Advisory: OSVDB-89026
Criticality: High
URL: http://osvdb.org/show/osvdb/89026
Title: Ruby on Rails params_parser.rb Action Pack Type Casting Parameter Parsing Remote Code Execution
Solution: upgrade to ~> 2.3.15, ~> 3.0.19, ~> 3.1.10, >= 3.2.11
Solution: update to ~> 2.3.15, ~> 3.0.19, ~> 3.1.10, >= 3.2.11

Name: activerecord
Version: 3.2.10
Advisory: OSVDB-91453
Criticality: High
URL: http://osvdb.org/show/osvdb/91453
Title: Symbol DoS vulnerability in Active Record
Solution: upgrade to ~> 2.3.18, ~> 3.1.12, >= 3.2.13
Solution: update to ~> 2.3.18, ~> 3.1.12, >= 3.2.13

Name: activerecord
Version: 3.2.10
Advisory: OSVDB-90072
Criticality: Medium
URL: http://direct.osvdb.org/show/osvdb/90072
Title: Ruby on Rails Active Record attr_protected Method Bypass
Solution: upgrade to ~> 2.3.17, ~> 3.1.11, >= 3.2.12
Solution: update to ~> 2.3.17, ~> 3.1.11, >= 3.2.12

Name: activerecord
Version: 3.2.10
Advisory: OSVDB-89025
Criticality: High
URL: http://osvdb.org/show/osvdb/89025
Title: Ruby on Rails Active Record JSON Parameter Parsing Query Bypass
Solution: upgrade to ~> 2.3.16, ~> 3.0.19, ~> 3.1.10, >= 3.2.11
Solution: update to ~> 2.3.16, ~> 3.0.19, ~> 3.1.10, >= 3.2.11

Name: activesupport
Version: 3.2.10
Advisory: OSVDB-91451
Criticality: High
URL: http://www.osvdb.org/show/osvdb/91451
Title: XML Parsing Vulnerability affecting JRuby users
Solution: upgrade to ~> 3.1.12, >= 3.2.13
Solution: update to ~> 3.1.12, >= 3.2.13

Unpatched versions found!

Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/audit/cli/formats/junit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def bundle_title(result)

def advisory_solution(advisory)
unless advisory.patched_versions.empty?
"upgrade to #{advisory.patched_versions.map { |v| "'#{v}'" }.join(', ')}"
"update to #{advisory.patched_versions.map { |v| "'#{v}'" }.join(', ')}"
else
"remove or disable this gem until a patch is available!"
end
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/audit/cli/formats/text.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def print_advisory(gem, advisory)
end

unless advisory.patched_versions.empty?
say "Solution: upgrade to ", :red
say "Solution: update to ", :red
say advisory.patched_versions.map { |v| "'#{v}'" }.join(', ')
else
say "Solution: ", :red
Expand Down
4 changes: 2 additions & 2 deletions spec/cli/formats/junit_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@
end

context "when Advisory#patched_versions is not empty" do
it 'must print "Solution: upgrade to ..."' do
expect(output).to include("Solution: upgrade to #{CGI.escapeHTML(advisory.patched_versions.map { |v| "'#{v}'" }.join(', '))}")
it 'must print "Solution: update to ..."' do
expect(output).to include("Solution: update to #{CGI.escapeHTML(advisory.patched_versions.map { |v| "'#{v}'" }.join(', '))}")
end
end

Expand Down
4 changes: 2 additions & 2 deletions spec/cli/formats/text_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@
end

context "when Advisory#patched_versions is not empty" do
it 'must print "Solution: upgrade to ..."' do
expect(output_lines).to include("Solution: upgrade to #{advisory.patched_versions.map { |v| "'#{v}'" }.join(', ')}")
it 'must print "Solution: update to ..."' do
expect(output_lines).to include("Solution: update to #{advisory.patched_versions.map { |v| "'#{v}'" }.join(', ')}")
end
end

Expand Down

0 comments on commit 3a5b620

Please sign in to comment.