Close
  • Latest News
  • Artificial Intelligence
  • Video
  • Big Data and Analytics
  • Cloud
  • Networking
  • Cybersecurity
  • Applications
  • IT Management
  • Storage
  • Sponsored
  • Mobile
  • Small Business
  • Development
  • Database
  • Servers
  • Android
  • Apple
  • Innovation
  • Blogs
  • PC Hardware
  • Reviews
  • Search Engines
  • Virtualization
Read Down
Sign in
Close
Welcome!Log into your account
Forgot your password?
Read Down
Password recovery
Recover your password
Close
Search
Logo
Logo
  • Latest News
  • Artificial Intelligence
  • Video
  • Big Data and Analytics
  • Cloud
  • Networking
  • Cybersecurity
  • Applications
  • IT Management
  • Storage
  • Sponsored
  • Mobile
  • Small Business
  • Development
  • Database
  • Servers
  • Android
  • Apple
  • Innovation
  • Blogs
  • PC Hardware
  • Reviews
  • Search Engines
  • Virtualization
More
    Home Applications
    • Applications
    • Cybersecurity
    • Development

    Twitter Implements Mozilla’s Anti-XSS Tool for Firefox 4 Users

    Written by

    Fahmida Y. Rashid
    Published March 22, 2011
    Share
    Facebook
    Twitter
    Linkedin

      eWEEK content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.

      Twitter is deploying one of the security features Mozilla built into the new Firefox 4 Web browser in an ongoing quest to improve security for its users.

      Mozilla launched Firefox 4 on March 22 with a number of security features, including features to thwart cross-site scripting attacks. Twitter announced on the same day that it had rolled out Mozilla’s Content Security Policy standard on to the mobile version of its site to test “a potentially powerful anti-XSS tool in a controlled setting,” wrote Mark Percival, Twitter’s mobile engineer, on the Twitter engineering blog.

      CSP is intended to stop XSS attacks within the browser and prevent the execution of malicious code as pages are being loaded. In a typical XSS attack, attackers inject arbitrary JavaScript code into a page so that an end user accessing the page ends up executing the code. When a Website enables CSP and the Web browser understands CSP, then the browser knows to ignore inline JavaScript, Jonathan Nightingale, Mozilla’s director of Firefox development, told eWEEK.

      Twitter enabled CSP by including the policy in the returned site headers, “X-Content-Security-Policy,” according to Percival. CSP also allows site administrators to include a separate universal resource identifier where the browser could send JSON (JavaScript Object Notification) reports of any violations, potentially alerting them to XSS attempts on the site, Percival said.

      While activating CSP on Twitter was “easy,” there is some work involved to get it to work correctly, Percival said. In Twitter’s case, all inline JavaScript was removed from the mobile site, according to Percival. While inline JavaScript should generally not be included with HTML, it is “sometimes necessary” to speed up load times, he said.

      Twitter disabled all inline JavaScript from its mobile page and added external assets such as profile images and style sheets to a whitelist so that the browser could load them without triggering a CSP violation. “However, for many sites it is not going to be as simple as flipping a switch,” Percival said.

      Most sites will require some work, either on the site or to alter third-party libraries that use JavaScript, Percival said. During initial testing, Twitter found a “surprising” number of Internet service providers who were inserting JavaScript or altering image tags to point to their own caching servers, according to Percival. Twitter now mandates SSL for Firefox 4 users accessing the mobile page, so that the ISPs can no longer alter content, he said.

      There were also several “common” Firefox extensions that inserted JavaScript on page load, according to Percival.

      Twitter expects to implement CSP across the rest of the site, he said. This move comes less than a week after Twitter announced it will give users the option to use the HTTPS protocol to secure their activity on the Website.

      Mozilla packaged a number of new security features other than CSP in Firefox 4, including a “Do Not Track” feature that allows users to “opt out” out of behavioral tracking by advertisers, according to Nightingale. Firefox 4 also forces Websites to maintain HTTPS connections with users the entire time they are on the site and locally encrypt bookmark and history to keep the information private.

      A new “Instant Web Site ID” feature offers one-click access to a site’s identity information, including details like how many times a user has visited it, an improved Private Browsing mode and a “Forget This Site” feature that removes any trace of having visited the site.

      Fahmida Y. Rashid
      Fahmida Y. Rashid

      Get the Free Newsletter!

      Subscribe to Daily Tech Insider for top news, trends & analysis

      Get the Free Newsletter!

      Subscribe to Daily Tech Insider for top news, trends & analysis

      MOST POPULAR ARTICLES

      Artificial Intelligence

      9 Best AI 3D Generators You Need...

      Sam Rinko - June 25, 2024 0
      AI 3D Generators are powerful tools for many different industries. Discover the best AI 3D Generators, and learn which is best for your specific use case.
      Read more
      Cloud

      RingCentral Expands Its Collaboration Platform

      Zeus Kerravala - November 22, 2023 0
      RingCentral adds AI-enabled contact center and hybrid event products to its suite of collaboration services.
      Read more
      Artificial Intelligence

      8 Best AI Data Analytics Software &...

      Aminu Abdullahi - January 18, 2024 0
      Learn the top AI data analytics software to use. Compare AI data analytics solutions & features to make the best choice for your business.
      Read more
      Latest News

      Zeus Kerravala on Networking: Multicloud, 5G, and...

      James Maguire - December 16, 2022 0
      I spoke with Zeus Kerravala, industry analyst at ZK Research, about the rapid changes in enterprise networking, as tech advances and digital transformation prompt...
      Read more
      Video

      Datadog President Amit Agarwal on Trends in...

      James Maguire - November 11, 2022 0
      I spoke with Amit Agarwal, President of Datadog, about infrastructure observability, from current trends to key challenges to the future of this rapidly growing...
      Read more
      Logo

      eWeek has the latest technology news and analysis, buying guides, and product reviews for IT professionals and technology buyers. The site’s focus is on innovative solutions and covering in-depth technical content. eWeek stays on the cutting edge of technology news and IT trends through interviews and expert analysis. Gain insight from top innovators and thought leaders in the fields of IT, business, enterprise software, startups, and more.

      Facebook
      Linkedin
      RSS
      Twitter
      Youtube

      Advertisers

      Advertise with TechnologyAdvice on eWeek and our other IT-focused platforms.

      Advertise with Us

      Menu

      • About eWeek
      • Subscribe to our Newsletter
      • Latest News

      Our Brands

      • Privacy Policy
      • Terms
      • About
      • Contact
      • Advertise
      • Sitemap
      • California – Do Not Sell My Information

      Property of TechnologyAdvice.
      © 2024 TechnologyAdvice. All Rights Reserved

      Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.

      ×