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

Solve WHEA Uncorrectable Error in Windows 11/10

BSOD or Blue Screen of Death errors, such as WHEA uncorrectable error, are common on…

2 days ago

Best VirusTotal Alternatives to Use in 2026

VirusTotal is a free service by Google to analyze suspicious files, domains, URLs, and IP…

3 days ago

Best Private Search Engines to Use for Safe Search

You are being tracked online! All of us are. Recall how many times you searched…

4 days ago

Most Trusted & Safe Torrenting Sites to Use in 2026

The best torrent sites have always been a popular way to seek free entertainment, niche…

6 days ago

Download Driver Canon iP2770 and Install on Windows 11/10

Despite being discontinued, the Canon iP2770 is still a user favorite energy-efficient inkjet printer with…

1 week ago

Fixed: OneDrive Not Syncing in Windows

Are errors such as “sync pending,” “file locked,” or “processing changes” disrupting your cloud storage…

1 week ago