Affiliate Disclosure
If you buy through our links, we may get a commission. Read our ethics policy.

Safari vulnerability in iOS 5.1 allows URL spoofing

Last updated

A newly-discovered mobile Safari web browser vulnerability allows a malicious website to display a URL that is different than the website's actual address, and can trick users into handing over sensitive personal information.

The issue, first discovered by security firm Major Security, is an error in how Apple's mobile Safari app in iOS 5.1 handles URLs when using javascript's window.open() method that can be exploited by malicious sites to display custom URLs.

"This can be exploited to potentially trick users into supplying sensitive information to a malicious web site," Major Security explains, "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."

The exploit was tested on an iPhone 4, iPhone 4S, iPad 2 and third-generation iPad running iOS 5.1, and it seems that any iDevice running Apple's latest mobile OS is affected by the vulnerability. Users can test the vulnerability themselves by visiting this webiste from a mobile device. After a user clicks the "demo" button on the test page, Safari will open a new window which shows "http://www.apple.com" in the address bar, but that URL is in fact being displayed through an iframe being hosted by Major Security's servers.

By spoofing a URL and adding some convincing images to a malicious site, users can easily be tricked into thinking they are visiting a legitimate website such as Apple's online store.


"Apple" iPad webpage through Major Security servers (left) compared to official Apple site (right).

The vulnerability was originally found in iOS 5.0 and reproduced on iOS 5.1 earlier in March. Apple was made aware of the issue on March 1 and posted an advisory regarding the matter on March 20. A patch has yet to be pushed out, though the iPhone maker is expected to do so in the near future.

Watch the Latest from AppleInsider TV

14 Comments

fredaroony 15 Years · 619 comments

Now Apple will patent this and attempt to sue Samsung.

kpluck 17 Years · 498 comments

Their demo page doesn't work as stated on my copy of Safari (5.1.3), OS X 10.7.3.

-kpluck

mstone 19 Years · 11503 comments

Quote:
Originally Posted by fredaroony

Now Apple will patent this and attempt to sue Samsung.

I think you have that backwards. Samsung will sue Apple after they fix it because once fixed the behavior will replicate the browser already found on Samsung devices which has a patent for being unspoofable.

mstone 19 Years · 11503 comments

Quote:
Originally Posted by kpluck

Their demo page doesn't work as stated on my copy of Safari (5.1.3), OS X 10.7.3.

-kpluck

Mobile Safari not OS X

solipsismx 14 Years · 19562 comments

These types of exploits never seem to get used in phishing scams but it's bad form nonetheless. If this isn't resolved in 5.1.x I'll be surprised.edit: Pipped my mstone.