ATTN: GIORGIO: custom whitelist NO LOCAL files options.

Ask for help about NoScript, no registration needed to post
Sarick

ATTN: GIORGIO: custom whitelist NO LOCAL files options.

Post by Sarick »

Giorgio Maone wrote: computerfreaker wrote:Will setting noscript.AllowLocalLinks to false keep JavaScript from running in local web pages?

Local web pages are not allowed to run Javascript by default. You need to "Allow file://", in order to enable Javascript there.
This preference is used to allow some sites (mainly MMO games) to link local files, especially images, for performance reasons.

On a side note, both noscript.allowClipboard and noscript.allowLocalLinks do have their UI, under NoScript Options|Advanced|Trusted.
Ok, I have a problem with the noscript whitlist feature. It seems that I can't manually allow a whitelist for a specific local files directory in firefaox 3.5, I have the latest versions of both products. I've managed to get the local code to load currently but have an issue with the security concerns. The reason for my concern is the filter only allows to whitelist local files in general. It's not capable of custom local file whitelist. for example: If I want to whitelist C:/mypage/ files only I can't whitelist that directory only on my local side. This brings up the security problem that by allowing the general rule in my whitelist *all local code can execute" This is a severe security problem as I can't whitelist spsific files or directories inside noscript without punching a big hole in my security.

Is it possible to fix the whitelist to allow custom local files to be whitelisted?
Last edited by Tom T. on Thu Oct 22, 2009 3:26 am, edited 1 time in total.
Reason: flag for giorgio
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
Tom T.
Field Marshal
Posts: 3620
Joined: Fri Mar 20, 2009 6:58 am

Re: Problem with custom whitelist NO LOCAL files options.

Post by Tom T. »

I would think that that falls into the general category of Site-Specific Permissions, a feature intended for NoScript 2.x, but Giorgio will have to confirm that or provide an answer. I'll flag it for him.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: ATTN: GIORGIO: custom whitelist NO LOCAL files options.

Post by Giorgio Maone »

Sarick wrote:Is it possible to fix the whitelist to allow custom local files to be whitelisted?
No you can't, due to a limitation in Mozilla's core script security manager which can't give different permissions to different paths, assuming that trust-based security is per-domain.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
Sarick

Re: ATTN: GIORGIO: custom whitelist NO LOCAL files options.

Post by Sarick »

Giorgio Maone wrote:
Sarick wrote:Is it possible to fix the whitelist to allow custom local files to be whitelisted?
No you can't, due to a limitation in Mozilla's core script security manager which can't give different permissions to different paths, assuming that trust-based security is per-domain.
So the problem is the firefox script engine not directly managing local domains? I would assume that the firefox community would fix this if possible. As for the first response by Tom I did have the page marked as unblocked that it was calling.

I never had this issue until Firefox 3.5 the guys at Mozilla must have changes something to optimize the browser there.

Thank you for the quick response. :)
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
Tom T.
Field Marshal
Posts: 3620
Joined: Fri Mar 20, 2009 6:58 am

Re: ATTN: GIORGIO: custom whitelist NO LOCAL files options.

Post by Tom T. »

Sarick wrote: As for the first response by Tom I did have the page marked as unblocked that it was calling.
I wasn't referring to whether the page being called was blocked. If you click the link, there's a long-running thread about individually-grained permissions for each site. E. g., I will allow Java at Hushmail, but nowhere else. Flash at YouTube, nowhere else, etc. -- a feature long awaited and planned for NS 2 whenever Giorgio can breathe long enough to do it. So I took it that this request would end up being similar, "I want to allow file:// from C:\Docs and Settings\USERNAME\This File Folder, but not anywhere else."

I wasn't aware of the issue with the MZ security manager, so I'm glad Giorgio brought it up. Now I know.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20
toby

Re: ATTN: GIORGIO: custom whitelist NO LOCAL files options.

Post by toby »

As the OP I would like to split the properties "Allow Java Script" and "Allow Local Links". For that reason I like to add something like

user_pref("capability.policy.policynames", "localfilelinks");
user_pref("capability.policy.localfilelinks.sites", "example.com");
user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");

to my preferences. As confirmed by other users this doesnt work out of the box. I changed Main.js to append "localfilelinks" beside of maonoscript to policynames. It seems to work but I think that there is already a mechanism to allow multiple policies which is controlled by "excaps". Unfortunally I were not able to use this configurationtoken properly. Could someone give me some advice how to use this option and if it is the right screw to turn?

Thanks for your attention
Toby
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7
Post Reply