The Register® — Biting the hand that feeds IT

Feeds

Mozilla unveils cure for Web 2.0 world run amok

Putting XSS worms on notice

Agentless Backup is Not a Myth

The Mozilla Foundation has unveiled an early version of its Firefox browser that it says could virtually eliminate one of the most common attack forms now menacing the web.

It implements an inchoate technology the foundation calls CSP, short for the Content Security Policy specification. It allows web developers to embed a series of HTML headers into their sites that by default block some of the most abused features from being offered. Newer versions of Firefox, and other browsers if they adopt the standard, would then enforce those policies across the site's entire domain.

The primary aim of CSP is to immunize websites from attacks based on XSS, or cross-site scripting. The exploits frequently target javascript, Adobe Flash and other user-supplied content that allows attackers to inject malicious content and code into trusted websites. Administrators then have the option of whitelisting only the types of content they need to make their sites work as designed.

"A lot of the big sites who are dealing with user content and who are seeing some of these problems with cross-site scripting, we've heard excitement from them," said Johnathan Nightingale, whose official title at Mozilla is human shield. "It's hard to filter out all the potentially bad things that a malicious user can include."

The CSP preview builds are designed to give web developers a sneak peek at the specification and chime in with suggestions for making it better. Mozilla hopes it will become an open standard and is already shepherding it through the World Wide Web Consortium.

Over the past few years, XSS attacks have emerged as one of the most common ways to exploit web surfers and Web 2.0 sites alike. A recent rash of Twitter worms relied on XSS vulnerabilities in the microblogging site. Such self-replicating attacks date back to at least 2005, when the so-called Samy Worm knocked MySpace out of commission by adding more than 1 million users to the creator's friends list.

CSP has the ability to do more than stamp out XSS. By erecting a wall in front of a company's intranet and other protected resources, CSP could insulate organizations from so-called DNS rebinding attacks. Those techniques use HTML sleight of hand to trick web browsers behind an organization's firewall into attacking routers and other vital targets.

Of course, all of this is still no more than a gleam in the eyes of Mozilla developers. For it to catch on, large websites will have to invest heavily in it, and given Mozilla's still-modest market share, that will almost certainly require other browser suppliers (read: Microsoft) to get on board.

That's an awful lot of ifs. Still, CSP is worth watching - and if you're a web developer, even playing around with. If it works as intended, it could prove to be one of the more promising solutions for a Web 2.0 world that's built first and is only later, if ever, patched. ®

Steps to Take Before Choosing a Business Continuity Partner

Latest Comments

You are doing it WRONG

Protecting against these types of attacks on the client side is all well and good, but you are taking the wrong approach.

If the developer is going to add "protect me" into the page headers, then why are they not using proper input filtering? Put the effort into fixing the problem instead. Not relying on the user having a hand-holding browser. Any user with a browser that does not support this feature is still going to be susceptible.

Nice try, but your doing it wrong.

0
0

IE blog already comes out in favour

A post on Microsoft's official IE blog back in June discusses Mozilla's CSP in rather positive terms:

http://blogs.msdn.com/ie/archive/2009/06/25/declaring-security.aspx

0
0

@Erp Erpington

Well, assuming the thing does indeed work well (to be seen?), I can see a big advantage to it in situations such as:

- bank site developers are lazy and/or uninformed and don't use this technology;

- bank site users become victims of XSS;

- bank is then easily shown to be negligent in their security practices, and will be held responsible for losses.

If this indeed occurs as I naively see, then I guess banks (and other sites with sensitive content) would definitely have quite an amount of incentive to keep their devs' practices good at work under penalty of sacking and all that.

Or not.

0
0

More from The Register

 breaking news
Number of cops abusing Police National Computer access on the rise
Only a telegram from the Queen can get you off it
 breaking news
NSA PRISM snoop-gate: Won't someone think of the children, wails Apple
10,000 things probed, mostly about missing kids, Alzheimer patients, we're told
Flash flaw potentially makes every webcam or laptop a PEEPHOLE
But it's a Google problem - Chrome only, insists Adobe
Internet fraud still stings suckers
Australians twice as gullible as Americans
 breaking news
NSA PRISM-gate: Relax, GCHQ spooks 'keep us safe', says Cameron
Whatever they are up to, it's all above board, we're told
 breaking news
Yahoo! joins! rivals! in! PRISM! data! request! admission!
Keep calm and carry on using American tech firms, folks
PRISM snitch claims NSA hacked Chinese targets since 2009
Snowden suddenly looks safer in Hong Kong after revelations
 breaking news
US chief spook: Look, we only want to spy on 6.66 BEELLLION of you
Americans assured they are not in the NSA's sights
Speech-to-text drives motorists to distraction
Will talking to you mean I crash into that car up ahead, Siri?
DHS warns of vulns in hospital medical equipment
Has your doctor's anasthesia machine been hacked?