[RESOLVED] Noscript, squid proxy and ftp

Ask for help about NoScript, no registration needed to post
invider
Posts: 6
Joined: Sat Oct 17, 2015 11:52 am

[RESOLVED] Noscript, squid proxy and ftp

Post by invider »

Hey folks,

I am using FF 41.0.2, NOscript 2.6.9.38 and a squid proxy for web access (http, https, ftp).
Whenever I try to open an ftp link, it does not load, only when I add the host to the whitelist or when im deactivating the noscript addon.
I tried a fresh profile with only noscript installed.
I also tried to setup an ftp-whitelist (added ftp:// and ftp://* to the whitelist), but it is not working.

Any suggestions?
Thanks
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: Noscript, squid proxy and ftp

Post by barbaz »

invider wrote:Whenever I try to open an ftp link, it does not load,
What exactly happens instead?
*Always* check the changelogs BEFORE updating that important software!
-
invider
Posts: 6
Joined: Sat Oct 17, 2015 11:52 am

Re: Noscript, squid proxy and ftp

Post by invider »

It tries to load the site, but nothing happens. The loading bar from firefox stays empty (so no endless reloading)
Mozilla/5.0 (Linux; Android 4.4.4; GT-I9505 Build/KTU84Q) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.76 Mobile Safari/537.36
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: Noscript, squid proxy and ftp

Post by barbaz »

This is just odd, it's as if the connection were dropped by the receiving end yet it's due to NS?
When this issue occurs, do you see anything related in the Browser Console? (Ctrl-Shift-J)
(if you don't know what's related, turn off CSS warnings and post everything else you see)

EDIT Oh, and anything informative in the proxy's logs when the issue occurs?
*Always* check the changelogs BEFORE updating that important software!
-
invider
Posts: 6
Joined: Sat Oct 17, 2015 11:52 am

Re: Noscript, squid proxy and ftp

Post by invider »

ok, here are the logs (ip addresses removed)
noscript not installed
squid log
---
1445082040.243 539 x.x.x.x TCP_MISS/200 837 GET ftp://ftp.proftpd.org/ - FIRSTUP_PARENT/x.x.x.x text/html
---
browser console
------
The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol.
(I think this comes from the virusscanner inside the proxy, it rewrites the ftp listing)
noscript installed and enabled
squid log
---
nothing
------
browser console
---
[NoScript XSS] xss.reason.TypeError: keys[0].match(...) is null --- ns.checkShorthands@jar:file:///C:/Users/invider/AppData/Roaming/Mozilla/Firefox/Profiles/dcl6i3ue.test/extensions/%7B73a6fe31-595d-460b-a920-fcc0f8843232%7D.xpi!/components/noscriptService.js:2460:20
RequestWatchdog.prototype.filterXSS@chrome://noscript/content/RequestWatchdog.js:502:15
RequestWatchdog.prototype.onHttpStart/<@chrome://noscript/content/RequestWatchdog.js:158:18
DOSChecker.prototype.run@chrome://noscript/content/RequestWatchdog.js:2771:22
RequestWatchdog.prototype.onHttpStart@chrome://noscript/content/RequestWatchdog.js:156:1
ns.httpObserver.observe@jar:file:///C:/Users/invider/AppData/Roaming/Mozilla/Firefox/Profiles/dcl6i3ue.test/extensions/%7B73a6fe31-595d-460b-a920-fcc0f8843232%7D.xpi!/components/noscriptService.js:1337:24
noscript installed and ftp.profptd.org added to whitelist
squid log
---
1445082395.642 241 x.x.x.x TCP_MISS/200 836 GET ftp://ftp.proftpd.org/ - FIRSTUP_PARENT/x.x.x.x text/html
---
browser console
------
The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol.
(I think this comes from the virusscanner inside the proxy, it rewrites the ftp listing)
Thanks
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: Noscript, squid proxy and ftp

Post by barbaz »

I have never seen a XSS message looking like that. Does old version(s) of NoScript work, if so which?
Old NoScript @
https://addons.mozilla.org/addon/noscript/versions
*or*
https://noscript.net/feed?c=100&t=a

Also since you decided to register I've put your Guest posts under your account so that you can edit the OP if you want.
*Always* check the changelogs BEFORE updating that important software!
-
invider
Posts: 6
Joined: Sat Oct 17, 2015 11:52 am

Re: Noscript, squid proxy and ftp

Post by invider »

will try asap, but i think not before monday

Best regards
Heyho
Mozilla/5.0 (Linux; Android 4.4.4; GT-I9505 Build/KTU84Q) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.76 Mobile Safari/537.36
invider
Posts: 6
Joined: Sat Oct 17, 2015 11:52 am

Re: Noscript, squid proxy and ftp

Post by invider »

Hi,

Version 2.6.9.35 is working.
beginning from 2.6.9.36rc1 its not working

With 2.6.9.35, there is no message in the browser console, and the squid log is normal like without using noscript.
With 2.6.9.36rc1 the same message in the browser console like in the newer versions.

Best Regards
Heyho
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: Noscript, squid proxy and ftp

Post by Thrawn »

Hmm...I don't see anything XSS-related in the changelog. However, as it's a JavaScript error, Giorgio would have a better handle on it.
======
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:41.0) Gecko/20100101 Firefox/41.0
invider
Posts: 6
Joined: Sat Oct 17, 2015 11:52 am

Re: Noscript, squid proxy and ftp

Post by invider »

Hi,

after a longer time with 2.6.9.35, i have updated to 2.7. With that version it works also.
Thread can be closed now.

Thanks
Heyho
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: [RESOLVED] Noscript, squid proxy and ftp

Post by barbaz »

Thanks for letting us know and glad it's working for you. Image
invider wrote:Thread can be closed now.
I see no reason to lock this atm. The closest thing in the NS changelogs is this:

Code: Select all

x Fixed shorthands not checked for ftp(s) sites (thanks
  Leon Winter for patch)
I would suspect your issue is something of a ghost, and we would prefer you post again in this thread if the problem resurfaces later.
*Always* check the changelogs BEFORE updating that important software!
-
Post Reply