Vulnerabilities / Threats
5/26/2011
11:45 AM
Connect Directly
RSS
E-Mail
50%
50%

Cookiejacking Attack Steals Website Access Credentials

All Internet Explorer users on all versions of Windows are at risk from zero-day attack that can steal any website cookie, allowing an attacker to impersonate their victim.

10 Massive Security Breaches
(click image for larger view)
Slideshow: 10 Massive Security Breaches
A security researcher has devised a new attack that's able to steal session cookies from Internet Explorer users. Cookies in hand, the attacker could then access their victim's Facebook, Twitter, Gmail, or other online accounts.

The vulnerability was discovered by Rosario Valotta, an independent Internet security researcher based in Italy. He publicly detailed the attack last week at the Hack In A Box conference in Amsterdam, and earlier this month at Swiss Cyber Storm. As part of those presentations, he also demonstrated a proof-of-concept Facebook application that uses the attack to steal a person's Facebook session cookie by having them complete a jigsaw puzzle.

All versions of Internet Explorer on all versions of Windows are affected by the zero-day vulnerability, and are thus susceptible to cookiejacking. As the name implies, the attack is similar to clickjacking attacks, which trick users into clicking on innocuous-looking graphics or videos, to trigger arbitrary code execution. Cookiejacking takes that type of attack one step further, adding the zero-day vulnerability and some trickery to steal any cookie from a user's PC.

In an email interview, Valotta said he discovered the vulnerability while exploring HTML5 features, including drag and drop. "I figured out that on any browser you are not allowed to access local file system files from a Web page and this is also (quite) true for IE." Except, it turned out, for cookie files. "So I started wondering about building an exploit to 'steal' those cookies ... the only way is to let users give them to you: So I used drag and drop," he said.

As that suggests, cookiejacking is not completely automated; a user must be fooled into interacting with the user interface. But that's exactly how clickjacking attacks can work, and they're far from rare, especially on Facebook.

The underlying, zero-day vulnerability exploited by cookiejacking involves IE security zones, which are meant to restrict how or if different zones--websites, for example, versus files stored on a PC--can interact, all of which is defined as the cross-zone interaction policy. By default, untrusted websites can't access local files on a PC. But Valotta found that by using an iFrame (inline frame), a website could load a cookie file stored locally on a user's PC. "This breaks the cross-zone interaction policy as an Internet page is accessing a local file," he said.

To be successful, however, the attack must incorporate two details. First, it needs to know the victim's Windows username, to find the correct path to where cookies are stored. Accordingly, Valotta incorporated a routine that forces a person's browser to retrieve a file, which reveals their Windows username. Second, an attacker needs to know which Windows operating system their victim is using, as each one stores cookies in different locations. Browsers, however, typically reveal this information via their navigator.userAgent object.

Microsoft, in an emailed statement, acknowledged the vulnerability, but said it doesn't pose a high degree of risk. "Given the level of required user interaction, this issue is not one we consider high risk in the way a remote code execution would possibly be to users," said Microsoft. "In order to possibly be impacted a user must visit a malicious website, be convinced to click and drag items around the page, and the attacker would need to target a cookie from the website that the user was already logged into."

Microsoft also didn't confirm or deny Valotta's assertion that this vulnerability will be addressed via forthcoming patches scheduled to be released in June and August. But even after patches appear, many PCs will continue to be vulnerable, especially since IE6 still accounts for 11.6% of all browsers in use as of April 2011, according to Net Applications.

Furthermore, something more than a simple patch may be required. "Microsoft tried to put on a 'quick' patch on IE9, but they actually failed in solving the problem, as some weeks ago I found a new attack vector that is able to bypass the protection, said Valotta. "That's why I think that the security zones policy in IE needs a major revision."

In this new Tech Center report, we profile five database breaches--and extract the lessons to be learned from each. Plus: A rundown of six technologies to reduce your risk. Download it here (registration required).

Comment  | 
Print  | 
More Insights
Register for Dark Reading Newsletters
Partner Perspectives
What's This?
In a digital world inundated with advanced security threats, Intel Security seeks to transform how we live and work to keep our information secure. Through hardware and software development, Intel Security delivers robust solutions that integrate security into every layer of every digital device. In combining the security expertise of McAfee with the innovation, performance, and trust of Intel, this vision becomes a reality.

As we rely on technology to enhance our everyday and business life, we must too consider the security of the intellectual property and confidential data that is housed on these devices. As we increase the number of devices we use, we increase the number of gateways and opportunity for security threats. Intel Security takes the “security connected” approach to ensure that every device is secure, and that all security solutions are seamlessly integrated.
Featured Writers
White Papers
Cartoon
Current Issue
Dark Reading's October Tech Digest
Fast data analysis can stymie attacks and strengthen enterprise security. Does your team have the data smarts?
Flash Poll
Video
Slideshows
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2014-7298
Published: 2014-10-24
adsetgroups in Centrify Server Suite 2008 through 2014.1 and Centrify DirectControl 3.x through 4.2.0 on Linux and UNIX allows local users to read arbitrary files with root privileges by leveraging improperly protected setuid functionality.

CVE-2014-8346
Published: 2014-10-24
The Remote Controls feature on Samsung mobile devices does not validate the source of lock-code data received over a network, which makes it easier for remote attackers to cause a denial of service (screen locking with an arbitrary code) by triggering unexpected Find My Mobile network traffic.

CVE-2014-0619
Published: 2014-10-23
Untrusted search path vulnerability in Hamster Free ZIP Archiver 2.0.1.7 allows local users to execute arbitrary code and conduct DLL hijacking attacks via a Trojan horse dwmapi.dll that is located in the current working directory.

CVE-2014-2230
Published: 2014-10-23
Open redirect vulnerability in the header function in adclick.php in OpenX 2.8.10 and earlier allows remote attackers to redirect users to arbitrary web sites and conduct phishing attacks via a URL in the (1) dest parameter to adclick.php or (2) _maxdest parameter to ck.php.

CVE-2014-7281
Published: 2014-10-23
Cross-site request forgery (CSRF) vulnerability in Shenzhen Tenda Technology Tenda A32 Router with firmware 5.07.53_CN allows remote attackers to hijack the authentication of administrators for requests that reboot the device via a request to goform/SysToolReboot.

Best of the Web
Dark Reading Radio
Archived Dark Reading Radio
Follow Dark Reading editors into the field as they talk with noted experts from the security world.