Drag-and-Drop

Ideas for enhancements to the software
Post Reply
christo
Posts: 5
Joined: Mon Feb 04, 2008 11:33 am
Location: berlin
Contact:

Drag-and-Drop

Post by christo » Mon Feb 04, 2008 12:38 pm

First of all thanks to the author of sandboxie for this excellent tool.

My motivation: I have developed a Java application which I want to be
used as a Web-client in a scientific database. However, the
maintainers of the database refused sofar due to security reasons. The
application requires access to the Hard disk like a normal
application. It cannot be implemented as an Applet. My hope is that
it might be accepted when I add the information that it can run in
sandboxie.

I see only one problem:
program heavily depends on Drag-and-Drop.

When I open explorer.exe with and without sandboxie, I notice that
Drag-and-Drop is not possible between a program in the sandbox to a
program outside and vice versa. Have I missed a configuration option
or is Drag-and-Drop generally not yet implemented?

In my opinion, dragging into the sandbox could not do any harm. Dragging from the
sandbox to the outer world could perhaps be dangerous. A confirmation
window where the user can confirm the Drop operation could perhaps
provide sufficient safety.

What do you think?

tzuk
Sandboxie Founder
Sandboxie Founder
Posts: 16076
Joined: Tue Jun 22, 2004 12:57 pm

Post by tzuk » Mon Feb 04, 2008 4:38 pm

You already asked this in a private email, so allow me to quote the same response.
I wrote:At this time, drag and drop is not supported across sandbox boundaries,
and there are no exceptions to that rule.

You can try to search the Sandboxie forum for a more in-depth
explanation, but the bottom line is what I said. Sorry, I hope you can
still find Sandboxie useful.
tzuk

christo
Posts: 5
Joined: Mon Feb 04, 2008 11:33 am
Location: berlin
Contact:

Post by christo » Tue Feb 05, 2008 2:36 am

Thanks for the prompt answer. Sandboxie is still extremely important
for me, even though Drag-and-Drop over the sandbox border is not
possible. But if Drag-and-Drop could be implemented in the future, this would
be really of great advantage.

Currently I am solving a general problem of Java Webstart applications with Sandboxie:

Java Webstart will put up the security warning dialog for any signed Java application
"The application is requesting unrestricted access to your local machine .... ".

Many users will not run Java Webstart programs due to this message. There is unfortunately no way to
change this message. My solution to this
problem: An additional text will appear and explain the option to run
a Web-browser in Sandboxie. Using this technique Sandboxie could rescue any Java Webstart application.

tzuk
Sandboxie Founder
Sandboxie Founder
Posts: 16076
Joined: Tue Jun 22, 2004 12:57 pm

Post by tzuk » Wed Feb 06, 2008 3:25 am

The drag and drop issue a complex problem, I'd like to see it solved, but at the same time, I will not sacrifice security for that. The problem is that drag and drop involves direct communication between the program that owns the "drag source" (i.e. the object being dragged) and any program that owns any windows that are being dragged over. I'd like to look into it at some point in the future, that's really all I can say.
tzuk

christo
Posts: 5
Joined: Mon Feb 04, 2008 11:33 am
Location: berlin
Contact:

Post by christo » Wed Feb 06, 2008 2:19 pm

Many thanks! This is what I expected.

Nevertheless, I will explain on the Web-site of my program how to get
along without DnD and the users will get a lot of benefit by Sandboxie .

The JavaScript library for displaying the message when
starting the Java-Web-Start application,
is nearly finished.

Just for interest since I am not a MS_Windows programmer: Does the
application which serves as the Drop Target get access to internal
data of the Application which acts as a Drag source? Could one mask
the critical data in this DnD Transfer Object? Like setting the
pointer for Drag source program in the Transfer Object to null?

Christoph
:D

tzuk
Sandboxie Founder
Sandboxie Founder
Posts: 16076
Joined: Tue Jun 22, 2004 12:57 pm

Post by tzuk » Wed Feb 06, 2008 3:59 pm

I appreciate your curiousity but remember, I did say "drag and drop is not supported ... and there are no exceptions ... ".

It's not about access to any particular piece of data that does or does not have to be critical. The way drag and drop is designed, the two programs (one handling the drag operation, the other accepting the data once it's finally dropped) just have to communicate directly with each other, and Sandboxie blocks that.
tzuk

SnDPhoenix
Posts: 2690
Joined: Tue Dec 26, 2006 5:44 pm
Location: West Florida

Post by SnDPhoenix » Wed Feb 06, 2008 4:42 pm

tzuk wrote:I appreciate your curiousity but remember, I did say "drag and drop is not supported ... and there are no exceptions ... ".

It's not about access to any particular piece of data that does or does not have to be critical. The way drag and drop is designed, the two programs (one handling the drag operation, the other accepting the data once it's finally dropped) just have to communicate directly with each other, and Sandboxie blocks that.
What if you could design Sandboxie so it serves as the middle man, porting the data between the 2 programs, back and forth, without the 2 programs in question having to communicate with each other directly?
Windows 7 SP1 x64, Sandboxie v3.70 x64 with Experimental Protection, GnuPG, OTR (Off-The-Record), Sticky Password, My Brain.

tzuk
Sandboxie Founder
Sandboxie Founder
Posts: 16076
Joined: Tue Jun 22, 2004 12:57 pm

Post by tzuk » Wed Feb 06, 2008 5:27 pm

I assure you SnDPhoenix, in this case, it's much easier said than done... At least that's my impression thus far. I have not yet looked into this issue very thoroughly, but I do agree that one-way drag-and-drop (unsandboxed source drops into sandboxed window) is reasonable and even desirable, and like I said, I do plan to look into this at some point. But success is not guaranteed.
tzuk

Fop_MD

You can copy files ..

Post by Fop_MD » Fri Jun 13, 2008 7:34 am

By exploring the sandboxie's content folders (with a not sandboxed explorer) you can simply access your files. Just copy/move them to a folder of your choice. Well, it's not DnD but it works.

semerra
Posts: 23
Joined: Thu Apr 17, 2008 11:16 am

Post by semerra » Fri Jun 20, 2008 8:52 am

I am not sure whether this issue is pertinent but when I run Windows Media Player v.11 sandboxed (using the 326-16.exe) I cannot open any media files by dragging and dropping them onto the sandboxed WMP.

I have no trouble doing this with Media Player Classic.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest