Administrator Priviliges - Page 4

Administrator Priviliges

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: Administrator Priviliges

Post by Pxtl »

It'd be dead easy to bundle a trojan into an AI dll, and probably doable from Lua in a mod, depending on how much filesystem and OS access Lua has. And that's before even thinking about buffer tricks.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Administrator Priviliges

Post by lurker »

Do ais have access to raw system calls? Not much of a 'virus' if it can't get out of the spring directory.
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: Administrator Priviliges

Post by Pxtl »

lurker wrote:Do ais have access to raw system calls? Not much of a 'virus' if it can't get out of the spring directory.
Umm, aren't they straight up DLLs? There's no sandbox on native code. Remember when people were implementing music players as an AI dll, simply because that was the only place you could load an arbitrary DLL in Spring?
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Administrator Priviliges

Post by lurker »

You can't redirect any calls on dlls?
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: Administrator Priviliges

Post by Pxtl »

lurker wrote:You can't redirect any calls on dlls?
Never heard of it done. A quick googling showed that Google has a project called "Native Client" for untrusted native code, but that's the only one I've ever heard of.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: Administrator Priviliges

Post by Tobi »

AI's are 100% unsafe.

LUA is relatively sandboxed (though I'm pretty sure I've seen some loopholes / unfinished security checks here and there) but for example a LUA gadget/widget can not run shell commands or call into DLLs, AFAIK.

(Which an AI DLL can do, of course.)
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Administrator Priviliges

Post by lurker »

It might be a good idea to block lua from writing anything with an executable extension.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Administrator Priviliges

Post by AF »

Last I checked anything with the VFS could pull out directory listings of anywhere on the main filesystem including places like C:\Windows\
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Administrator Priviliges

Post by lurker »

True, but you can't open any of those files.
Post Reply

Return to “General Discussion”