Categories: Ad Guardian PlusNews

Mozilla to protect its users from code injection

Mozilla has blocked execution of all inline scripts and potentially dangerous eval-like functions for built-in “about: pages”, in an effort to protect its users from code injection. These are the gateway to sensitive preferences, settings, and statics of the browser. The decision was made in order to mitigate a large class of potential cross-site scripting issues in Firefox.

According to Christoph Kerschbaumer, Mozilla’s platform security and privacy enginner, changes will not affect the way websites work on the Firefox browser. Still, Mozilla promissed to “closely audit and evaluate” the usages of harmful functions in 3rd-party extensions and other built-in mechanisms.

Mozilla decided to rewrite its inline event handlers and move all inline JavaScript code for all of its 45 about: pages, to “packaged files”. Moreover, the company set a strong Content Security Policy (CSP) to be sure that the JavaScript code only executes when loaded from a packaged resource using the internal protocol.

Instead JavaScript code only executes when loaded from a packaged resource using the internal chrome: protocol. Not allowing any inline script in any of the about: pages limits the attack surface of arbitrary code execution and hence provides a strong first line of defense against code injection attacks,”, Kerschbaumer mentioned.

The attackers use the JavaScritpt function and similar methods to trick the target applications into converting text into an executable JavaScript. Thus, they achieve code injection, when the attackers can not inject script directly. This is the reason for which Mozilla removed and blocked eval-like functions as this might be another “dangerous tool”.

Laurentiu Titei

Recent Posts

How to Install VPN on Smart TV: Step by Step Guide

Almost every smart TV is packed up with several pre-installed apps, but there are also…

1 day ago

How to Configure a Virtual Directory on Windows IIS Server

Understanding a virtual directory and how to create it on a Windows IIS (Internet Information…

2 days ago

Best Wise Alternative Apps

Wise, a financial technology company, specializes in cross-border money transfers, currency conversion, and international account…

3 days ago

Best Payment Gateways for Safe Payments

With ever-growing digital payments, business owners often find themselves confused about which payment gateways to…

4 days ago

What is a Browser Fingerprinting: Complete Guide

To maintain the privacy of your device information and device is a big challenge in…

5 days ago

How to Open and Use Windows Action Center in 2026

Some situations need quick actions. For example, turning up the screen brightness when working on…

6 days ago