passbe/beef-migration-test-3 — Issue #92: Malformed HTTP request to the proxy renders it unusable
Author: passbe
Created: 2011-12-08 23:08:27+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 (note lack of HTTP version):

$ netcat 127.0.0.1 6789
GET /

4. Another example malformed request (note lack of whitespace):

$ netcat 127.0.0.1 6789
POST / HTTP/1.1
Host: example.com
Content-Length:15

data=example

throws:
[21:44:03][!] API Fire Error: can't convert nil into Integer in {:owner=>BeEF::Extension::Requester::RegisterPreHookCallback, :id=>10}.pre_hook_send()
Google Code Issue: http://code.google.com/p/beef/issues/detail?id=588