Page 1 of 1

"WAN IP ∈ LOCAL" HTTP Authentication popup is annoying

Posted: Thu Nov 24, 2016 3:52 pm
by phyzome
When the ABE checkbox "WAN IP ∈ LOCAL" is enabled, I periodically get an HTTP Authentication popup from Firefox asking for my router password. Now, I've read a previous post about why this happens and that I should just ignore it, and in fact originally used Wireshark to discover that the user-agent string of the request contains a URL leading to https://hackademix.net/2010/07/28/abe-p ... r-routers/ with an explanation.

I kind of get why it's necessary. It seems like a reasonable thing to have enabled. But surely there's a way for NoScript to do this task without a popup?

Re: "WAN IP ∈ LOCAL" HTTP Authentication popup is annoying

Posted: Thu Nov 24, 2016 3:56 pm
by barbaz
What NoScript version?
If some 2.9.5 version, do you get the popup with NoScript 2.9.0.14?

Old NoScript @
https://addons.mozilla.org/addon/noscript/versions
*or*
https://noscript.net/feed?c=100&t=a

Re: "WAN IP ∈ LOCAL" HTTP Authentication popup is annoying

Posted: Thu Nov 24, 2016 4:13 pm
by phyzome
This is on NS 2.9.0.14 and Firefox ESR 45.4.0. And... I just checked for updates again, although I swear I did that the other day, and I see updates for NoScript. Will upgrade and report back, although it may take a day for the popup to come 'round again. (If I forget to respond, assume it didn't happen again, although I will try to report back.)

Re: "WAN IP ∈ LOCAL" HTTP Authentication popup is annoying

Posted: Thu Nov 24, 2016 4:16 pm
by phyzome
Confirmed in 2.9.5.1 as well.

Re: "WAN IP ∈ LOCAL" HTTP Authentication popup is annoying

Posted: Fri Nov 25, 2016 2:55 am
by Thrawn
NoScript isn't doing anything to cause the popup except to send traffic to Giorgio's echo service. Why the router asks for your password I'm not sure.

Re: "WAN IP ∈ LOCAL" HTTP Authentication popup is annoying

Posted: Fri Nov 25, 2016 3:01 am
by barbaz
Thrawn wrote:NoScript isn't doing anything to cause the popup except to send traffic to Giorgio's echo service.
I would think it'd be the fingerprinting of the WAN IP that causes it, no?

Would probably need insight from Giorgio as to why some people get prompted for the router password where others don't.

Re: "WAN IP ∈ LOCAL" HTTP Authentication popup is annoying

Posted: Fri Nov 25, 2016 3:51 am
by phyzome
barbaz wrote:I would think it'd be the fingerprinting of the WAN IP that causes it, no?
Yes, that's my guess. This router doesn't even respond to HTTP on its WAN side, but it will respond on the LAN side when *addressed* by its WAN IP.
barbaz wrote:Would probably need insight from Giorgio as to why some people get prompted for the router password where others don't.
I think most newer routers use an HTML login form instead of an HTTP Basic Auth login; that would account for some differences. Presumably the way NS is making the request is allowing user interaction prompts instead of being a "headless" request or whatever.

Re: "WAN IP ∈ LOCAL" HTTP Authentication popup is annoying

Posted: Mon Nov 28, 2016 1:17 am
by Thrawn
The thing is, NoScript isn't trying to talk to the router. It's just asking a remote echo service to tell it the apparent (ie external) address of the router. I'm not sure what component is turning that into a request aimed at that address.

Re: "WAN IP ∈ LOCAL" HTTP Authentication popup is annoying

Posted: Mon Nov 28, 2016 2:02 am
by phyzome
Someone said that there are two steps: 1) NS asks for the WAN IP, and 2) NS talks to the router to fingerprint it. I don't know what #2 is supposed to accomplish, but that's where I imagine this prompt is coming from.

I can try to run another capture, but I remember seeing a NS-specific User-Agent header in the request, which means NS is behind this. As I recall it, it appears to match this changelog message:
NoScript addons.mozilla.org release 2.0.1rc2

v 2.0.1rc2
==========================================================================
+ [ABE] "X-ABE-Fingerprint: Off" header can be sent by web servers which
don't want/need to be fingerprinted by ABE's WAN IP protection
+ [ABE] User agent header "Mozilla/5.0 (ABE, http://noscript.net/abe/wan)"
is sent to help administrators finding info about ABE's fingerprinting
x [ABE] Fingerprint checks are performed every 15 minutes, rather than 5
x Fixed early access to document.documentElement breaking XBL bindings
on SeaMonkey trunk (thanks therube for reporting)
Here, you can see the code changes in this unofficial git mirror of NS: https://github.com/avian2/noscript/commit/44f07436ad (why doesn't NS have a public repo?)

Re: "WAN IP ∈ LOCAL" HTTP Authentication popup is annoying

Posted: Mon Nov 28, 2016 2:16 am
by Thrawn
Huh, I had previously completely missed the fact that the WAN protection feature does in fact talk to the router directly, to fingerprint it and determine whether or not it needs to consult the echo service to recheck the external IP.

Unfortunately I'm still not sure whether NoScript can do anything to avoid this popup (except disabling the WAN IP check). It's coming from the router.

Re: "WAN IP ∈ LOCAL" HTTP Authentication popup is annoying

Posted: Mon Nov 28, 2016 2:37 am
by barbaz
phyzome wrote:Someone said that there are two steps: 1) NS asks for the WAN IP, and 2) NS talks to the router to fingerprint it.
Yes, "someone" did. Who do you think I am, this guy? ;)

You want to write about me on these forums, please say so, thanks.
phyzome wrote:I can try to run another capture,
Before you try anything else, one other thought. Can you please let us know whether you get this popup in a clean profile with only NoScript installed and all defaults?
phyzome wrote:(why doesn't NS have a public repo?)
Because Giorgio hasn't had time to set that up.

Re: "WAN IP ∈ LOCAL" HTTP Authentication popup is annoying

Posted: Mon Nov 28, 2016 2:47 am
by phyzome
barbaz wrote:
phyzome wrote:Someone said that there are two steps: 1) NS asks for the WAN IP, and 2) NS talks to the router to fingerprint it.
Yes, "someone" did. Who do you think I am, this guy? ;)

You want to write about me on these forums, please say so, thanks.
Sorry, I have a poor memory and could not immediately discover where I'd seen that. No malice intended!

Re: "WAN IP ∈ LOCAL" HTTP Authentication popup is annoying

Posted: Mon Nov 28, 2016 2:54 am
by barbaz
Oh that's OK :)

In order to keep this thread on-topic and spare the inevitable 'barbaz, where exactly did you say that, hmm?' replies, here's one place - viewtopic.php?f=7&t=20790

Re: "WAN IP ∈ LOCAL" HTTP Authentication popup is annoying

Posted: Sun Dec 04, 2016 5:00 pm
by therube