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 Download and Update Display Driver in Windows 11,10

Imagine that you power on your computer, excited to play a game, watch a movie,…

1 hour ago

How to Find and Check Windows Crash Logs

Server or workstation instability, application crashes, software/hardware failures, and unexpected shutdowns are common problems that…

24 hours ago

DxDiag (DirectX Diagnostic Tool) Download and Run in Windows 11/10

Are you a gaming programmer or someone interested in video rendering or other multimedia tasks?…

1 day ago

Best Omegle Alternatives or Sites Like Omegle for Video Chat

Let’s have a look at some of the best Omegle alternatives in this article to…

2 days ago

Best Free Online Portfolio Websites in 2026

In today's competitive world, having a strong portfolio is crucial to showcasing your skills and…

2 days ago

How to Open the Clipboard in Windows 11

If you've ever found yourself balancing multiple pieces of text or images while working on…

3 days ago