You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by Michael Grammling <mi...@neat-it.de> on 2011/11/02 15:19:45 UTC
Security problem in Felix - Getting full file access within the cache
directory
Hi there,
it seems that there is a security problem in the "Framework Security"
module of Felix.
I have full access to the bundle cache directory from each bundle.
Expectation: I should only get full access to the data storage of the
bundle itself.
Actually I was able to create files from Bundle 25 inside the data
storage of Bundle 0.
I even could delete the whole directory of Bundle 0.
I checked the same with Knopflerfish which does this check correctly.
Do I have to set more configuration parameters?
The OSGi specification defines that the framework should grant access to
the bundle's data storage.
Best regards,
Michael
Re: Security problem in Felix - Getting full file access within the
cache directory
Posted by Karl Pauls <ka...@gmail.com>.
Rats, you are correct. I'll commit a patch right now. Could you build
the security provider from trunk and see whether it works for you now
(it does for me)?
regards,
Karl
On Wed, Nov 2, 2011 at 11:12 PM, Karl Pauls <ka...@gmail.com> wrote:
> After looking at it for a bit, I agree, it seems there is a bug
> somewhere. I'll investigate (again, feel free to create a JIRA issue).
>
> regards,
>
> Karl
>
> On Wed, Nov 2, 2011 at 4:32 PM, Karl Pauls <ka...@gmail.com> wrote:
>> Hi,
>>
>> could you create a jira issue for tracking this and if so maybe attach
>> a reproducible scenario?
>>
>> Thanks.
>>
>> regards,
>>
>> Karl
>>
>> On Wed, Nov 2, 2011 at 3:19 PM, Michael Grammling
>> <mi...@neat-it.de> wrote:
>>> Hi there,
>>>
>>> it seems that there is a security problem in the "Framework Security" module
>>> of Felix.
>>> I have full access to the bundle cache directory from each bundle.
>>>
>>> Expectation: I should only get full access to the data storage of the bundle
>>> itself.
>>> Actually I was able to create files from Bundle 25 inside the data storage
>>> of Bundle 0.
>>> I even could delete the whole directory of Bundle 0.
>>>
>>> I checked the same with Knopflerfish which does this check correctly.
>>>
>>> Do I have to set more configuration parameters?
>>> The OSGi specification defines that the framework should grant access to the
>>> bundle's data storage.
>>>
>>> Best regards,
>>> Michael
>>>
>>>
>>
>>
>>
>> --
>> Karl Pauls
>> karlpauls@gmail.com
>> http://twitter.com/karlpauls
>> http://www.linkedin.com/in/karlpauls
>> https://profiles.google.com/karlpauls
>>
>
>
>
> --
> Karl Pauls
> karlpauls@gmail.com
> http://twitter.com/karlpauls
> http://www.linkedin.com/in/karlpauls
> https://profiles.google.com/karlpauls
>
--
Karl Pauls
karlpauls@gmail.com
http://twitter.com/karlpauls
http://www.linkedin.com/in/karlpauls
https://profiles.google.com/karlpauls
Re: Security problem in Felix - Getting full file access within the
cache directory
Posted by Karl Pauls <ka...@gmail.com>.
After looking at it for a bit, I agree, it seems there is a bug
somewhere. I'll investigate (again, feel free to create a JIRA issue).
regards,
Karl
On Wed, Nov 2, 2011 at 4:32 PM, Karl Pauls <ka...@gmail.com> wrote:
> Hi,
>
> could you create a jira issue for tracking this and if so maybe attach
> a reproducible scenario?
>
> Thanks.
>
> regards,
>
> Karl
>
> On Wed, Nov 2, 2011 at 3:19 PM, Michael Grammling
> <mi...@neat-it.de> wrote:
>> Hi there,
>>
>> it seems that there is a security problem in the "Framework Security" module
>> of Felix.
>> I have full access to the bundle cache directory from each bundle.
>>
>> Expectation: I should only get full access to the data storage of the bundle
>> itself.
>> Actually I was able to create files from Bundle 25 inside the data storage
>> of Bundle 0.
>> I even could delete the whole directory of Bundle 0.
>>
>> I checked the same with Knopflerfish which does this check correctly.
>>
>> Do I have to set more configuration parameters?
>> The OSGi specification defines that the framework should grant access to the
>> bundle's data storage.
>>
>> Best regards,
>> Michael
>>
>>
>
>
>
> --
> Karl Pauls
> karlpauls@gmail.com
> http://twitter.com/karlpauls
> http://www.linkedin.com/in/karlpauls
> https://profiles.google.com/karlpauls
>
--
Karl Pauls
karlpauls@gmail.com
http://twitter.com/karlpauls
http://www.linkedin.com/in/karlpauls
https://profiles.google.com/karlpauls
Re: Security problem in Felix - Getting full file access within the
cache directory
Posted by Karl Pauls <ka...@gmail.com>.
Hi,
could you create a jira issue for tracking this and if so maybe attach
a reproducible scenario?
Thanks.
regards,
Karl
On Wed, Nov 2, 2011 at 3:19 PM, Michael Grammling
<mi...@neat-it.de> wrote:
> Hi there,
>
> it seems that there is a security problem in the "Framework Security" module
> of Felix.
> I have full access to the bundle cache directory from each bundle.
>
> Expectation: I should only get full access to the data storage of the bundle
> itself.
> Actually I was able to create files from Bundle 25 inside the data storage
> of Bundle 0.
> I even could delete the whole directory of Bundle 0.
>
> I checked the same with Knopflerfish which does this check correctly.
>
> Do I have to set more configuration parameters?
> The OSGi specification defines that the framework should grant access to the
> bundle's data storage.
>
> Best regards,
> Michael
>
>
--
Karl Pauls
karlpauls@gmail.com
http://twitter.com/karlpauls
http://www.linkedin.com/in/karlpauls
https://profiles.google.com/karlpauls