Cant Access my Router Pages. (AVM Fritz!Box)

Discussions about the Application Boundaries Enforcer (ABE) module
Spock
Posts: 9
Joined: Thu Jul 29, 2010 8:40 am
Location: Germany

Cant Access my Router Pages. (AVM Fritz!Box)

Post by Spock »

Everytime i want to open my routers webinterface i get these messages
Image

The Webinterface from Fritz.nas looks crippled(no picture or so and says that i must enable js).

and what means that Image?
Last edited by Spock on Thu Jul 29, 2010 4:26 pm, edited 1 time in total.
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729)
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Cant Access my Router Pages.

Post by Giorgio Maone »

What do "fritz.box" and "fritz.nas" resolve to?
I suspect they resolve to multiple addresses, some internal and some external.

Could you run the following script in Tools|Error Console and tell me its output:

Code: Select all

noscriptOverlay.ns.__parent__.DNS;msg=[];["fritz.box","fritz.nas"].forEach(function(h){DNS.resolve(h,0,function(r) {msg.push(h+":"+ r.entries.toSource());if(msg.length==2)alert(msg.join("\n\n"))})})
Spock wrote:what means that Image?
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Cant Access my Router Pages.

Post by Giorgio Maone »

Almost forgot to mention the work-around, which is inserting the following rule in the beginning of the NoScript Options|Advanced|ABE SYSTEM ruleset:

Code: Select all

Site LOCAL
Allow from .fritz.box .fritz.nas
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
Spock
Posts: 9
Joined: Thu Jul 29, 2010 8:40 am
Location: Germany

Re: Cant Access my Router Pages.

Post by Spock »

Thanks

now my Config looks so.

Code: Select all

# Prevent Internet sites from requesting LAN resources.
Site LOCAL
Allow from .fritz.box .fritz.nas

Site LOCAL
Accept from LOCAL
Deny
But the build makes the entire Text red and says
line 3:1 no viable alternative at character 'l'
But it works. :)
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729)
Spock
Posts: 9
Joined: Thu Jul 29, 2010 8:40 am
Location: Germany

Re: Cant Access my Router Pages.

Post by Spock »

Giorgio Maone wrote:What do "fritz.box" and "fritz.nas" resolve to?
I suspect they resolve to multiple addresses, some internal and some external.

Could you run the following script in Tools|Error Console and tell me its output:
They use both the same ipv4 and ipv6.
Image

you mean this console Image?
Fehler: noscriptOverlay is not defined
Quelldatei: javascript:%20noscriptOverlay.ns.__parent__.DNS;msg=[];["fritz.box","fritz.nas"].forEach(function(h){DNS.resolve(h,0,function(r)%20{msg.push(h+":"+%20r.entries.toSource());if(msg.length==2)alert(msg.join("\n\n"))})})
Zeile: 1
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729)
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Cant Access my Router Pages.

Post by Giorgio Maone »

Ooops, the work around:

Code: Select all

Site LOCAL
Accept from .fritz.box .fritz.nas
(notice "Accept" VS "Allow", the latter being NoScript terminology rather than ABE grammar).

The error console script should be

Code: Select all

top.opener.noscriptOverlay.ns.__parent__.DNS;msg=[];["fritz.box","fritz.nas"].forEach(function(h){DNS.resolve(h,0,function(r) {msg.push(h+":"+ r.entries.toSource());if(msg.length==2)alert(msg.join("\n\n"))})})
("top.opener" went missing for some reason, maybe bad copy&paste).

Sorry for the hassle.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
Spock
Posts: 9
Joined: Thu Jul 29, 2010 8:40 am
Location: Germany

Re: Cant Access my Router Pages.

Post by Spock »

