avast!WEBforum
November 21, 2009, 06:45:21 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: avast! Server Edition - protect your server!!
 
   Home   Help Search Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Priviledge Escalation vulnerability caused by Avast 4.x  (Read 7776 times)
toadlife
Newbie
*
Offline Offline

Posts: 3

I'm a llama!


Personal Message (Offline)
« on: March 12, 2006, 05:05:56 AM »

HI everyone,

I use Avast Home and noticed that upon installing Avast creates insecure permissions in the program directory that can allow any user to gain administrative access on the machine. Avast gives "BUILTIN\Everyone" full control of just about every file under the program directory. This includes the executables that are executed by the system as services. To gain admin access, a regular use need only replace the one of the Avast executables that run as a system service with a trojan, and reboot the machine.

I emailed to Avast support but got no reply.

You can fix this problem by resetting the permissions of the files under the avast program directory to the defaults, which only give regular users read-only rights.
Logged
Tech
avast! translator
avast! Technical
******
Offline Offline

Gender: Male
Spain Spain

Posts: 47062



Personal Message (Offline)
« Reply #1 on: March 12, 2006, 08:11:40 AM »

First of all, welcome and thanks for posting.
Maybe I'm wrong but this:

To gain admin access, a regular use need only replace the one of the Avast executables that run as a system service with a trojan, and reboot the machine.

cannot be done by a regular user, only an user with administrator rights could change that and, this one, could done almost everything as he has rights for...

Am I missing something?  Roll Eyes
Logged

avast Settings - FAQ - Links
Help me helping you! Sign up & use Mozy to get 2,200 Mb for free remote backup. Enjoy its safety!
igor
ALWIL team
avast! Evangelist
*****
Offline Offline

Gender: Male
Posts: 8099


WWW Personal Message (Offline)
« Reply #2 on: March 12, 2006, 10:17:21 AM »

Yes, I can confirm the problem - it's an unfortune mistake regarding the file extraction (btw, if your TEMP folder is on a different drive than your avast! installation folder, you won't be affected).
The problem will be corrected in the next avast! update.
Logged
RejZoR
avast! Evangelist
*****
Offline Offline

Gender: Male
Slovenia Slovenia

Posts: 5328


We are supersheep, resistance is futile!


WWW Personal Message (Offline)
« Reply #3 on: March 12, 2006, 10:52:56 AM »

But as far as i can tell avast! checks integrity of critical program files (i know coz i wanted to replace some icon and it warned me right away).
Haven't tested how it works after fresh boot...
Logged


Member of Malware Research
My blog and new official webpage: http://www.rejzor.tk
Tech
avast! translator
avast! Technical
******
Offline Offline

Gender: Male
Spain Spain

Posts: 47062



Personal Message (Offline)
« Reply #4 on: March 12, 2006, 11:52:14 AM »

Yes, I can confirm the problem - it's an unfortune mistake regarding the file extraction (btw, if your TEMP folder is on a different drive than your avast! installation folder, you won't be affected).
Why do other applications avoid changing the 'service' settings (at least, disabling or changing the executable)?

The problem will be corrected in the next avast! update.
It would be great that you do not wait that longer to make it...
Logged

avast Settings - FAQ - Links
Help me helping you! Sign up & use Mozy to get 2,200 Mb for free remote backup. Enjoy its safety!
mauserme
avast! Evangelist
*****
Offline Offline

Posts: 2479



Personal Message (Offline)
« Reply #5 on: March 12, 2006, 07:34:44 PM »

The problem will be corrected in the next avast! update.
It would be great that you do not wait that longer to make it...
Especially now that its been publicized.
Logged

"If at first you don't succeed keep on sucking 'till you do succeed" - Curley Howard in Movie Maniacs (1935)
CharleyO
avast! Evangelist
*****
Offline Offline

Gender: Male
United States United States

Posts: 4998


avast!4 just keeps getting better all the time!


WWW Personal Message (Offline)
« Reply #6 on: March 12, 2006, 10:03:11 PM »

***

Welcome to the forums, toadlife.    Smiley

Thank you for posting this info. Hopefully, the Avast team will make a quick program update to fix this.   

Please come back often, learn more, and maybe help others.    Smiley


***
Logged

Thanks to SASHA For My Nice Avatar!
~ It is not important what other people think about you.
    It is important what you truly know about yourself. ~
AMD 64 3200+
Gigabyte GA-K8NS Ultra-939
1 gb RAM
GeForce FX 5800 w/256 ram
XP/SP3 Home
Avast Pro 4.8, Spybot-S&D, SpywareTerminator, ZA Free
toadlife
Newbie
*
Offline Offline

Posts: 3

I'm a llama!


Personal Message (Offline)
« Reply #7 on: March 13, 2006, 12:32:26 AM »

The problem will be corrected in the next avast! update.
It would be great that you do not wait that longer to make it...
Especially now that its been publicized.

I wouldn't panic.

If you are a home user, and run as a regular user (I do), a peice of malware would have to specifically target Avast. As it is 98% of Windows users run as admin anyway, and malware assumes these permissions when it runs. The chances of this issue being exploited are very small IMO.

