Browsers face triple security threat
Three cookie-related bugs could be used to carry out attacks
TechWorld.com - Polish security researcher Michael Zalewski has highlighted three bugs in the handling of cookies that he says could be used to carry out attacks on commercial Web sites.
The bugs, for which Zalewski has coined the term "cross site cooking," are fundamental to the design and implementation of cookies. One of the three was first disclosed eight years ago, but still hasn't been fixed in the major browsers.
"These shortcomings make it possible (and alarmingly easy) for malicious sites to plant spoofed cookies that will be relayed by unsuspecting visitors to legitimate, third-party servers," he said in a post to the BugTraq security mailing list.
He said "cooking" attacks could be used against commercial sites to overwrite stored preferences, session identifiers, authentication data and shopping cart contents, possibly allowing fraudulent activity. On some sites, attackers may be able to acquire false credentials, Zalewski said. "Numerous Web scripts are an easy target of specific variants of the attacks described below," he said.
Cookies are used to provide more interactivity to users, allowing the site to remember preferences, shopping cart contents and other information.
The first problem involves the way browsers handle the domain specified in a cookie. Browsers should theoretically reject cookies where the domain is specified too broadly, but the mechanism doesn't work in Mozilla-based browsers, though Internet Explorer doesn't seem to be affected, Zalewski said.
The bug leaves some sites with international domain names open to certain types of attacks, Zalewski said. "One can set a cookie for *.com.pl or *.com.fr, and override or corrupt credentials or other parameters on hundreds of thousands e-commerce Web sites in that country," he said. "It will be also possible to plant attacker's session ID on visitor's computer, and effectively, steal his credentials when he decides to sign in on the target site."
The only solution to this problem would be to make alterations in the HTTP cookie format, Zalewski said. As a work-around, browsers could implement a list of potentially affected top-level domains.
A variant on this bug is that browsers -- including Firefox and Internet Explorer -- don't check to see if anything is between the periods in a domain name specified by a cookie. "One can set a cookie for ".com," then bounce the visitor to www.victim.com," Zalewski said.
He said this second issue was first highlighted eight years ago by researcher Benjamin Franz. "Vendors were notified in 1998, and certainly are not in a hurry to fix this," he said.
However, the solution to this problem lies with browservendors, Zalewski argued -- they should strip the "idle" periods out of cookie domain data.
Finally, Zalewski outlined a trick that he said could be easily used to force random visitors to a site to accept and relay malicious cookies to third-party sites. "Using this trick, a brand new identity may be temporarily bestowed upon the user, and used to perform certain undesirable or malicious tasks on the target site," he said.
Zalewski argued sites can lower the risk of this third type of attack by taking more care in the way they handle requests, specifically, requiring and carefully validating HTTP/1.1 "Host" headers. "This ensures that the browser's idea of who he's talking to matches the site's canonical name," he said.



- Excel 2010 Cheat Sheet
- Register for this Computerworld Insider Cheat Sheet and gain access to hundreds of premium content articles, guides, product reviews and more.
- Reducing the Cost and Complexity of Web Vulnerability Management
- Hackers and cybercriminals are constantly refining their attacks and targets; which means you need agile tools to stay ahead of them.
Download this... - Overcome Top 7 Admin Challenges of Active Directory
- As Active Directory's role in the enterprise has drastically increased, so has the need to secure the data. Gain insight on creating repeatable,...
- Insiders Can Ruin Your Company. Take Action.
- Did you know that 80 percent of threats to an organization come from the inside? The threat from insiders is often overlooked in...
- Top Solutions and Tools to Prevent Devastating Malware
- Custom malware frequently goes undetected. According to Forrester Research, the best way to reduce risk of breach is to deploy file integrity monitoring...
- Streamline Compliance and Increase ROI
- Streamline, simplify, and automate compliance related activities; especially those that impact multiple business units. This white paper from NetIQ, outlines solutions that will... All Malware and Vulnerabilities White Papers
- Optimizing Networks for the Cloud
- Join guest speaker, Rohit Mehra, IDC Director of Enterprise Communications Infrastructure, to explore current trends, discuss best practices for optimizing Data Center and...
- Apps QuickStart Series Part 2: Designing and Deploying SQL Server on VMware vSphere
- Download this webcast to learn about the design considerations for virtualizing SQL workloads, performance and scalability information and high-availability options, as well as...
- Apps QuickStart Series Part 1: Designing and Deploying Exchange 2010 on VMware vSphere
- Download this webcast to learn the virtual hardware design considerations for Exchange 2010, deployment using the building block approach, options for high-availability and...
- Customer Spotlight: How IPC The Hospitalist Company Implemented Oracle on VMware
- Have you been looking to hear about customer's experiences with the new VMware vCenter Site Recovery Manager product? View this webcast to learn...
- Virtualize Business-Critical Applications with Confidence
- Virtualizing business-critical applications has become a key focus for organizations as they move along their virtualization journey. With the launch of VMware vSphere®... All Malware and Vulnerabilities Webcasts