Slashdot Mirror


New Firefox Standard Aims to Combat Cross-Site Scripting

Al writes "The Mozilla foundation is to adopt a new standard to help web sites prevent cross site scripting attacks (XSS). The standard, called Content Security Policy, will let a website specify what Internet domains are allowed to host the scripts that run on its pages. This breaks with Web browsers' tradition of treating all scripts the same way by requiring that websites put their scripts in separate files and explicitly state which domains are allowed to run the scripts. The Mozilla Foundation selected the implementation because it allows sites to choose whether to adopt the restrictions. 'The severity of the XSS problem in the wild and the cost of implementing CSP as a mitigation are open to interpretation by individual sites,' Brandon Sterne, security program manager for Mozilla, wrote on the Mozilla Security Blog. 'If the cost versus benefit doesn't make sense for some site, they're free to keep doing business as usual.'"

2 of 160 comments (clear)

  1. You're doing it wrong by XanC · · Score: 1, Flamebait

    If you're having to modify individual files to set HTTP headers, you're doing it wrong. Also, polluting sites' namespaces (even worse than they already are with robots.txt/favicon.ico) is a bad idea.

    But then, you already betrayed your cluelessness when you revealed that you put Flash on the Web.

  2. Re:Old Standard to Prevent All Attacks by buchner.johannes · · Score: 0, Flamebait

    Don't host a website or put data on the web?

    Don't use computers?

    --
    NB: The message above might reflect my opinion right now, but not necessarily tomorrow or next year.