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

Best Auto Clicker Software for Windows PC

We can play our favorite clicker games simultaneously while working on other tasks on our…

6 hours ago

How To Adjust Display Settings in Windows 11 for Better Appearance

Adjusting the display settings in Windows is an important step if you want to optimize…

17 hours ago

How to Show or Restore Desktop Missing Icons in Windows 11

Imagine launching simple applications from the Start menu or file explorer, when they could be…

17 hours ago

Dell Drivers: Download, Install, & Update for Windows with Easy Methods

Problems like laptop overheating, Blue Screen of Death (BSOD), Wi-Fi connectivity issues, start-up errors, screen…

18 hours ago

Best Text Editor Software for Windows

Are you into writing code, scripts, or configuration files where the last thing you want…

1 day ago

Best Email Security Software for Windows 11

In today’s digital world, email remains one of the primary communication tools for both personal…

2 days ago