NoScript

From Hidden Wiki
Jump to navigation Jump to search

Template:For {{#invoke:Infobox|infobox}} NoScript (or NoScript Security Suite) is a free software extension for Mozilla Firefox, SeaMonkey, and other Mozilla-based web browsers, created and actively maintained by Giorgio Maone,[1] an Italian software developer and member of the Mozilla Security Group.[2] It allows executable web content based on JavaScript, Java, Flash, Silverlight, and other plugins only if the site hosting is considered trusted by its user and has been previously added to a whitelist. It also offers specific countermeasures against security exploits.[3]

Features

File:NoScript screenshot.png
The classic NoScript menu in Firefox

NoScript blocks JavaScript, huJava, Flash, Silverlight, and other "active" content by default in Firefox. This is based on the assumption that websites can use these technologies in harmful ways. Users can allow active content to execute on trusted websites, by giving explicit permission, on a temporary or a more permanent basis. If "Temporarily allow" is selected, then scripts are enabled for that site until the browser session is closed.

Because many web browser attacks require scripting, configuring the browser to have scripting disabled by default reduces the chances of exploitation. Blocking plug-in content, as well, helps to mitigate any vulnerabilities in plug-in technologies, such as Java, Flash, Acrobat, and so on. NoScript will replace these blocked elements with a placeholder icon. Clicking on this icon enables the element.[4]

NoScript takes the form of a toolbar icon or status bar icon in Firefox. It displays on every website to denote whether NoScript has either blocked, allowed, or partially allowed scripts to run on the web page being viewed. Clicking or hovering (since version 2.0.3rc1[5]) the mouse cursor on the NoScript icon gives the user the option to allow or forbid the script's processing.

NoScript's interface, whether accessed by right-clicking on the web page or the distinctive NoScript box at the bottom of the page (by default), shows the URL of the script(s) which are blocked, but does not provide any sort of reference to look up whether or not a given script is safe to run.[6] With complex webpages, users may be faced with well over a dozen different cryptic URLs and a non-functioning webpage, with only the choice to allow the script, block the script or to allow it temporarily.

The names of certain URLs often give indications of the purposes of these scripts, for example scripts from online-advertising and tracking firms. This gives users the ability to very specifically weed out scripts that they do not have the desire to run. This is a trial-and-error process. Upon unblocking a script the entire webpage is reloaded, and the weeding-out process must then be repeated.[7][8]

NoScript may provide additional defenses against web-based attacks such as XSS, CSRF, clickjacking, man-in-the-middle attacks, and DNS rebinding, with specific countermeasures that work independently from script blocking.[9]

On November 14, 2017, Giorgio Maone announced NoScript 10, which will be "very different" from 5.x versions, and will use WebExtension technology, making it compatible with Firefox Quantum.[10]. On November 20, 2017, Maone released version 10.1.1 for Firefox 57 and above. NoScript is available for Firefox for Android and there is also preliminary work to port it to Chromium.[11]

Site matching and whitelisting

File:NoScript Anywhere 3.5a15 site permissions in IceCatMobile 52.6 on Android 4.1.2.png
NoScript Anywhere 3.5a15 site permissions in IceCat Mobile 52.6 on Android 4.1.2

Scripts (and other blockable elements) are allowed or blocked based on the source from where the script is fetched. Very often, this source is not identical to the URL displayed in the address field of the web page (main page). This is because many web pages fetch elements such as iframes, style sheets, scripts, and embeddable objects from remote sites. When a web page includes scripts and other blockable elements from many sources, the user may specify blocking policy for the main address and each of the sources separately.

No scripts are executed, if the address of the main page is untrusted. Once any source is marked as trusted, NoScript will regard it as trusted even if it is loaded indirectly by web pages or scripts originating from other domains.

The possibility to allow scripts coming from a certain source only for specific main page locations has been requested frequently, but is not yet easy to configure. It may be achieved by configuring the built-in ABE module to fine-tune cross-site resource access.[12]

For each source, the exact address, exact domain, or parent domain may be specified. By enabling a domain (e.g. mozilla.org), all its subdomains are implicitly enabled (e.g. www.mozilla.org, addons.mozilla.org and so on) with every possible protocol (e.g. HTTP and https). By enabling an address (protocol://host, e.g. https://mozilla.org), its subdirectories are enabled (e.g. https://mozilla.org/firefox and https://mozilla.org/thunderbird), but not its domain ancestors nor its siblings. Therefore, mozilla.org and addons.mozilla.org will not be automatically enabled.[13]

Untrusted blacklist

Sites can also be blacklisted with NoScript.[14] This, coupled with the "Allow Scripts Globally" option, lets users who deem NoScript's "Default Deny" policy too restrictive, to turn it into a "Default Allow" policy.[15] Even if the security level is lower than in the default configuration, NoScript still provides a number of defenses against certain web-based attacks, such as cross-site scripting, CSRF, clickjacking, man-in-the-middle attacks, and DNS rebinding.[9]

Anti-XSS protection

On April 11, 2007, NoScript 1.1.4.7 was publicly released,[16] introducing the first client-side protection against Type 0 and Type 1 Cross-site scripting (XSS) ever delivered in a web browser. Whenever a website tries to inject HTML or JavaScript code inside a different site, NoScript filters the malicious request, neutralizing its dangerous load.[17] Similar features have been adopted years later by Microsoft Internet Explorer 8[18] and by Google Chrome.[19]

Application Boundaries Enforcer (ABE)

File:The Console extension in IceCatMobile 38.8 showing the effect of NoScript's ABE rules.png
Resources blocked by ABE are logged to the browser console. The Console extension shows the block events of two CSS files, as logged by NoScript Anywhere 3.5a15 in GNU IceCat 38.8.0 on Android 2.3.6

The Application Boundaries Enforcer (ABE) is a built-in NoScript module meant to harden the web application-oriented protections already provided by NoScript, by delivering a firewall-like component running inside the browser. This "firewall" is specialized in defining and guarding the boundaries of each sensitive web application relevant to the user (e.g. plugins, webmail, online banking, and so on), according to policies defined either directly by the user, by the web developer/administrator, or by a trusted third party.[20] In its default configuration, NoScript's ABE provides protection against CSRF and DNS rebinding attacks aimed at intranet resources, such as routers and sensitive web applications.[21]

ClearClick (anti-clickjacking)

NoScript's ClearClick feature,[22] released on October 8, 2008, prevents users from clicking on invisible or "redressed" page elements of embedded documents or applets, defeating all types of clickjacking (i.e. frame-based and plugin-based).[23] This makes NoScript "the only freely available product which offers a reasonable degree of protection" against clickjacking attacks.[24]

HTTPS enhancements

NoScript can force the browser to always use HTTPS when establishing connections to some sensitive sites, in order to prevent man-in-the-middle attacks. This behavior can be either triggered by the websites themselves, by sending the Strict Transport Security header, or configured by users for those websites which don't support Strict Transport Security yet.[25] NoScript's HTTPS enhancement features have been used by the Electronic Frontier Foundation as the basis of its HTTPS Everywhere add-on.[26]

Surrogate scripts

NoScript is able to run user-provided scripts instead of, or in addition to, website-provided scripts, in a similar manner to the Greasemonkey addon. This feature was originally designed to fix pages that make use of third-party scripts (such as Google Analytics) in a way that causes the pages to break when the third-party scripts are blocked, but is not required for the actual functionality of the page.[27] The list of built-in surrogate scripts is actively maintained[28] and included 48 sites as of version 2.6.9.27.

Unintended benefits

NoScript can provide some unintended benefits. An IANIX benchmark on the top 150 Alexa websites sans country-code duplicates with NoScript enabled showed a reduction in bandwidth consumption by approximately 42%.[29] In addition, the use of NoScript reduces the amount of system resources required by the browser to display web pages.Template:Cn

As some web tracking services depend on JavaScript, and as JavaScript exposes browser and operating system configuration details, NoScript can increase privacy and anonymity as seen via the EFF's Panopticlick tool.[30] NoScript also can be used by web developers as a convenient way to test how well sites work without JavaScript, particularly since modern versions of Firefox have removed JavaScript controls from the regular configuration pane.[31]

Awards

  • PC World chose NoScript as one of the 100 Best Products of 2006.[32]
  • In 2008, NoScript won About.com's "Best Security Add-On" editorial award.[33]
  • In 2010, NoScript was "The Reader's Choice Awards" winner in the "Best Privacy/Security Add-On" category at About.com.[34]
  • In 2011, for the second year in a row, NoScript was "The Reader's Choice Awards" winner in the "Best Privacy/Security Add-On" category at About.com.[35]
  • NoScript was the 2011 (first edition) winner of the Dragon Research Group's "Security Innovation Grant". This award is given to the most innovative project in the area of information security, as judged by an independent committee.[36]

Controversies

Conflict with Adblock Plus

In May 2009, it was reported that an "extension war" had broken out between NoScript's developer, Giorgio Maone, and the developers of the Firefox ad-blocking extension Adblock Plus after Maone released a version of NoScript that circumvented a block enabled by an AdBlock Plus filter.[37][38] The code implementing this workaround was "camouflaged"[37] to avoid detection. Maone stated that he had implemented it in response to a filter that blocked his own website. After mounting criticism, and a declaration by the administrators of the Mozilla Add-ons site that the site would change its guidelines regarding add-on modifications,[39] Maone removed the code and issued a full apology.[37][40]

Conflict with Ghostery

Also in May 2009, shortly after the Adblock Plus incident,[41] a spat arose between Maone and the developers of the Ghostery add-on after Maone implemented a change on his website that disabled the notification Ghostery used to report web tracking software.[42] This was interpreted as an attempt to "prevent Ghostery from reporting on trackers and ad networks on NoScript's websites".[41] In response, Maone stated that the change was made because Ghostery's notification obscured the donation button on the NoScript site.[43]

The conflict was resolved when Maone changed his site's CSS to move—rather than disable—the Ghostery notification.[44]

See also

Template:Portal

References

1 }}
     | references-column-width 
     | references-column-count references-column-count-{{#if:1|30em}} }}
   | {{#if: 
     | references-column-width }} }}" style="{{#if: 30em
   | {{#iferror: {{#ifexpr: 30em > 1 }}
     | Template:Column-width
     | Template:Column-count }}
   | {{#if: 
     | Template:Column-width }} }} list-style-type: {{#switch: 
   | upper-alpha
   | upper-roman
   | lower-alpha
   | lower-greek
   | lower-roman = {{{group}}}
   | #default = decimal}};">
  1. Template:Cite web
  2. Template:Cite web
  3. Template:Cite web
  4. Template:Cite web
  5. Template:Cite web
  6. Template:Cite web
  7. Template:Cite web
  8. Template:Cite web
  9. 9.0 9.1 Template:Cite web
  10. Template:Cite web
  11. Template:Cite web
  12. Can I use ABE to fine-tune NoScript's permissions? NoScript.net. Retrieved November 27, 2010.
  13. NoScript Features-Site matching NoScript.net. Retrieved April 22, 2008.
  14. NoScript Features-Untrusted blacklist NoScript.net. Retrieved April 22, 2008.
  15. Template:Cite web
  16. NoScript's first Anti-XSS release Mozilla Add-ons
  17. NoScript Features-Anti-XSS protection NoScript.net. Retrieved April 22, 2008.
  18. Template:Cite web
  19. Template:Cite web
  20. Template:Cite web
  21. Template:Cite web
  22. https://noscript.net/faq#clearclick
  23. Template:Cite web
  24. Template:Cite web
  25. NoScript FAQ: HTTPS NoScript.net. Retrieved August 2, 2010.
  26. HTTPS Everywhere
  27. Template:Cite web
  28. Template:Cite web
  29. Template:Cite web
  30. Template:Cite web
  31. Mozilla issue tracker, item 873709
  32. PC World Award pcworld.com. Retrieved April 22, 2008.
  33. About.com 2008 Best Security Add-On Award about.com. Retrieved August 2, 2010.
  34. Best Privacy/Security Add-On 2010 about.com. Retrieved August 2, 2010.
  35. Best Privacy/Security Add-On 2011 about.com. Retrieved March 20, 2011.
  36. Security Innovation Grant Winner Announcement Dragon Research Group. Retrieved July 17, 2011.
  37. 37.0 37.1 37.2 Template:Cite web
  38. Template:Cite web
  39. Template:Cite web
  40. Dear Adblock Plus and NoScript Users, Dear Mozilla Community
  41. 41.0 41.1 Attention all NoScript users
  42. Template:Cite web
  43. NoScript support forum "Re: Latest NoScript version (1.9.2) breaks Adblock Plus", comment #3704, Giorgio Maone (2009-05-04)
  44. NoScript support forum "Re: Additional steps to regain and retain user trust", comment #3935, Giorgio Maone (2009-05-06)

External links