Links to ABE-restricted sites are Filtered

Discussions about the Application Boundaries Enforcer (ABE) module
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: Links to ABE-restricted sites are Filtered

Post by al_9x »

Also, until a restart it keeps happening on other sites with facebook like iframe, where the url is different (search string).
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: Links to ABE-restricted sites are Filtered

Post by al_9x »

Initially it seemed that if you start with iframes forbidden that you would never see the abe alert, but that's not the case, I started seeing them.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Links to ABE-restricted sites are Filtered

Post by Giorgio Maone »

Sorry for the confusing explanation: when I described it as an history/cache issue affecting frames, I meant that Gecko "remembers" (or caches) the frame structures for history-based navigation, and when it rebuilds it the requests are not seen as subdocuments, but as documents.
However I'm gonna check closer to see if there's any other non obvious side-effect.
One work-around for the immediate issue, though, is probably avoiding notifications for INCLUSION matches (opposite to SUB and "regular" methods which load documents).
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: Links to ABE-restricted sites are Filtered

Post by al_9x »

Giorgio Maone wrote:requests are not seen as subdocuments, but as documents.
I still don't quite understand. When iframes are blocked there shouldn't be any requests for abe to block. And what about abe alerts on different pages and sites, their frame structure has not been cached?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Links to ABE-restricted sites are Filtered

Post by Giorgio Maone »

al_9x wrote:And what about abe alerts on different pages and sites, their frame structure has not been cached?
I missed that bit. Could you assemble a reproducible test case?
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Links to ABE-restricted sites are Filtered

Post by Giorgio Maone »

NVM. I managed to both reproduce and find the explanation.
Frame blocking checks, for a number of reasons (one of which is delivering a mostly uniform blocking behavior for frames, notwithstanding the aforementioned history-related issues), are deferred to a later stage than the early nsIContentPolicy::shouldLoad(), after ABE but still before the request hits the network.
Nothing to be worried about and, again, a good reason to explicitly bypass notifications for ABE INCLUSION matches.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: Links to ABE-restricted sites are Filtered

Post by al_9x »

Giorgio Maone wrote:
al_9x wrote:And what about abe alerts on different pages and sites, their frame structure has not been cached?
I missed that bit. Could you assemble a reproducible test case?
  1. new profile + .79
  2. add this rule

    Code: Select all

    Site .facebook.com .fbcdn.net
    Accept from .facebook.com .fbcdn.net
    Deny INC
    
  3. go here
  4. since iframes are not blocked, you get a legitimate abe block and alert
  5. close the alert, go to about:blank, clear history (everything), block iframes (on trusted)
  6. go to the same page
  7. still get the abe alert, in theory, there is no request for abe to block
  8. go to a different site with a facebook iframe
  9. you should get the abe alert
  10. if you clear everything and restart ("block iframes" already set), you should not see abe alerts on either site, although, as I mentioned, sometimes they start.
Last edited by al_9x on Sat May 22, 2010 1:41 am, edited 1 time in total.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: Links to ABE-restricted sites are Filtered

Post by al_9x »

Giorgio Maone wrote:a good reason to explicitly bypass notifications for ABE INCLUSION matches.
I think someone requested making notifications configurable in the abe rule, what do you think about that?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: Links to ABE-restricted sites are Filtered

Post by al_9x »

Also, according to your explanation, shouldn't the behavior be consistent, i.e. always get the abe alert?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Links to ABE-restricted sites are Filtered

Post by Giorgio Maone »

al_9x wrote:Also, according to your explanation, shouldn't the behavior be consistent, i.e. always get the abe alert?
No, not necessarily.
It depends whether DNS info about the frame's host is currently cached or not (if it's not cached, ABE checks are deferred until DNS resolution while frame blocking happens immediately).
al_9x wrote: I think someone requested making notifications configurable in the abe rule, what do you think about that?
It can be useful to have, but low priority.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: Links to ABE-restricted sites are Filtered

Post by al_9x »

Giorgio Maone wrote:if it's not cached, ABE checks are deferred until DNS resolution while frame blocking happens immediately
Thanks for the clarification, that explains why I started seeing them, the abe alert can be triggered by opening facebook.com, thus caching dns, then reloading the page with the iframe.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Post Reply