Internet Explorer Flaw Allows For Cookie Theft

Microsoft’s Internet Explorer web browser contains an unpatched flaw that allows attackers to steal login credentials to various websites via cookies, a security researcher has warned.

Attackers can exploit the Internet Explorer flaw to steal cookies from user computers and use the saved information to access user data. The researcher, Rosario Valotta, demonstrated the exploit at the Hack in the Box security conference in Amsterdam on 20 May.

Cookies are text files that web sites constantly save onto computers with information about user activity, such as login credentials, the contents of a shopping cart, or what sites the user has recently visited.

Cookiejacking Attacks

The attacker has to guess the users’ username for accounts, but can find passwords by using “an advanced clickjacking technique.” Clickjacking occurs when users are tricked into clicking on a button or link that looks innocent, but are crafted to steal information. The “cookiejacking” attack violates IE’s cross-zone interaction policy and exploits a zero-day vulnerability that is present in all versions of Internet Explorer and can be exploited on all Windows versions, according to a 23 May post on his Tentacolo Viola blog.

“Any cookie. Any website. Ouch,” Valotta wrote. The stolen cookies can be used to download malware onto user machines or login to user accounts. The proof of concept targeted Facebook, Twitter and Google Mail cookies, but Valotta said any website can be targeted.

Valotta created a game that opened up in a new Internet Explorer window to illustrate his “cookiejacking” technique. While users played the game by clicking and dragging objects, what was really happening was that the cookie file was being opened and the contents of the file was being selected and copied. This way, the attacker can intercept cookies for any sites the user had accessed during that web session. For the attack to work, the attacker would need to know which version of the Windows operating system their targets are using because cookies are stored in different locations.

He put the test case on Facebook and got 80 responses, Valotta said.

Internet Explorer uses “Security Zones” to group websites according the level of trust, and prevents content from different zones from interacting. Sites that users consider safe, which are assigned to a higher trust zone, shouldn’t be sharing information with less trusted sites. When a cookie file is loaded into the browser using an IFrame embedded on a malicious file, it violates the Cross Zone policy as “an Internet page is accessing a local file,” Valotta wrote.

Microsoft Aware

Just displaying the contents of the cookie file in the IFrame is not enough, since Internet Explorer won’t allow the site to access the data using JavaScript. This is why Valotta created the game to trick users into dragging and dropping game pieces, actually cookie content, into an “attacker controlled HTML element.”

“It is complicated for the attacker, but not for the victim,” Valotta told The Register.

The number of things the person needs to obtain before launching a successful attack makes it only a moderate risk for users. Considering that many malicious attacks involve tricking users into giving up user names and there are rogue portals that already check what operating system the victims are running before delivering a customised payload, neither of the “obstacles” will slow down any criminals interested in using this technique. Valotta also pointed out that Internet Explorer automatically returns user names as plaintext when getting images or other resources from the remote server. All an attacker needs is a script to “sniff” the username.

Microsoft is aware of the issue and will roll out a patch in an upcoming update, a Microsoft spokesperson told eWEEK.

Fahmida Y Rashid eWEEK USA 2014. Ziff Davis Enterprise Inc. All Rights Reserved.

Share
Published by
Fahmida Y Rashid eWEEK USA 2014. Ziff Davis Enterprise Inc. All Rights Reserved.

Recent Posts

Craig Wright Sentenced For Contempt Of Court

Suspended prison sentence for Craig Wright for “flagrant breach” of court order, after his false…

2 days ago

El Salvador To Sell Or Discontinue Bitcoin Wallet, After IMF Deal

Cash-strapped south American country agrees to sell or discontinue its national Bitcoin wallet after signing…

2 days ago

UK’s ICO Labels Google ‘Irresponsible’ For Tracking Change

Google's change will allow advertisers to track customers' digital “fingerprints”, but UK data protection watchdog…

2 days ago

EU Publishes iOS Interoperability Plans

European Commission publishes preliminary instructions to Apple on how to open up iOS to rivals,…

3 days ago

Momeni Convicted In Bob Lee Murder

San Francisco jury finds Nima Momeni guilty of second-degree murder of Cash App founder Bob…

3 days ago