View Issue Details

IDProjectCategoryView StatusLast Update
0007644Kali LinuxGeneral Bugpublic2022-04-01 14:04
Reportercohst Assigned Tosbrun  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2022.1 
Summary0007644: wpscan broken after upgrade from 26-03-2022
Description

After today's apt-get update && apt-get dist-upgrade wpscan is broken with the following error message (obviously a problem with dependencies):

┌──(cohst@kali-linux)-[~]
└─$ wpscan -h
/usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1401:in rescue in block in activate_dependencies': Could not find 'webrick' (>= 0) among 199 total gem(s) (Gem::MissingSpecError) Checked in 'GEM_PATH=/home/cohst/.local/share/gem/ruby/3.0.0:/var/lib/gems/3.0.0:/usr/local/lib/ruby/gems/3.0.0:/usr/lib/ruby/gems/3.0.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.0.0:/usr/share/rubygems-integration/3.0.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.0.0' at: /usr/share/rubygems-integration/all/specifications/xmlrpc-0.3.2.gemspec, executegem envfor more information from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1398:inblock in activate_dependencies'
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1387:in each' from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1387:inactivate_dependencies'
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1369:in activate' from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1405:inblock in activate_dependencies'
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1387:in each' from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1387:inactivate_dependencies'
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1369:in activate' from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1405:inblock in activate_dependencies'
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1387:in each' from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1387:inactivate_dependencies'
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1369:in activate' from /usr/lib/ruby/vendor_ruby/rubygems.rb:286:inblock in activate_bin_path'
from /usr/lib/ruby/vendor_ruby/rubygems.rb:285:in synchronize' from /usr/lib/ruby/vendor_ruby/rubygems.rb:285:inactivate_bin_path'
from /usr/bin/wpscan:25:in <main>' /usr/lib/ruby/vendor_ruby/rubygems/dependency.rb:311:into_specs': Could not find 'webrick' (>= 0) among 199 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/home/cohst/.local/share/gem/ruby/3.0.0:/var/lib/gems/3.0.0:/usr/local/lib/ruby/gems/3.0.0:/usr/lib/ruby/gems/3.0.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.0.0:/usr/share/rubygems-integration/3.0.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.0.0' , execute gem env for more information
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1399:in block in activate_dependencies' from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1387:ineach'
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1387:in activate_dependencies' from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1369:inactivate'
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1405:in block in activate_dependencies' from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1387:ineach'
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1387:in activate_dependencies' from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1369:inactivate'
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1405:in block in activate_dependencies' from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1387:ineach'
from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1387:in activate_dependencies' from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1369:inactivate'
from /usr/lib/ruby/vendor_ruby/rubygems.rb:286:in block in activate_bin_path' from /usr/lib/ruby/vendor_ruby/rubygems.rb:285:insynchronize'
from /usr/lib/ruby/vendor_ruby/rubygems.rb:285:in activate_bin_path' from /usr/bin/wpscan:25:in<main>'

┌──(cohst@kali-linux)-[~]
└─$

Steps To Reproduce

upgrade Kali by the normal apt update && apt dist-upgrade

Activities

sbrun

sbrun

2022-03-28 09:13

manager   ~0015960

Thanks for the report.

To fix this issue you can install ruby-webrick:
sudo apt install ruby-webrick

FTR: ruby-webrick was part of Ruby standard library before Ruby 3.x. It's now a separate gem. The package ruby-xmlrpc required the gem but it has not been updated to depends on it.
I will fix this dependency issue.

sbrun

sbrun

2022-03-28 12:10

manager   ~0015970

I have uploaded ruby-cms-scanner version 0.13.6-0kali6 to force the installation of ruby-webrick.

I have reported the issue to Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1008524

cohst

cohst

2022-03-29 11:33

reporter   ~0015971

Thanks, it works. Ticket can be closed from my side.

Issue History

Date Modified Username Field Change
2022-03-27 11:29 cohst New Issue
2022-03-28 09:09 sbrun Assigned To => sbrun
2022-03-28 09:09 sbrun Status new => assigned
2022-03-28 09:13 sbrun Note Added: 0015960
2022-03-28 12:10 sbrun Note Added: 0015970
2022-03-29 11:33 cohst Note Added: 0015971
2022-04-01 14:04 sbrun Status assigned => resolved
2022-04-01 14:04 sbrun Resolution open => fixed