db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dag H. Wanvik (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (DERBY-6636) The public api of BaseDataFileFactory may allow blackhats to assume elevated privileges.
Date Fri, 27 Jun 2014 22:15:25 GMT

    [ https://issues.apache.org/jira/browse/DERBY-6636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14046459#comment-14046459
] 

Dag H. Wanvik edited comment on DERBY-6636 at 6/27/14 10:14 PM:
----------------------------------------------------------------

A call to addAndLoadStreamContainer gets frustrated quickly because it need to boot to have
been performed before it can success. Result: 
{code}
Exception in thread "main" java.lang.NullPointerException
at org.apache.derby.impl.store.raw.data.StreamFileContainer.getFileName(StreamFileContainer.java:1019)
at org.apache.derby.impl.store.raw.data.StreamFileContainer.<init>(StreamFileContainer.java:196)
at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.addAndLoadStreamContainer(BaseDataFileFactory.java:966)

{code}


was (Author: dagw):
A call to addAndLoadStreamContainer gets frustrated quickly because it need to boot to have
been performed befor e it can success. Result: 
{code}
Exception in thread "main" java.lang.NullPointerException
at org.apache.derby.impl.store.raw.data.StreamFileContainer.getFileName(StreamFileContainer.java:1019)
at org.apache.derby.impl.store.raw.data.StreamFileContainer.<init>(StreamFileContainer.java:196)
at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.addAndLoadStreamContainer(BaseDataFileFactory.java:966)

{code}

> The public api of BaseDataFileFactory may allow blackhats to assume elevated privileges.
> ----------------------------------------------------------------------------------------
>
>                 Key: DERBY-6636
>                 URL: https://issues.apache.org/jira/browse/DERBY-6636
>             Project: Derby
>          Issue Type: Bug
>          Components: Store
>    Affects Versions: 10.11.0.0
>            Reporter: Rick Hillegas
>
> BaseDataFileFactory has a public constructor and a public boot() method. Arbitrary code
running in the JVM may be able to instantiate a BaseDataFileFactory outside of Derby's authentication
mechanisms and so acquire the ability to read/update Derby-managed data with the privileges
granted to Derby.  Arbitrary code may be able to interfere with the normal operation of Derby
and may be able to corrupt data.
> This is just an observation based on casual code inspection. It may be that there are
mechanisms in place which frustrate these attacks. I have not tried to exploit these potential
vulnerabilities myself.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message