noscript.allowedmimeregexp allows all objects

Ask for help about NoScript, no registration needed to post
access2godzilla
Senior Member
Posts: 109
Joined: Sun May 20, 2012 5:09 pm

noscript.allowedmimeregexp allows all objects

Post by access2godzilla »

I have added the following to noscript.allowedmimeregexp:

Code: Select all

*@http://127\.0\.0\.1
This is allowing all objects to be loaded, whether trusted or untrusted, despite these being blocked in Noscript Options>Embeddings. I also have "apply restrictions to whitelisted sites" turned on.

Running NS 2.6.9.2 on PaleMoon 25.0.1 (ignore the UA string below).
Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:24.7) Gecko/20140907 Firefox/24.7 PaleMoon/24.7.2
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: noscript.allowedmimeregexp allows all objects

Post by barbaz »

If 127.0.0.1 isn't explicitly marked as Untrusted, isn't that the intended behavior? Or are you saying that allows all embeddings on *other* sites and not just 127.0.0.1?
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:31.0) Gecko/20100101 SeaMonkey/2.28.2-unofficial-1
access2godzilla
Senior Member
Posts: 109
Joined: Sun May 20, 2012 5:09 pm

Re: noscript.allowedmimeregexp allows all objects

Post by access2godzilla »

It allows all embeddings on *other* sites, not just 127.0.0.1.
Opera/9.80 (Android; Opera Mini/7.6.35843/35.5003; U; en) Presto/2.8.119 Version/11.10
access2godzilla
Senior Member
Posts: 109
Joined: Sun May 20, 2012 5:09 pm

Re: noscript.allowedmimeregexp allows all objects

Post by access2godzilla »

It seems that Noscript gets confused about the domains when set to allowed from *@location but not from {content-type}@location.

Confirming that this is a Noscript problem; it also happens with other browsers like Seamonkey too.
Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:24.7) Gecko/20140907 Firefox/24.7 PaleMoon/24.7.2
User avatar
Giorgio Maone
Site Admin
Posts: 9454
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: noscript.allowedmimeregexp allows all objects

Post by Giorgio Maone »

access2godzilla wrote:It seems that Noscript gets confused about the domains when set to allowed from *@location but not from {content-type}@location.

Confirming that this is a Noscript problem; it also happens with other browsers like Seamonkey too.

Code: Select all

*@location
is not a valid regular expression.
The bug, if any, is NoScript falling back to (?:) (which matches anything), rather than a match-nothing expression.
Anyway, for your purpose the correct expression would likely be

Code: Select all

.*?@127\.0\.0\.1
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0
Post Reply