Flaws leave sites exposed

Many Web sites remain vulnerable to cross-site scripting attacks

Roger Howorth, IT Week

Despite a string of warnings, high-profile Web sites remain vulnerable to damaging attacks by hackers who create pages designed to look as if they have been published by trusted sources.

The flaws, classed as code insertion or cross-site scripting vulnerabilities, have already been used to steal cookies and credit card numbers. In one case, a hacker published a bogus press release describing financial difficulties at computer storage firm Emulex. The release was reported by news agencies including Bloomberg, causing a sharp fall in Emulex's share price.

Advertisement

Despite a warning six months ago, IT Week has discovered that many leading sites, including that of the Washington Post, remain vulnerable. Last week we were able to create a URL beginning with www.washingtonpost.com that linked to an arbitrary story on another site, the result appearing to be a legitimate part of the newspaper's Web site. The newspaper failed to return calls requesting comment.

This type of flaw has been exploited by hackers who use email messages or Internet chatrooms to distribute URLs pointing to pages displayed via vulnerable Web sites.

The URL begins with the site's correct address, but also includes scripting code, such as JavaScript. The resulting page combines data from both the vulnerable site and from a site of the hacker's choosing.

Vulnerabilities are caused by poor Web site design, allowing hackers to insert scripting commands into Web pages, and by lax security settings in browsers. Although the Cert security Web site documents the flaw and explains how to tackle it, most Web sites are still not secure. "I can't think of a single Web site that we have checked in the past year that was not vulnerable," said Gunter Ollmann of security firm Internet Security Systems.

Fixing the flaw can be a complex task, as the bug may exist thousands of times within a site. One Webmaster said the best solution is to redesign the way that scripts are processed and to use a single servlet to check for malicious scripts on all pages. But the work may take many months, and Ollmann warned that even this painstaking approach was not guaranteed to guard against scripts in unusual file formats, such as Flash.

Many site designers are unfamiliar with URLs used in this way, but when IT Week supplied the relevant URL to the Webmaster of one vulnerable site, he produced a JavaScript fix in less than a day.

Legal issues are also raised. Hackers do not actually gain access to target Web sites, so charges under the Computer Misuse Act are unlikely to succeed. Moreover, the malicious script is delivered by the target sites, so victims could be liable. Firms may also be sued for libellous material spread in this way, and may face penalties under the Data Protection Act for mishandling customer data.

Have your say: contact IT Week

  • Have your say
  • Send to a friend
  • Print
  • Digg
  • Reddit
  • Share

Tags:

Do you agree?

Further reading

Bug Watch: New threat from an old flaw

Cross-site scripting still being ignored, warns expert

Top sites vulnerable to hackers

Despite warnings, Cross Site Scripting still a threat

Related whitepapers

Related jobs

Most watched

Xperia X1

Video Review: Sony Ericsson Xperia X1

First Looks Editor Ian Williams gets hands on with the Sony Ericsson Xperia X1

HTC Hero

Video: HTC Hero launch

Handset maker unveils its latest Android-based smartphone

IT white papers

Search white papers

Top categories

Poll

Poll: Summer smartphones

Poll: Summer smartphones

Which smartphone will you be taking to the beach this summer?

View poll results

Advertisement

Advertisement

Newsletter signup

Sign up for our range of FREE newsletters:

Existing User

Newsletter user login:

Enter email address to edit your newsletter preferences

Job of the week

Search thousands of IT jobs :

Search thousands of IT jobs:

Advanced search

Hiring now on ComputingCareers:

Related IT jobs

Search thousands of IT jobs :

Search thousands of IT jobs:

Advanced search

Spotlight

firefox logo

In Pictures: Firefox 3.5

Screenshots from Mozilla's latest Firefox web browser

BT

BT scraps Phorm rollout

Telco claims to be too tight on resources to support...

Nokia

Nokia denies Android smartphone rumours

Mobile phone giant insists it will stick with Symbian

Second Life

Second Life seeks to mix the real and virtual worlds

Linden Lab unveils plans to integrate with social networks and...

Primary Navigation