Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
10.11.1.1
-
Normal
-
Data corruption, Security
Description
Various powerful methods in StorageFactoryService are public. I have not verified the following with an experiment, but it appears to me that these methods give any code running in the JVM the ability to elevate privileges to those granted to Derby and do the following:
1) Delete Derby databases via the following methods:
org.apache.derby.impl.services.monitor.StorageFactoryService createServiceRoot() org.apache.derby.impl.services.monitor.StorageFactoryService getServiceProperties() org.apache.derby.impl.services.monitor.StorageFactoryService getStorageFactoryInstance() org.apache.derby.impl.services.monitor.StorageFactoryService removeServiceRoot()
2) Overwrite service.properties via overloads of the following method:
org.apache.derby.impl.services.monitor.StorageFactoryService createServiceRoot()
Attachments
Issue Links
- relates to
-
DERBY-6648 Application code should not be able to call ContextService.getContextOrNull()
- Closed