Warnung: assignment to undeclared variable msg
Quelldatei: javascript:%20top.opener.noscriptOverlay.ns.__parent__.DNS;msg=[];["fritz.box","fritz.nas"].forEach(function(h){DNS.resolve(h,0,function(r)%20{msg.push(h+":"+%20r.entries.toSource());if(msg.length==2)alert(msg.join("\n\n"))})})
Zeile: 1
Fehler: DNS is not defined
Quelldatei: javascript:%20top.opener.noscriptOverlay.ns.__parent__.DNS;msg=[];["fritz.box","fritz.nas"].forEach(function(h){DNS.resolve(h,0,function(r)%20{msg.push(h+":"+%20r.entries.toSource());if(msg.length==2)alert(msg.join("\n\n"))})})
Zeile: 1
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729)
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Cant Access my Router Pages.

Post by Giorgio Maone »

Damn copy & paste (sorry, yesterday has been very heavy on my head):

Code: Select all

DNS=top.opener.noscriptOverlay.ns.__parent__.DNS;msg=[];["fritz.box","fritz.nas"].forEach(function(h){DNS.resolve(h,0,function(r) {msg.push(h+":"+ r.entries.toSource());if(msg.length==2)alert(msg.join("\n\n"))})})
BTW, did the work-around... work?!
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
Spock
Posts: 9
Joined: Thu Jul 29, 2010 8:40 am
Location: Germany

Re: Cant Access my Router Pages.

Post by Spock »

Yes it works nice.

I can access the Pages of my AVM Fritzbox. And http://www.avm.de/de/Service/FRITZ_Tools/zack/zack.html cant display me which AVM Router and Firmware i have because its blocked for AVM. :).

Thanks
Image
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729)
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Cant Access my Router Pages.

Post by Giorgio Maone »

Hmm, I strongly suspect at least one of those IPV6 addresses are not in the reserved private address space...
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
Spock
Posts: 9
Joined: Thu Jul 29, 2010 8:40 am
Location: Germany

Re: Cant Access my Router Pages.

Post by Spock »

I will send you an link with uncensored ip´s so that you can see all.
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729)
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Cant Access my Router Pages. (AVM Fritz!Box)

Post by Giorgio Maone »

In fact, it seems both names are resolved to 1 private IPV4 address, 1 private IPV6 address and 1 public IPV6 address, which causes ABE to cry wolf (in fact, this is a typical DNS rebinding scenario).
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Cant Access my Router Pages. (AVM Fritz!Box)

Post by therube »

How about a simple English explanation of what you just said ;-).
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; U; Windows NT 5.1; en-US; rv:1.9.1.11) Gecko/20100701 SeaMonkey/2.0.6
Spock
Posts: 9
Joined: Thu Jul 29, 2010 8:40 am
Location: Germany

Re: Cant Access my Router Pages. (AVM Fritz!Box)

Post by Spock »

Is there an ability to warn the User, if one Site trys to make an Rebind (small information Tab on the top of the browser window)?

http://www.avm.de/de/Service/FRITZ_Tools/zack/zack.html (Site from my Router Manufractur) makes an rebind to read one file (as i know avm uses a policy file in the firmware so that only avm can read this(im not 100% sure^^)) so that the site can show me which Firmware i have and so on.

ABE works fine there. :)

The Site can only show me Firmware and Boxname if i:

Completly Remove
Site LOCAL
Accept from LOCAL
Deny
or i add an exception with ".avm.de to
Site LOCAL
Accept from .fritz.box .fritz.nas .fritz.box:81
But it also would be nice if i am informed that one site tried this.

Thanks for Helping
therube wrote:How about a simple English explanation of what you just said ;-).
Sorry my english is not the Best :(
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729)
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Cant Access my Router Pages. (AVM Fritz!Box)

Post by therube »

> How about a simple English explanation of what you just said

That was for Giorgio. I see what he wrote, but don't really understand the implications of what he said.
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; U; Windows NT 5.1; en-US; rv:1.9.1.11) Gecko/20100701 SeaMonkey/2.0.6
Post Reply