Skip to content

Commit

Permalink
Updates deps
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanlr committed Sep 22, 2021
1 parent e735a68 commit 2cc243a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/finders/interesting_findings/multisite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def aggressive(_opts = {})

return unless [200, 302].include?(res.code)
return if res.code == 302 && location&.include?('wp-login.php?action=register')
return unless res.code == 200 || res.code == 302 && location&.include?('wp-signup.php')
return unless res.code == 200 || (res.code == 302 && location&.include?('wp-signup.php'))

target.multisite = true

Expand Down
2 changes: 1 addition & 1 deletion app/models/timthumb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def version(opts = {})
def vulnerabilities
vulns = []

vulns << rce_webshot_vuln if version == false || version > '1.35' && version < '2.8.14' && webshot_enabled?
vulns << rce_webshot_vuln if version == false || (version > '1.35' && version < '2.8.14' && webshot_enabled?)
vulns << rce_132_vuln if version == false || version < '1.33'

vulns
Expand Down
4 changes: 3 additions & 1 deletion lib/wpscan/finders/dynamic_finder/finder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ def passive(opts = {})

homepage_result = find(target.homepage_res, opts)

return homepage_result unless homepage_result.nil? || homepage_result.is_a?(Array) && homepage_result&.empty?
unless homepage_result.nil? || (homepage_result.is_a?(Array) && homepage_result&.empty?)
return homepage_result
end

find(target.error_404_res, opts)
end
Expand Down
4 changes: 2 additions & 2 deletions wpscan.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ Gem::Specification.new do |s|
s.executables = ['wpscan']
s.require_paths = ['lib']

s.add_dependency 'cms_scanner', '~> 0.13.5'
s.add_dependency 'cms_scanner', '~> 0.13.6'

s.add_development_dependency 'bundler', '>= 1.6'
s.add_development_dependency 'memory_profiler', '~> 1.0.0'
s.add_development_dependency 'rake', '~> 13.0'
s.add_development_dependency 'rspec', '~> 3.10.0'
s.add_development_dependency 'rspec-its', '~> 1.3.0'
s.add_development_dependency 'rubocop', '~> 1.20.0'
s.add_development_dependency 'rubocop', '~> 1.21.0'
s.add_development_dependency 'rubocop-performance', '~> 1.11.0'
s.add_development_dependency 'simplecov', '~> 0.21.0'
s.add_development_dependency 'simplecov-lcov', '~> 0.8.0'
Expand Down

0 comments on commit 2cc243a

Please sign in to comment.