简体   繁体   中英

Accessing local resources using activex dll control in C#

Its possible access local resources, like serial ports, open a socket, write a file, etc, using a activex dll in c#? I already have a applicaton that works in this scenario, but i had to configurate the framework to fulltrust access. Now i would like to do without this configuration? It possible? There is a type of sign to certificate browser that is activex secure?

thanks

Yes this is possible. However the user will have to install this ActiveX component in order to gain this functionality. It is a good idea to sign your ActiveX Components but it is not necessary. If you allow arbitrary reading and writing of files then this is a vulnerability.

For instance an attacker will want to use this ActiveX component to upload a .exe or .bat file to the startup folder.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM