You are not logged in.

#1 2006-06-28 00:29:41

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Autopackage = hazardous?

I just noticed that the Autopackage installer can install things to system directories even when run as a user. Granted, a user with sudo priveleges (though not on the root wheel)... Still, I wonder - was that using sudo, or can Autopackage simply bypass Linux's security measures? :shock:

Offline

#2 2006-06-28 01:53:43

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: Autopackage = hazardous?

Some portion of the Autopackage installer would have to be running with root access for this to happen. You should can sudo and try it again. I'm willing to bet that it won't work without sudo.

Offline

#3 2006-06-28 01:56:40

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: Autopackage = hazardous?

I'll see...

Also, forgot to mention... When I tried to run it via './foo.package' I got a "not permitted" error. But when I did 'sh foo.package' it ran and installed everything. AFAIK there should be no difference between those commands...

Offline

#4 2006-06-28 02:07:45

deficite
Member
From: Augusta, GA
Registered: 2005-06-02
Posts: 693

Re: Autopackage = hazardous?

I've had the nVidia driver's installer do that to me before. I could run it with "sh nvidia-installer.sh" but not "./nvidia-installer.sh"

The only other way I can see Autopackage getting around priveledges besides sudo is by running a daemon of some sort.

Offline

#5 2006-06-28 02:35:39

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: Autopackage = hazardous?

The difference comes from execute permissions. Try chmod +x <filename> and then ./<filename> and see if it works.

Offline

#6 2006-06-28 13:09:02

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: Autopackage = hazardous?

Hmm, it looks like autopackage does take advantage of sudo when it can. It could at least tell you that it installs to somewhere in the system or not at all... Blech. At least it's easy to remove.

(And I have a feeling that, some day, someone will make an Autopackage-based trojan and attach it to spams. Oh well, I can only blame myself for this.)

Offline

#7 2006-06-28 16:06:13

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Autopackage = hazardous?

Gullible Jones wrote:

(And I have a feeling that, some day, someone will make an Autopackage-based trojan and attach it to spams. Oh well, I can only blame myself for this.)

LOL! That's just so stupidly ridiculous.

Autopackage doesnt bypass any security or anything, it just uses the existing sudo setup. You could configure sudo to deny autopackage if you so wished.

And why would someone go to the effort of using autopackage... when they could use any other install format? Why would someone go to that much effort, when the exploitable target audience is negligable...?

James

Offline

#8 2006-06-28 16:28:53

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: Autopackage = hazardous?

Things like autopackage are designed to provide point-and-click software installation for ease of use. While I don't personally like this sort of thing, it is much easier to just use sudo instead of fooling with password prompts when possible. I don't think autopackage is targeted to the security minded, advanced user. If security is a concern, you should check all of your packages before installing (regardless of the package management system).

Offline

#9 2006-06-28 18:02:08

deficite
Member
From: Augusta, GA
Registered: 2005-06-02
Posts: 693

Re: Autopackage = hazardous?

*cough* iBertus.....I've used chmod quite a few times in my day. I was going to ask Jones the same question but I didn't want to sound like I was belittling him smile

I do understand you're just trying to help though.

Offline

#10 2006-06-28 18:39:21

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: Autopackage = hazardous?

Duh. How did I forget about chmod? Absolutely brilliant... I was using it rather heavily just last week. neutral Shouldn't really matter whether I executed it or ran it through sh though.

At any rate, Autopackage provides a convenient uninstaller, which also works with sudo, so the offending files are off my system. I'll just remember from now on that you can't tell Autopackage scripts where to install their payload.

Offline

Board footer

Powered by FluxBB