inline script tag still runs, though nothing's allowed

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

inline script tag still runs, though nothing's allowed

Post by just_confused »

I am at this URL: http://nintendoeverything.com/another-r ... -comments/

I have nothing allowed in noscript, seen here: http://i.imgur.com/999u96r.png .

The page has an inline script tag, which hijacks the 'copy' event, and inserts extra text: http://i.imgur.com/Cy1MInS.png

This script tag is still running, and my copy is still interfered with.

Am I misunderstanding a basic functionality of NoScript, or missing a setting or allowance? Why is this script still running?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0
barbaz
Senior Member
Posts: 11163
Joined: Sat Aug 03, 2013 5:45 pm

Re: inline script tag still runs, though nothing's allowed

Post by barbaz »

What exactly are you trying to copy on that page?
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26
User avatar
Giorgio Maone
Site Admin
Posts: 9557
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: inline script tag still runs, though nothing's allowed

Post by Giorgio Maone »

You're using an old version of NoScript (2.5.4) which cannot block any inline script on Firefox 28 and above.
Why?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0
User avatar
therube
Ambassador
Posts: 7991
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: inline script tag still runs, though nothing's allowed

Post by therube »

> What exactly are you trying to copy on that page?

Anything at all.
"Read more at..." is appended to the copied text.

> which cannot block any inline script

Wasn't (particularly) aware that inline scripts could be blocked?
Not seeing where recent FF/NoScript is making any difference?

Hmm...
Well it looks like that (or at least some) behavior did change over time, Inline Scripts.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26
barbaz
Senior Member
Posts: 11163
Joined: Sat Aug 03, 2013 5:45 pm

Re: inline script tag still runs, though nothing's allowed

Post by barbaz »

therube wrote:Wasn't (particularly) aware that inline scripts could be blocked?
:?:
NS wouldn't be much of a security tool if it couldn't block inline scripts...
therube wrote:Not seeing where recent FF/NoScript is making any difference?
NS used to use CAPS to block inline scripts, but Mozilla ripped out CAPS in Gecko 28/29, so NS had to be modified to only use CAPS in old Gecko versions.
http://forums.informaction.com/viewtopi ... 10&t=18724
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26
User avatar
therube
Ambassador
Posts: 7991
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: inline script tag still runs, though nothing's allowed

Post by therube »

(I probably missed Thrawn's reply. And maybe one day I'll understand ;-), Inline Script Blockage.)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:29.0) Gecko/20100101 SeaMonkey/2.26
User avatar
therube
Ambassador
Posts: 7991
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: inline script tag still runs, though nothing's allowed

Post by therube »

"Read more at..." is appended to the copied text.
Could have sworn I saw that occur, with a different Profile, earlier today, but not seeing it now in my current Profile.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:29.0) Gecko/20100101 SeaMonkey/2.26
barbaz
Senior Member
Posts: 11163
Joined: Sat Aug 03, 2013 5:45 pm

Re: inline script tag still runs, though nothing's allowed

Post by barbaz »

therube wrote:(I probably missed Thrawn's reply. And maybe one day I'll understand ;-), Inline Script Blockage.)
Come on therube, it's not that hard and you've almost got it anyway :)

In default configuration, scripts from (Temp-)Allowed domains will run if either a) the domain is that of the top-level site or an (i)frame, or b) the site is (temp)Allowed and the script is included there with a script tag like you mentioned in the OP of that other thread. For how embeddings get Allowed base on site permissions - it's pretty similar to regular scripts, see http://noscript.net/features#contentblocking
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0 (PaleMoon)
barbaz
Senior Member
Posts: 11163
Joined: Sat Aug 03, 2013 5:45 pm

Re: inline script tag still runs, though nothing's allowed

Post by barbaz »

therube wrote:
"Read more at..." is appended to the copied text.
Could have sworn I saw that occur, with a different Profile, earlier today, but not seeing it now in my current Profile.
What exactly were you trying to copy on that page when you saw that?
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0 (PaleMoon)
User avatar
therube
Ambassador
Posts: 7991
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: inline script tag still runs, though nothing's allowed

Post by therube »

What exactly were you trying to copy on that page when you saw that?
It was just that, exactly anything, any word, any character, any phrase.

I'll check again this evening & see if I can dup.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:29.0) Gecko/20100101 SeaMonkey/2.26
User avatar
therube
Ambassador
Posts: 7991
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: inline script tag still runs, though nothing's allowed

Post by therube »

Not able to DUP it, but when I opened from Session Restore, what I had pasted this morning was still displaying in the location bar.

Have to assume I did it "correctly" at the time?

Image
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26
barbaz
Senior Member
Posts: 11163
Joined: Sat Aug 03, 2013 5:45 pm

Re: inline script tag still runs, though nothing's allowed

Post by barbaz »

therube wrote:Not able to DUP it,
OK neither can I and it doesn't seem that I'm relying on Disable clipboard manipulations to keep the extra stuff off.
Just trying to make sure there wasn't something like this happening here.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0 (PaleMoon)
just_confused

Re: inline script tag still runs, though nothing's allowed

Post by just_confused »

Giorgio Maone wrote:You're using an old version of NoScript (2.5.4) which cannot block any inline script on Firefox 28 and above.
Why?
Ooh. You called it. Upgraded and the behavior is gone.
No reason for the old version, just NoScript usually keeps itself updated. Was 2.5.4 around the time it stopped being hosted through Mozilla?

Thank you so much for the help!
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: inline script tag still runs, though nothing's allowed

Post by Thrawn »

NoScript is still hosted through Mozilla. Did you disable automatic updates?
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0
just_confused

Re: inline script tag still runs, though nothing's allowed

Post by just_confused »

Oh, y'know, I'm thinking of https everywhere. Never mind. I shall scour my update settings.
Mozilla/5.0 (Linux; Android 4.4.2; SM-N900V Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.138 Mobile Safari/537.36
Post Reply