[INVALID] javascript executed-noscript or firefox defeated?!

Ask for help about NoScript, no registration needed to post
johnshaft
Posts: 5
Joined: Tue Feb 26, 2013 5:33 am

[INVALID] javascript executed-noscript or firefox defeated?!

Post by johnshaft »

i tested out this email testing service

https://emailprivacytester.com

when i got the email, clicked one of the links it claimed to have executed javascript in my browser (Firefox nightly 28)

alert('I\'ve managed to execute javascript in your browser. That is probably a very bad security hole. Please contact me using the contact link on emailprivacytester.com so I can help sort it out.')

my noscript settings

temporarily allow ZERO scripts

explanation

https://emailprivacytester.com/test/script_in_script

thoughts ?
Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0
barbaz
Senior Member
Posts: 11163
Joined: Sat Aug 03, 2013 5:45 pm

Re: javascript executed-noscript or firefox finally defeated

Post by barbaz »

How are you accessing your email? In particular, are you using webmail on a script-allowed site?
If so, this sounds like more an issue with your webmail service than NoScript not doing its job...

Anyway, when that alert is open, what is listed in the NoScript menu?
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20100101 Firefox/17.0
johnshaft
Posts: 5
Joined: Tue Feb 26, 2013 5:33 am

Re: javascript executed-noscript or firefox finally defeated

Post by johnshaft »

How are you accessing your email? In particular, are you using webmail on a script-allowed site?
If so, this sounds like more an issue with your webmail service than NoScript not doing its job...
it doesn't matter - i load the link in my browser
no webmail
webmail would have a different domain anyway
Anyway, when that alert is open, what is listed in the NoScript menu?
hovering over noscript shows it blocked scripts from the domain of emailprivacytester.com
when you load a new tab it shows this domain for recently blocked sites

the question is - did it *really* run js and how do we know ?

curiously i emailed the dev of the site, hopefully he replies
Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0
barbaz
Senior Member
Posts: 11163
Joined: Sat Aug 03, 2013 5:45 pm

Re: javascript executed-noscript or firefox finally defeated

Post by barbaz »

Yes it really ran JS, and we know because you got that alert. AFAIK static HTML can't do that.
If you get an answer, please let us know what he says.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20100101 Firefox/17.0
User avatar
Giorgio Maone
Site Admin
Posts: 9557
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: javascript executed-noscript or firefox finally defeated

Post by Giorgio Maone »

johnshaft wrote:
How are you accessing your email? In particular, are you using webmail on a script-allowed site?
If so, this sounds like more an issue with your webmail service than NoScript not doing its job...
it doesn't matter - i load the link in my browser
It does matter.
The JavaScript code is executed in the context of the email message you've opened.
So the way you're reading your email is of paramount importance to understand why and how the script got executed.
BTW, which "link" are you talking about, exactly?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0
User avatar
Giorgio Maone
Site Admin
Posts: 9557
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: javascript executed-noscript or firefox finally defeated

Post by Giorgio Maone »

Ooops, I suspect the OP didn't even actually see any alert window in his browser.
Might he just see the message in his webmail / desktop client, containing the following line (verbatim)

Code: Select all

ript type="text/javascript" src="https://emailprivacytester.com/cb/38b71b098cac43ff/script_in_script">ript> 
and clicked on the https:// "link" above, which results in Firefox showing its content:

Code: Select all

alert('I\'ve managed to execute javascript in your browser. That is probably a very bad security hole. Please contact me using the contact link on emailprivacytester.com so I can help sort it out.')
?
If this is the case (as I strongly suspect), no JavaScript at all got executed ever in the whole process, and we're just looking at another instance of a well-intentioned security "education" attempt causing more confusion than else.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0
johnshaft
Posts: 5
Joined: Tue Feb 26, 2013 5:33 am

Re: javascript executed-noscript or firefox finally defeated

Post by johnshaft »

in my case the link is

https://emailprivacytester.com/cb/ad4b0 ... _in_script

in the context of the email opened in thunderbird, this link was the last one in the body and here's what it looks like when viewing plain text email

Email Privacy Tester

You are receiving this email because somebody at IP address 202.85.227.146
entered the email address shmick@riseup.net <mailto:shmick@riseup.net> into the
form at https://emailprivacytester.com/

If this was not you, and you wish to not receive emails from this system in
future, please visit my opt out page
<https://emailprivacytester.com/optout?e ... riseup.net>. Please don't
mark this email as spam as it may cause difficulties for people using the Email
Privacy Tester in future.

If you *were* the person to submit the form, and you want to look at the results
page, please click here <https://emailprivacytester.com/5ccc01ffcc6e84d8>.

Please ignore anything after this line as it will probably just look like
gibberish.

<http://ad4b017228699672.anchor-test.ept ... ester.com/>

ript type="text/javascript"
src="https://emailprivacytester.com/cb/ad4b0 ... ript">ript>

the dev responded:

That is a piece of javascript that would have opened
a popup alert containing that message if there was a problem.

i don't quite follow if he means the js is executed by the email client to open a popup window or if it opens a link in the web browser
Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0
User avatar
Giorgio Maone
Site Admin
Posts: 9557
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: javascript executed-noscript or firefox finally defeated

Post by Giorgio Maone »

johnshaft wrote: the dev responded:

That is a piece of javascript that would have opened
a popup alert containing that message if there was a problem.

i don't quite follow if he means the js is executed by the email client to open a popup window or if it opens a link in the web browser
What he means is that he's testing for vulnerabilities in your email client (either desktop or web-based) and one of the problems it tests for is the ability of the sender to execute JavaScript in the aforementioned mail client: therefore the popup, if the problem existed, should have been spawned by Thunderbird in your case (impossible, because JavaScript is disabled by default in Thunderbird's email message viewer docshells).
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0
johnshaft
Posts: 5
Joined: Tue Feb 26, 2013 5:33 am

Re: javascript executed-noscript or firefox finally defeated

Post by johnshaft »

ok that is good know Re email client

but in the context of the browser ?
did js execute ?
after all its just a link, like any other, isn't it ?
Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0
User avatar
Giorgio Maone
Site Admin
Posts: 9557
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: javascript executed-noscript or firefox finally defeated

Post by Giorgio Maone »

johnshaft wrote:ok that is good know Re email client

but in the context of the browser ?
did js execute ?
No it didn't: you just saw the source code, not its output (an alert popup).
johnshaft wrote: after all its just a link, like any other, isn't it ?
Yes, you just opened a link (even though it was meant to be parsed as a script inclusion, which Thunderbird correctly refused to do).
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0
Post Reply