Cookie data in IE may be vulnerable to snooping

Thousands of e-commerce sites use cookies to authenticate users or store private information. However, those cookies could be exposed by IE and intercepted by a third-party Web site, according to an Internet privacy watchdog group.

Seattle-based Peacefire.org has demonstrated that by using a specially constructed URL, a Web site can read IE cookies set from any domain. For example, to read an Amazon.com cookie, a site might direct the user's browser to www.peacefire.org%2fsecurity%2fiecookies%2fshowcookie.html%3F.amazon.com. Peacefire points out that if the "%2f"'s ares replaced with "/" characters, and the "%3F" with "?", this URL is actuallywww.peacefire.org/security/iecookies/showcookie.html?.amazon.com.

This hack confuses IE into thinking the page is located in the Amazon.com domain and allows the page to read the user's Amazon.com cookie. Normally, only the site that issued a cookie has permission to read data within that cookie.

According to Peacefire, all known versions of Internet Explorer for Windows 95, 98 and NT are affected. The organisation reports that IE for the Macintosh and Unix do not appear to be affected, and no version of Netscape Navigator or any other browser is vulnerable.

Peacefire says the safest workaround for Windows IE users is to disable JavaScript. When the browser loads a URL like www.peacefire.org%2fsecurity%2fiecookies%2fshowcookie.html%3F.amazon.com, the Amazon.com cookie is only available to JavaScript code on the page; it is not submitted to the server in a Hypertext Transfer Protocol (HTTP) header.

A spokesman for Microsoft said on Friday that the company is working on a patch for the IE cookie issue to be released shortly. A security bulletin will be published at www.microsoft.com/technet/security/default.asp to discuss the issue and advise customers how to obtain and apply the patch. Microsoft also plans to send the bulletin via its Product Security Notification Service to more than 100,000 subscribers.

Microsoft acknowledges that the vulnerability could allow a malicious Web site operator to read, change or delete cookies that belong to another Web site, the spokesman said. However, according to the company, the vulnerability could not be used by a malicious Web site operator to "inventory" what cookies a person had. Instead, the hacker would need to randomly try to recover cookies from various sites.

"Normal security practices recommend that Web sites should never include sensitive data in cookies," the spokesman said, adding that Microsoft Web sites never include sensitive data in cookies. "If these practices are followed, there would be no sensitive data to compromise."

However, Peacefire's Jamie McCarthy said that a number of popular sites deploy cookies that collect sensitive information. He pointed out that intercepting a cookie set by HotMail, Yahoo Mail, or any other free Web-based e-mail sites that use cookies for authentication, could allow the operator of a hostile Web site to break into a visitor's HotMail account and read the contents of the user's inbox. While HotMail cookies do not contain user passwords, they do allow a third party to access a user's HotMail account for as long as that user stays logged in, since each separate login generates a new cookie.

McCarthy also points out that the ability to harvest cookie information could be tempting for unscrupulous marketers. Intercepting a user's Amazon.com cookie could allow a hacker to visit Amazon.com impersonating that user, and access their real name, e-mail address and the user's list of "recommended titles," which could indicate past purchases of books and CDs. Credit-card numbers or actual lists of previous Amazon.com orders can't be accessed because viewing this information requires a password not contained in the cookie, says McCarthy.

Such a privacy hole can also be used to cull password information. For instance, McCarthy notes that some publications store passwords in cookies. While a password is only needed to browse articles on NYTimes.com and not make purchases, exposing this password is still dangerous since users might have the same password set up for several different sites.

Join the newsletter!

Error: Please check your email address.
Rocket to Success - Your 10 Tips for Smarter ERP System Selection
Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Ann Harrison

PC World
Show Comments

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

Ben Ramsden

Sharp PN-40TC1 Huddle Board

Brainstorming, innovation, problem solving, and negotiation have all become much more productive and valuable if people can easily collaborate in real time with minimal friction.

Sarah Ieroianni

Brother QL-820NWB Professional Label Printer

The print quality also does not disappoint, it’s clear, bold, doesn’t smudge and the text is perfectly sized.

Ratchada Dunn

Sharp PN-40TC1 Huddle Board

The Huddle Board’s built in program; Sharp Touch Viewing software allows us to easily manipulate and edit our documents (jpegs and PDFs) all at the same time on the dashboard.

George Khoury

Sharp PN-40TC1 Huddle Board

The biggest perks for me would be that it comes with easy to use and comprehensive programs that make the collaboration process a whole lot more intuitive and organic

David Coyle

Brother PocketJet PJ-773 A4 Portable Thermal Printer

I rate the printer as a 5 out of 5 stars as it has been able to fit seamlessly into my busy and mobile lifestyle.

Kurt Hegetschweiler

Brother PocketJet PJ-773 A4 Portable Thermal Printer

It’s perfect for mobile workers. Just take it out — it’s small enough to sit anywhere — turn it on, load a sheet of paper, and start printing.

Featured Content

Product Launch Showcase

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?