Page 1 of 1
untrusted should override forbidIFramesContext=3
Posted: Fri Jun 18, 2010 7:58 pm
by al_9x
Currently (1.9.9.90), an iframe from an untrusted domain is not blocked if it has the same 2nd level domain as the parent and forbidIFramesContext is 3.
forbidIFramesContext grants implicit trust but untrusted denies trust explicitly, explicit should override implicit
Re: untrusted should override forbidIFramesContext=3
Posted: Fri Jun 18, 2010 8:05 pm
by Giorgio Maone
al_9x wrote:Currently (1.9.9.90), an iframe from an untrusted domain is not blocked if it has the same 2nd level domain as the parent and forbidIFramesContext is 3.
"should" is debatable. Could you explain exactly how this is a security weakness?
Re: untrusted should override forbidIFramesContext=3
Posted: Fri Jun 18, 2010 8:07 pm
by al_9x
forbidIFramesContext grants implicit trust but untrusted denies trust explicitly, explicit should override implicit, so that's the general principle. Specifically this would allow you to block content from a subdomain on otherwise trusted site.
Re: untrusted should override forbidIFramesContext=3
Posted: Fri Jun 18, 2010 8:29 pm
by al_9x
another way to put it, is that specific should override general.
example: if you are able to grant/deny trust to hierarchical resources, the more specific denial should and generally does override the the more general grant. If you have a write permission on a folder but a denial on a sub-folder, sub-folder denial wins.
forbidIFramesContext=3 grants (iframe) trust on a more general *.a.b level but untrusted denies on a more specific *.c.a.b
Re: untrusted should override forbidIFramesContext=3
Posted: Fri Jun 18, 2010 8:42 pm
by Giorgio Maone
Another way to put it is that forbidIFrameContext helps to define when an IFrame needs to be considered an "object embedding", i.e. extraneous and potentially dangerous content, and when it should be regarded as an integral part of the page, rather than granting or revoking any additional trust.
Specifically this would allow you to block content from a subdomain on otherwise trusted site.
I find this a more compelling and pragmatic argument, so I'm gonna consider a change.
Re: untrusted should override forbidIFramesContext=3
Posted: Sun Jun 20, 2010 10:01 pm
by Giorgio Maone
Re: untrusted should override forbidIFramesContext=3
Posted: Mon Jun 21, 2010 9:01 am
by al_9x