Bizarre ABE local rule invoked when accessing non-local

Discussions about the Application Boundaries Enforcer (ABE) module
User avatar
GµårÐïåñ
Lieutenant Colonel
Posts: 3369
Joined: Fri Mar 20, 2009 5:19 am
Location: PST - USA
Contact:

Bizarre ABE local rule invoked when accessing non-local

Post by GµårÐïåñ »

I was just sitting here and my wife told me that an ABE notice pops up and tells her that the LOCAL rule was invoked denying access but the funny part is that she is on Facebook playing a game and this has NO local component. Here is the exact message, minus some of the critical items that can be abused, which have been removed, Giorgio, if you want the full unaltered link, PM me, but it shouldn't be necessary.
[ABE] <LOCAL> Deny on {POST http://apps.facebook.com/onthefarm/giftaccept.php?reqType=yes&clickSrc= <<< http://apps.facebook.com/onthefarm/giftaccept.php?senderId=xxx&gift=vehiclepart&timestamp=xxx&ref=gift_accept_tab&key=xxx&signature=xxx&srcapp=FarmVille, http://apps.facebook.com/onthefarm/giftaccept.php?senderId=xxx&gift=vehiclepart&timestamp=xxx&ref=gift_accept_tab&key=xxx&signature=xxx&srcapp=FarmVille - xxx}
SYSTEM rule:
Site LOCAL
Accept from LOCAL
Deny
As you can see, there is no local component but ABE is somehow catching it via the LOCAL filtering making absolutely no sense. Any ideas?
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
Mozilla/5.0 (Windows; U; Windows NT 6.0; 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: Bizarre ABE local rule invoked when accessing non-local

Post by Giorgio Maone »

Such a thing can happen only if apps.facebook.com DNS-resolves (either temporarily or permanently) to a LAN IP.
No idea of how this can be happened, though, especially if the Facebook app was still actually working.
Where's your DNS server?
Have you got any proxy?
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
User avatar
GµårÐïåñ
Lieutenant Colonel
Posts: 3369
Joined: Fri Mar 20, 2009 5:19 am
Location: PST - USA
Contact:

Re: Bizarre ABE local rule invoked when accessing non-local

Post by GµårÐïåñ »

Giorgio Maone wrote:Such a thing can happen only if apps.facebook.com DNS-resolves (either temporarily or permanently) to a LAN IP.
Can't see how that would happen given that when the ABE error would not go away, I closed the tab, opened another and browsed to the page and it worked fine, didn't even need to close my browser so that means ABE is being triggered some other way. Now if I was like people who use the zynga toolbars, then I might see a local component but I don't use them because I can't stand them.
No idea of how this can be happened, though, especially if the Facebook app was still actually working.
Yeap, that's why I came to you, otherwise besides the error which rendered that particular tab annoying and stuck, when it was closed, it worked fine still in the same session in the browser. So if it was an actual DNS resolution issue, then my session should have continued to produce that issue on other tabs within the same session too.
Where's your DNS server?
Regular ISP DNS servers, on the router which is served to all the DHCP assigned IPs on the local network but on my machine there is a back up DNS listed which is the Comodo secure servers. That's it, nothing unusual or out of ordinary.
Have you got any proxy?
Nope, I don't have it, don't use it and for the most part, don't need it, unless I am testing which wasn't the case here.

Any other ideas?
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
Mozilla/5.0 (Windows; U; Windows NT 6.0; 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: Bizarre ABE local rule invoked when accessing non-local

Post by Giorgio Maone »

If this keeps happening, please open Tools|Error Console and evaluate the following script:

Code: Select all

var dns = top.opener.noscriptOverlay.ns.__parent__.DNS; var host = "apps.facebook.com"; dns.resolve(host, false, function(r) { alert( r.entries.toSource() + "\nLocal:" + dns.isLocalHost(host)) })
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
User avatar
GµårÐïåñ
Lieutenant Colonel
Posts: 3369
Joined: Fri Mar 20, 2009 5:19 am
Location: PST - USA
Contact:

Re: Bizarre ABE local rule invoked when accessing non-local

Post by GµårÐïåñ »

Did as you asked and it gave me this.
Error: top.opener is null
Source file: javascript:%20var%20dns%20=%20top.opener.noscriptOverlay.ns.__parent__.DNS;%20var%20host%20=%20"apps.facebook.com";%20dns.resolve(host,%20false,%20function(r)%20{%20alert(%20r.entries.toSource()%20+%20"\nLocal:"%20+%20dns.isLocalHost(host))%20})
Line: 1
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
Mozilla/5.0 (Windows; U; Windows NT 6.0; 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: Bizarre ABE local rule invoked when accessing non-local

Post by Giorgio Maone »

GµårÐïåñ wrote:Did as you asked and it gave me this.
Error: top.opener is null
Source file: javascript:%20var%20dns%20=%20top.opener.noscriptOverlay.ns.__parent__.DNS;%20var%20host%20=%20"apps.facebook.com";%20dns.resolve(host,%20false,%20function(r)%20{%20alert(%20r.entries.toSource()%20+%20"\nLocal:"%20+%20dns.isLocalHost(host))%20})
Line: 1
How did you open the Error Console, exactly? top.opener should be the chrome window where you used Tools|Error Console, unless you closed it in the meanwhile...
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
User avatar
GµårÐïåñ
Lieutenant Colonel
Posts: 3369
Joined: Fri Mar 20, 2009 5:19 am
Location: PST - USA
Contact:

Re: Bizarre ABE local rule invoked when accessing non-local

Post by GµårÐïåñ »

How I always open it, using the button I have for it on my toolbar. However, whether I use the Tools|Error Console or Ctrl+Shift+J it all takes me to the same place. I use the error console quite a lot, so I'm quite familiar with it. Now the only difference is that I don't use the "built-in" error console per se, I have Console² but that shouldn't matter since it still hooks the built-in console. Thoughts?
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
Mozilla/5.0 (Windows; U; Windows NT 6.0; 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: Bizarre ABE local rule invoked when accessing non-local

Post by Giorgio Maone »

I use Console² as well, and really a lot, but top.opener is always a chrome window for me...

However, you can use the following which doesn't depend on windows:

Code: Select all

dns = Components.classes["@maone.net/noscript-service;1"].getService().wrappedJSObject.__parent__.DNS; host = "apps.facebook.com"; dns.resolve(host, false, function(r) { alert( r.entries.toSource() + "\nLocal:" + dns.isLocalHost(host)) })
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: Bizarre ABE local rule invoked when accessing non-local

Post by therube »

FWIW.
Neither working on the Trunk.

Code: Select all

Error: Components.classes['@maone.net/noscript-service;1'].getService().wrappedJSObject.__parent__ is undefined
Source file: javascript:%20%20%20%20%20dns%20=%20Components.classes["@maone.net/noscript-service;1"].getService().wrappedJSObject.__parent__.DNS;%20host%20=%20"apps.facebook.com";%20dns.resolve(host,%20false,%20function(r)%20{%20alert(%20r.entries.toSource()%20+%20"\nLocal:"%20+%20dns.isLocalHost(host))%20})
Line: 1

Code: Select all

Error: top.opener.noscriptOverlay.ns.__parent__ is undefined
Source file: javascript:%20var%20dns%20=%20top.opener.noscriptOverlay.ns.__parent__.DNS;%20var%20host%20=%20"apps.facebook.com";%20dns.resolve(host,%20false,%20function(r)%20{%20alert(%20r.entries.toSource()%20+%20"\nLocal:"%20+%20dns.isLocalHost(host))%20})
Line: 1
On the branch (& I was open to an Amazon.com webpage - I guess that doesn't matter):

On the first attempt to Evaluate:

Code: Select all

null

Error: dns is not defined
Source file: javascript:%20dns%20=%20Components.classes["@maone.net/noscript-service;1"].getService().wrappedJSObject.__parent__.DNS;%20host%20=%20"apps.facebook.com";%20dns.resolve(host,%20false,%20function(r)%20{%20alert(%20r.entries.toSource()%20+%20"\nLocal:"%20+%20dns.isLocalHost(host))%20})
Line: 1
Second & subsequent attempts to Evaluate then returns:

Code: Select all

["69.63.189.26"]
Local:false
(This happens with both versions. First a 'null', then the expected Facebook response.)
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; rv:2.0b6pre) Gecko/20100901 Firefox/4.0b6pre SeaMonkey/2.1b1pre
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Bizarre ABE local rule invoked when accessing non-local

Post by Giorgio Maone »

That's really weird.
Does the ABE problem happen also on a clean profile with just NoScript installed (and default NoScript options)?
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: Bizarre ABE local rule invoked when accessing non-local

Post by therube »

New Profile
Install noscript-2.0.2.4rc1.xpi
Restart

Open Error Console

Evalute

---

null

---

Error: dns is not defined
Source File: javascript:%20dns%20=%20Components.classes["@maone.net/noscript-service;1"].getService().wrappedJSObject.__parent__.DNS;%20host%20=%20"apps.facebook.com";%20dns.resolve(host,%20false,%20function(r)%20{%20alert(%20r.entries.toSource()%20+%20"\nLocal:"%20+%20dns.isLocalHost(host))%20})
Line: 1

--

Evaluate

---

["69.63.189.16"]
Local:false

---

[object Object]

---

Subsequent Evaluates ... popup dialog 69.63... & the object Object in Error Console log.
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; rv:2.0b6pre) Gecko/20100901 Firefox/4.0b6pre SeaMonkey/2.1b1pre
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Bizarre ABE local rule invoked when accessing non-local

Post by therube »

Second method returns similar results.

First try the nul and

Code: Select all

Error: dns is not defined
Source File: javascript:%20dns%20=%20Components.classes["@maone.net/noscript-service;1"].getService().wrappedJSObject.__parent__.DNS;%20host%20=%20"apps.facebook.com";%20dns.resolve(host,%20false,%20function(r)%20{%20alert(%20r.entries.toSource()%20+%20"\nLocal:"%20+%20dns.isLocalHost(host))%20})
Line: 1
Subsequent Evaluates return the expected results (other then the object Object logging in Error Console).

(Though IP has now changed; 66.220.146.32, but still Facebook.)
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; rv:2.0b6pre) Gecko/20100901 Firefox/4.0b6pre SeaMonkey/2.1b1pre
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Bizarre ABE local rule invoked when accessing non-local

Post by therube »

(Have you ever done something so ass backwards ... well I just did :lol:.)
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; rv:2.0b6pre) Gecko/20100901 Firefox/4.0b6pre SeaMonkey/2.1b1pre
linuser
Junior Member
Posts: 26
Joined: Sun Nov 08, 2009 8:45 pm

Re: Bizarre ABE local rule invoked when accessing non-local

Post by linuser »

Giorgio Maone wrote:If this keeps happening, please open Tools|Error Console and evaluate the following script:

Code: Select all

var dns = top.opener.noscriptOverlay.ns.__parent__.DNS; var host = "apps.facebook.com"; dns.resolve(host, false, function(r) { alert( r.entries.toSource() + "\nLocal:" + dns.isLocalHost(host)) })
I should say I didn't have any ABE error as described in the object of the thread , but anyway I tried to evaluate the expression in the error console and it gave me an error message with Mindfield :

Code: Select all

Error: top.opener.noscriptOverlay.ns.__parent__ is undefined
Source File: javascript:%20var%20dns%20=%20top.opener.noscriptOverlay.ns.__parent__.DNS;%20var%20host%20=%20"apps.facebook.com";%20dns.resolve(host,%20false,%20function(r)%20{%20alert(%20r.entries.toSource()%20+%20"\nLocal:"%20+%20dns.isLocalHost(host))%20})
Line: 1
And this one while trying to evaluate the second expression :

Code: Select all

Error: Components.classes['@maone.net/noscript-service;1'].getService().wrappedJSObject.__parent__ is undefined
Source File: javascript:%20dns%20=%20Components.classes["@maone.net/noscript-service;1"].getService().wrappedJSObject.__parent__.DNS;%20host%20=%20"apps.facebook.com";%20dns.resolve(host,%20false,%20function(r)%20{%20alert(%20r.entries.toSource()%20+%20"\nLocal:"%20+%20dns.isLocalHost(host))%20})
Line: 1
And they both give me the same results while trying to evaluate them without resolving the domain
Mozilla/5.0 (X11; Linux i686; rv:2.0b5pre) Gecko/20100831 Firefox/4.0b5pre
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Bizarre ABE local rule invoked when accessing non-local

Post by therube »

See above ^^^. Neither expression are working on the Trunk.
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; rv:2.0b6pre) Gecko/20100901 Firefox/4.0b6pre SeaMonkey/2.1b1pre
Post Reply