We've made some changes
to The Sunday Times
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.
How the new breed of location based mobile services can find your nearest cashpoint, restaurant or wi-fi hotspot
Enjoy screenings of all the classic films you love, plus take advantage of two-for-one tickets
We explore leisure activities that are safe and suitable for all of the family
Times Online's new TV show helps you make the right decisions for your pet
Are you California dreaming? Explore the wonders of the Golden State. Also enter our fantastic competition
See the best entries in this year's competition
Your brain is capable of more than you might think...
An interactive preview of the brand new For Your Eyes Only exhibition
The latest travel news plus the best hotels and gadgets for business travellers

Love Sudoku? Play our brand new interactive game: with added functionality and daily prizes

Are you irritable when you return from work? Drained of emotion? You could be suffering from boreout
Prepare for some shock and awe, petrol lovers. Despite the greens trying to wipe it out, the car is about to offer us the most exciting year ever
We've trawled the brochures and websites to find this summer’s best holidays for every taste and budget

Overseas contacts and local business information

Find a course, arrange a game and save money
2006
£189,500
NW England
2008/08
£169,950
NW England
2007/57
£35,000
South East England
Great car insurance deals online
Circa £82,000 per annum
Birmingham Women's Hospital
Birmingham
To £28k
Barclaycard
Northampton/Liverpool/Teeside
£
Up to £66,000 per annum
Hertfordshire County Council
South East
To £38k
Barclaycard
Northampton/Liverpool
2 Bathrooms, Balcony and Garden
Beautiful Gardens w/ stunning Thames Views
Dining, Shopping & Riverside Pk
Mortgages, bank acc & money transfers to help you buy abroad
Explore mystical Jordan
From £1030 for 7nts 4*
to USA's Most Cosmopolitan City; San Francisco!
£POA
Book Now for Winter 08/09 and Get 10% off!
Great travel insurance deals online
Contact our advertising team for advertising and sponsorship in Times Online, The Times and The Sunday Times. Search globrix.com to buy or rent UK property.
© Copyright 2008 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.