Attend a special evening hosted by Mike Atherton

The last couple of years have seen a massive increase in the power and capabilities of browsers – or, at least, in the level to which the web development community takes advantage of them. New web applications such as Google Maps and the Zimbra collaboration suite have blurred the boundaries between a web page and a desktop application.
These sites take advantage of the browser's capability to issue script commands to make new web requests and obtain additional data without reloading the page you are on. So Google Maps downloads new tiles as you scroll around the map, and Zimbra downloads new e-mail messages and sends the ones you write back to the server, all without leaving the page. These scripting capabilities make a browser-based application look, feel and react much more like an installed program, and provide a better user experience.
However, it's rather important for web developers to make sure that the only scripts which run on their pages are the ones they've written. If an attacker can find a way to inject their own scripts, they can use that power to make changes to the site which the developer or user may not want.
Programming mistakes which allow this to happen are called Cross-Site Scripting, or XSS flaws. They most often occur when a site reprints user input – say the search words for a search - without carefully filtering it to remove programming commands.
The browser's ability to do things in the background also means that a malicious site you visit (perhaps inadvertently) can, without your knowledge, start attempting to exploit XSS holes in other websites. If it finds a flawed site where you are already logged in, it can then start to manipulate the site and make changes to it in your name. This is called "session riding" - the attacker is using the log-in credentials you previously established with the site to pretend to be you.
If that flawed site happens to be your bank, then you are in trouble. The attacker could take any action you could, including transferring money into an account he controls.
To their credit, most banks are aware of this issue and have checked their sites carefully for this sort of programming mistake. But script injection holes have been found recently in the websites of large blogging communities like Livejournal and Xanga. In both cases, it was used to write a fairly simple replicating "worm" which posted the equivalent of "I'm the king of the castle, you're a dirty rascal", along with code to continue the propagation, to the weblogs of anyone who visited an infected page. But it could have been a lot worse.
There already exist complete XSS remote control toolkits. As soon as the attacker has the ability to run scripts in your browser – either because you've visited a page he controls, or because he's exploited another XSS hole to inject his script into an innocent site you visit often – he can set up a system where your browser is contacting sites all over the web to see if you are logged into them and, if you are, uses your credentials to make any sort of change the attacker desires.
There's not much individual users can do to protect themselves, except for disabling scripting entirely, which would break a large number of sites and deprive them of the great benefits of the new generation of web applications. Neither the web developer community nor the cracker community have yet woken up to the dangers (or opportunities) of XSS. Whether this problem turns into a catastrophe depends on who does so first.
Gervase Markham works for the Mozilla Foundation, a non-profit organisation dedicated to promoting choice and innovation on the internet. His blog is Hacking For Christ.
Articles from our sister site WSJ.com:
You may be asked to subscribe to read certain articles
Industry sectors news at a glance. Interactive heatmap, video and podcast
Everything the Business Traveller needs to know to make a better trip
Get ready for the winter sports season, with our resort guides and snow reports
We are backing British business, what is the confidence of the nation and what businesses are succeeding?
Growing demand for energy, oil that is harder to reach and the rise of carbon dioxide emissions. We examine the energy challenge
With rail travel in Europe on the rise, we review the benefits of travelling by train
In this special section we explore new food trends to help improve your dinner party and impress guests
Enjoy further reading from Travel to Fashion, Business to Sport, discover more
1998
£47,955
12 months for the price of 11 and a 5% discount.
Offer ends 31/11/09
Check your free Experian credit report before applying
Car Insurance
£353 per day
Phonepay Plus
London
PwC’s Consulting practice helps businesses of all shapes and sizes work smarter and grow faster
PwC
£37,000
Department for Culture, Media and Sport
London
Currently £36,285
Department for Culture, Media and Sport
London
Moments from Battersea Park.
For sale with Winkworth
Find out about shared ownership.
See your free Experian credit report beforehand
Accommodation, flights, tickets to the race and a KL city tour for only £999pp
PremierHolidays.co.uk
For your ultimate tailor-made ski holiday, click here
Get covered on your travels with a superb range of policies at great prices. Visit InsureandGo.com
World Class Golf, Spa and preferential Beach Club. Private estate overlooking West Coast
Villas from £275 per night inclusive of Golf
Contact our advertising team for advertising and sponsorship in Times Online, The Times and The Sunday Times, or place your advertisement.
Times Online Services: Dating | Jobs | Property Search | Used Cars | Holidays | Births, Marriages, Deaths | Subscriptions | E-paper
News International associated websites: Globrix Property Search | Milkround
Copyright 2009 Times Newspapers Ltd.
This service is provided on Times Newspapers' standard Terms and Conditions. Please read our Privacy Policy.To inquire about a licence to reproduce material from Times Online, The Times or The Sunday Times, click here.This website is published by a member of the News International Group. News International Limited, 1 Virginia St, London E98 1XY, is the holding company for the News International group and is registered in England No 81701. VAT number GB 243 8054 69.