One place where I would be a little concerned is in business or educational settings (If this issue affects the pro version), where computers are locked down.  For example, at a school that uses Avast on it's lab computers an enterprising student could gain admin rights to a lab machine, or even a server depending on how things are set up.

To fix this issue:

If you are running Windows XP Pro:

1) Make sure simple file sharing is turned off.

To turn simple file sharing off, open up an Explorer window (My Computer will do), click on "folder options", click on the "view" tab and uncheck the box that says "Use Simple File Sharing". This will allow you to view file permissions for files and folder

2) Browse to your avast program directory (e.g. c:\program files\Alwil Software)
3) Right-click on the folder, select "properties" from the menu and then click on the "Security" tab
4) Click on the "Advanced" button
5) Click on the checkbox that says "Replace permission entries on all child objects with entries shown here that apply to child objects"
6) Click "Apply" and then "Yes" to the prompt

You may want to turn simple file sharing back on after you are done.

If you are running Windows XP Home:

1) Restart your computer and start Windows in "Safe Mode", by pressing F8 before Windows loads.
2) Log in as "Administrator" (You must log in as the built in administrator account to view file permissions in XP Home)
3) Browse to your avast program directory (e.g. c:\program files\Alwil Software)
4) Right-click on the folder, select "properties" from the menu and then click on the "Security" tab
5) Click on the "Advanced" button
6) Click on the checkbox that says "Replace permission entries on all child objects with entries shown here that apply to child objects"
7) Click "Apply" and then "Yes" to the prompt


For XP Home users, instead of starting in safe mode, you can also install the program "ACLView". It allows you to modify file/folder permissions without having to start up in safe mode. I can't tell you how to reset the permission with ACLView though, because I've havn't actually used it.
Logged
Tech
avast! translator
avast! Technical
******
Offline Offline

Gender: Male
Spain Spain

Posts: 47062



Personal Message (Offline)
« Reply #8 on: March 13, 2006, 12:46:06 AM »

I wouldn't panic. To fix this issue
Worked like a charm. But, will the non-administrator users be able to update the virus database this way?
Logged

avast Settings - FAQ - Links
Help me helping you! Sign up & use Mozy to get 2,200 Mb for free remote backup. Enjoy its safety!
toadlife
Newbie
*
Offline Offline

Posts: 3

I'm a llama!


Personal Message (Offline)
« Reply #9 on: March 13, 2006, 01:40:35 AM »

I wouldn't panic. To fix this issue
Worked like a charm. But, will the non-administrator users be able to update the virus database this way?

Yes. AFAIK, everything should still work properly.
Logged
mauserme
avast! Evangelist
*****
Offline Offline

Posts: 2479



Personal Message (Offline)
« Reply #10 on: March 13, 2006, 11:09:46 PM »

Thanks toadfile.
Logged

"If at first you don't succeed keep on sucking 'till you do succeed" - Curley Howard in Movie Maniacs (1935)
crofty59
avast! Evangelist
*****
Offline Offline

Gender: Male
Australia Australia

Posts: 328



Personal Message (Offline)
« Reply #11 on: March 21, 2006, 02:29:50 AM »

Hi everyone.

This vunerability has now been reported at Secunia

http://secunia.com/advisories/19284/

Cheers
Logged
justin1278
avast! Evangelist
*****
Offline Offline

Gender: Male
Posts: 1073



Personal Message (Offline)
« Reply #12 on: March 21, 2006, 05:32:54 PM »

Good find toadlife,

Thank you for reporting this problem to Alwil now they can fix it and make avast! even better and more secure. If Symantec had this problem I would bet that they would not listen, or they would update it in the next major release (about once a year) and charge you money to upgrade it. That is IMHO.
Logged

My PC's

Compaq Presario:
Windows Vista Ultimate SP1
AMD Athlon 3800+ 2.4 GHz
2 GB RAM

Sony Vaio:
Windows XP Professional SP3 [Tester]
Intel Pentium M 1.86 GHz
1.5 GB RAM
DavidR
avast! Überevangelist
******
Offline Offline

Gender: Male
United Kingdom United Kingdom

Posts: 37816



Personal Message (Offline)
« Reply #13 on: March 21, 2006, 06:22:11 PM »

Yes, a very good find toadlife.

Also one of the links from that Secunia page show avast isn't alone in this Privilege Escalation issue, thankfully Igor notes it will be corrected in the next avast update; toadlife give us a work around for those that feel it warrants it, thanks for your efforts.
Logged

Core2Duo E8300/ 2GB Ram/ WinXP ProSP3/ Avast 4.8.1356 Home/ Outpost Firewall Pro 2009/ Firefox 3.5.5 NoScript/ MailWasher Pro 6.5.4/ SuperAntiSpyware Pro/ MalwareBytes AntiMalware/ WinPatrol/ HiJackThis /Drive Image 7.1 /OE6 /SnagIt 9.1 Image Capture
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.088 seconds with 17 queries.