HighTechTalks DotNet Forums  

Memory access of unmanaged DLL

Dotnet Framework (CLR) microsoft.public.dotnet.framework.clr


Discuss Memory access of unmanaged DLL in the Dotnet Framework (CLR) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Ruben
 
Posts: n/a

Default Memory access of unmanaged DLL - 11-22-2006 , 11:56 AM






Hi!

I need to know, how much power an unmanaged DLL has about the "managed
memory".
Can I access memory of the managed code from a loaded unmanaged DLL?

The point is: Does a intruder, who injected code into the unmanged DLL
via e.g. a buffer overflow, have the possibility to read and modify
data in the managed memory?

Thank you!
Ruben


Reply With Quote
  #2  
Old   
Ben Voigt
 
Posts: n/a

Default Re: Memory access of unmanaged DLL - 11-24-2006 , 11:34 AM







"Mattias Sjögren" <mattias.dont.want.spam (AT) mvps (DOT) org> wrote

Quote:
Can I access memory of the managed code from a loaded unmanaged DLL?

Yes
This capability is essentially useless for any program that has to work
reliably, because the GC will move stuff around in the managed heap.

Quote:

The point is: Does a intruder, who injected code into the unmanged DLL
via e.g. a buffer overflow, have the possibility to read and modify
data in the managed memory?

Absolutely.
But an information leak is a problem even if it isn't reliable.

Quote:

Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.