chrome://Brief RSS and ABE settings

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

chrome://Brief RSS and ABE settings

Post by poutnikl »

I use great Brief FF entension, running on separate FF tab on chrome:// FF internal protocol
( chrome://brief/content/brief.xul )

As chrome:// is whitelisted by NS by default, Is there any chrome specific ABE settings, good to be applied to this,
e.g. to avoid eventual attacks from RSS related external pages ?

e.g. like this ?

Code: Select all

site ^https?://.*
Accept GET from ^chrome://brief/.*
Deny from ^chrome://brief/.*
Mozilla/5.0 (Windows NT 5.1; rv:10.0.10) Gecko/20100101 Firefox/10.0.10
poutnikl
Posts: 16
Joined: Sat Nov 10, 2012 5:37 pm

Re: chrome://Brief RSS and ABE settings

Post by poutnikl »

Possibly rather the opposite... ?
Site ^chrome://brief/.*
Deny from ^https?://.*
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: chrome://Brief RSS and ABE settings

Post by Thrawn »

Your second attempt is closer, but what kind of attacks are you trying to prevent? XSS?

Please describe exactly what you want your ABE rule to do, and we should be able to help you write it.
======
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
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: chrome://Brief RSS and ABE settings

Post by Thrawn »

poutnikl wrote: 1 - Preventing access of external sites through chrome:// to local resources
This shouldn't be an issue. Unless I'm very wrong, the browser won't allow external sites to make requests to chrome. chrome:// is an internal protocol used by the core browser and its addons, very much off-limits to external websites.
2 - Preventing attacks from of external sites related to RSS via trusted chrome://
Again, I'm almost certain that sites can't send any kind of request to chrome://, so I can't visualise a scenario where ABE would be needed.

The only real way that I know of for sites to compromise chrome:// is if some privileged code (like an addon) is poorly designed and allows sites to tamper with it. That's beyond the scope of ABE, though.
======
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
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: chrome://Brief RSS and ABE settings

Post by Thrawn »

poutnikl wrote:it looks to me rather like more user friendly interactive way to provide subset of ABE functionality.
That's an excellent description :). Guardian and I have a side project to combine the two, using an RP-style interface to write ABE rules, but haven't had time to work on it lately.

Using RP is an excellent way to control permissions on a site-specific basis - eg allowing Google Analytics in NoScript, but only allowing selected sites to use it - but it adds a whole new level of 'sites will break by default', so it's only for those who really want full control.
If I understand well, cross site requests must pass now approvals of both extensions.
You're close: cross-site requests for active content (eg JavaScript, Java, Flash) must now pass both extensions.

NoScript doesn't care about static requests like images and stylesheets. But most cross-site requests these days do include scripts, so usually every site will appear in both lists.
But interesting thing is, that RP is reporting in context menu1 conflicting extension - Brief.
On other context menu line it say that requests from chrome:// cannot be blocked. Is it an issue ?
I haven't tried the two extensions together; if you want to do so and report the results to the RequestPolicy author, then please do.

I think that ABE can block requests from chrome://, but RP can't. That's probably by design, though, because a default-deny policy for chrome:// requests would be a Bad Thing.
======
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
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: chrome://Brief RSS and ABE settings

Post by Thrawn »

poutnikl wrote:
Thrawn wrote:NoScript doesn't care about static requests like images and stylesheets. But most cross-site requests these days do include scripts, so usually every site will appear in both lists.
Unless ABE restrictions are strong, if I understand it correctly......
Yes. ABE is similar to RequestPolicy.
======
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; Linux i686; rv:12.2) Gecko/20121102 PaleMoon/12.2
Post Reply