beefproject/beef — Issue #42: Malformed HTTP request to the proxy renders it unusable
Author: passbe
Created: 2011-12-10 21:15:49+00:00
State: open

Sending a malformed HTTP request to the proxy renders it unusable.

[*] Steps to reproduce:

1. Hook a browser
2. Select it as a proxy
3. Send a malformed HTTP request to the proxy:

$ netcat 127.0.0.1 6789
GET /

[*] Output:

[11:24:06][*] Using Hooked Browser with ip [xx.xx.xx.xx] as Tunneling Proxy
[11:24:29][*] [PROXY] Thread started in order to process request #1 to [/] on domain [localhost:6789]
[11:24:29][!] undefined method `keys' for nil:NilClass
[11:24:39][!] undefined method `keys' for nil:NilClass
[11:24:52][!] undefined method `keys' for nil:NilClass
[11:24:52][*] [PROXY] Thread started in order to process request #2 to [/demos/basic.html] on domain [localhost:6789]
[11:25:04][!] undefined method `keys' for nil:NilClass
[11:25:09][!] undefined method `keys' for nil:NilClass
[11:25:19][!] undefined method `keys' for nil:NilClass

[*] Effect:

Once the malformed request has been received the proxy will still accept connections however won't return any results. The aforementioned error message repeats every ~10 seconds.
Google Code Issue: http://code.google.com/p/beef/issues/detail?id=429