Apple Safari before 3.2.2 processes a 3xx HTTP CONNECT response before a successful SSL handshake, which allows man-in-the-middle attackers to execute arbitrary web script, in an https site's context, by modifying this CONNECT response to specify a 302 redirect to an arbitrary https web site.
https://exchange.xforce.ibmcloud.com/vulnerabilities/51202
http://www.securityfocus.com/bid/35412
http://research.microsoft.com/pubs/79323/pbp-final-with-update.pdf
http://research.microsoft.com/apps/pubs/default.aspx?id=79323