ABE LOCAL rule and GetForecastFox extension

Discussions about the Application Boundaries Enforcer (ABE) module
poutnikl
Posts: 16
Joined: Sat Nov 10, 2012 5:37 pm

ABE LOCAL rule and GetForecastFox extension

Post by poutnikl »

I use great weather forecast FF extension Getforecastfox, based on AccuWeather data.
Configuration of extension is done by invoking page on http://www.getforecastfox.com, JS required.

When I enabled SYSTEM LOCAL ABE rule, it stopped working, until I weakened LOCAL rule to allow access from www.getforecastfox.com.

Currently I use the following code, but as I am newbie to ABE and HTTP internal things,
I would like if revised a/o adviced better settings.

Code: Select all

# Prevent Internet sites from requesting LAN resources.
Site LOCAL
Accept from LOCAL
Deny INC
Accept GET from www.getforecastfox.com
Deny
I used Deny INC, as I was afraid Accept GET may cover some activities denied by Deny INC

P.S.: If applicable and adviced, is possible to specify which LOCAL resources can be accessed ?
Last edited by poutnikl on Mon Nov 19, 2012 5:48 pm, edited 2 times in total.
Mozilla/5.0 (Windows NT 5.1; rv:10.0.10) Gecko/20100101 Firefox/10.0.10
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: ABE LOCAL rule and GetForecastFox extension

Post by Thrawn »

Good on you for tackling ABE configuration! It's a very powerful module, but can be challenging.
poutnikl wrote:

Code: Select all

# Prevent Internet sites from requesting LAN resources.
Site LOCAL
Accept from LOCAL
Deny INC
Accept GET from www.getforecastfox.com
Deny
That looks good. I would probably put Accept GET after the Accept from LOCAL, and then drop the Deny INC (just use Deny), but what you have should work fine and be more selective, so long as getforecastfox doesn't actually want to include any resources from LOCAL.
I used Deny INC, as I was afraid Accept GET may cover some activities denied by Deny INC
Yes, it allows inclusion of resources (scripts, etc), but only for requests initiated by www.getforecastfox.com, which you presumably trust. If you're sure that forecastfox doesn't need to do that, then you made the right choice :).
P.S.: If applicable and adviced, is possible to specify which LOCAL resources can be accessed ?
Yes, you certainly can specify your own rule for specific hostnames (or more likely IP addresses), and if you have lots of local addresses, that's a good idea. Make sure that it goes above the default rule, since you want it to take precedence. Eg:

Code: Select all

Site 127.0.0.1
Accept GET from www.getforecastfox.com
Deny

Site LOCAL
Accept from LOCAL
Deny
======
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:16.0) Gecko/20100101 Firefox/16.0
warp-9.9

Re: ABE LOCAL rule and GetForecastFox extension

Post by warp-9.9 »

I've tried these suggested rules in ABE / SYSTEM area, as well as variations, and they do not work, none of them, at all. I must manually click "Allow" button every time I want to customize the Forecastfox extension, which actually does nothing when I click it. Banner remains, Allow button remains, configuration page not functional. Any suggestions?
Mozilla/5.0 (Windows NT 6.2; Win64; x64; rv:27.0) Gecko/20100101 Firefox/27.0.2 Waterfox/27.0
warp-9.9
Posts: 2
Joined: Wed Apr 02, 2014 3:08 pm

Re: ABE LOCAL rule and GetForecastFox extension

Post by warp-9.9 »

Sorry for double post, I was not registered or logged in before. I have these ABE SYSTEM rules, which did not prevent the "Allow" button from appearing, and did not make the Allow button work. However, subsequently clicking the "x" to close the red banner did allow the Forecastfox customization page to work properly.

Code: Select all

# Prevent Internet sites from requesting LAN resources.
Site LOCAL
Accept from LOCAL
# Allow Forecastfox customization page.
Accept GET from www.getforecastfox.com
Deny
Could this rule be modified to prevent the red warning banner with the Allow button? Is it something better suited for XSS? I want this extension to operate without so much hassle. Could you possibly see about adding a default rule for it, even if commented out at first. At least it'd be there and we could see quickly how to enable it.
Mozilla/5.0 (Windows NT 6.2; Win64; x64; rv:27.0) Gecko/20100101 Firefox/27.0.2 Waterfox/27.0
barbaz
Senior Member
Posts: 10851
Joined: Sat Aug 03, 2013 5:45 pm

Re: ABE LOCAL rule and GetForecastFox extension

Post by barbaz »

???
"Red banner"? Doesn't sound like NoScript...
What does it actually say?

Also, any related messages in the Browser Console? (Ctrl-Shift-J)
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26a2
Post Reply