Zapotek/arachni — Issue #93: arachni_web crash: UTF-8 error
Author: walterl
Created: 2011-10-25 08:35:55+00:00
State: open

I started a scan yesterday that seems to have crashed with the error below.

/home/foo/src/arachni/lib/ui/web/server.rb:1004:in `run!'
/home/foo/src/arachni/lib/ui/web/server.rb:1038:in `'
/home/foo/src/arachni/lib/ui/web/server.rb:57:in `'
/home/foo/src/arachni/lib/ui/web/server.rb:53:in `'
/home/foo/src/arachni/lib/ui/web/server.rb:25:in `'
/home/foo/src/arachni/lib/ui/web/server.rb:24:in `'
:29:in `require'
:29:in `require'
./bin/arachni_web:45:in `

'
!! Invalid request
!! Invalid request
ArgumentError - invalid byte sequence in UTF-8:
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.2.7/lib/sinatra/base.rb:748:in `match'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.2.7/lib/sinatra/base.rb:748:in `process_route'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.2.7/lib/sinatra/base.rb:719:in `block in route!'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.2.7/lib/sinatra/base.rb:718:in `each'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.2.7/lib/sinatra/base.rb:718:in `route!'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.2.7/lib/sinatra/base.rb:854:in `dispatch!'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.2.7/lib/sinatra/base.rb:656:in `block in call!'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.2.7/lib/sinatra/base.rb:820:in `block in invoke'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.2.7/lib/sinatra/base.rb:820:in `catch'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.2.7/lib/sinatra/base.rb:820:in `invoke'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.2.7/lib/sinatra/base.rb:656:in `call!'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.2.7/lib/sinatra/base.rb:641:in `call'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/rack_csrf-2.1.0/lib/rack/csrf.rb:37:in `call'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:195:in `context'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:190:in `call'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/rack-flash-0.1.2/lib/rack/flash.rb:147:in `call'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:195:in `context'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:190:in `call'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/head.rb:9:in `call'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.2.7/lib/sinatra/showexceptions.rb:21:in `call'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.2.7/lib/sinatra/base.rb:1292:in `block in call'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.2.7/lib/sinatra/base.rb:1323:in `synchronize'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.2.7/lib/sinatra/base.rb:1292:in `call'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/thin-1.2.11/lib/thin/connection.rb:84:in `block in pre_process'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/thin-1.2.11/lib/thin/connection.rb:82:in `catch'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/thin-1.2.11/lib/thin/connection.rb:82:in `pre_process'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/thin-1.2.11/lib/thin/connection.rb:57:in `process'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/thin-1.2.11/lib/thin/connection.rb:42:in `receive_data'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/eventmachine-1.0.0.beta.4/lib/eventmachine.rb:179:in `run_machine'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/eventmachine-1.0.0.beta.4/lib/eventmachine.rb:179:in `run'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/thin-1.2.11/lib/thin/backends/base.rb:61:in `start'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/thin-1.2.11/lib/thin/server.rb:159:in `start'
/home/foo/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/handler/thin.rb:13:in `run'
/home/foo/src/arachni/lib/ui/web/server.rb:1004:in `run!'
/home/foo/src/arachni/lib/ui/web/server.rb:1038:in `'
/home/foo/src/arachni/lib/ui/web/server.rb:57:in `'
/home/foo/src/arachni/lib/ui/web/server.rb:53:in `'
/home/foo/src/arachni/lib/ui/web/server.rb:25:in `'
/home/foo/src/arachni/lib/ui/web/server.rb:24:in `'
:29:in `require'
:29:in `require'
./bin/arachni_web:45:in `

'
Killed

This is, unfortunately, the only accessible logs from the screen session the arachni_web was started in. The arachni_rpcd instance I started up is still running. I was scanning the OWASP BWA when this error occurred.

This was from the experimental branch with HEAD at 7e46a8174c010e2b7019f88bae3166e332656f1f.